Last active
October 2, 2018 20:07
-
-
Save Calinou/b8ff19b0ad87e6a8b5201654fc0d86de to your computer and use it in GitHub Desktop.
Userstyle to enforce a modern font stack on all websites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name Modern Font Stack | |
@namespace github.com/openstyles/stylus | |
@version 1.0.0 | |
@license MIT | |
@description Replaces Segoe UI, Arial and Helvetica Neue with IBM Plex Sans on all websites | |
@author Calinou | |
==/UserStyle== */ | |
@-moz-document regexp(".*") { | |
@font-face { | |
font-family: "Segoe UI"; | |
font-weight: 300; | |
src: local("IBM Plex Sans Light"); | |
} | |
@font-face { | |
font-family: "Segoe UI"; | |
font-weight: 400; | |
src: local("IBM Plex Sans Text"); | |
} | |
@font-face { | |
font-family: "Segoe UI"; | |
font-weight: 500; | |
src: local("IBM Plex Sans Medium"); | |
} | |
@font-face { | |
font-family: "Segoe UI"; | |
font-weight: 600; | |
src: local("IBM Plex Sans SemiBold"); | |
} | |
@font-face { | |
font-family: "Segoe UI"; | |
font-weight: 700; | |
src: local("IBM Plex Sans Bold"); | |
} | |
@font-face { | |
font-family: "Arial"; | |
font-weight: 300; | |
src: local("IBM Plex Sans Light"); | |
} | |
@font-face { | |
font-family: "Arial"; | |
font-weight: 400; | |
src: local("IBM Plex Sans Text"); | |
} | |
@font-face { | |
font-family: "Arial"; | |
font-weight: 500; | |
src: local("IBM Plex Sans Medium"); | |
} | |
@font-face { | |
font-family: "Arial"; | |
font-weight: 600; | |
src: local("IBM Plex Sans SemiBold"); | |
} | |
@font-face { | |
font-family: "Helvetica Neue"; | |
font-weight: 700; | |
src: local("IBM Plex Sans Bold"); | |
} | |
@font-face { | |
font-family: "Helvetica Neue"; | |
font-weight: 300; | |
src: local("IBM Plex Sans Light"); | |
} | |
@font-face { | |
font-family: "Helvetica Neue"; | |
font-weight: 400; | |
src: local("IBM Plex Sans Text"); | |
} | |
@font-face { | |
font-family: "Helvetica Neue"; | |
font-weight: 500; | |
src: local("IBM Plex Sans Medium"); | |
} | |
@font-face { | |
font-family: "Helvetica Neue"; | |
font-weight: 600; | |
src: local("IBM Plex Sans SemiBold"); | |
} | |
@font-face { | |
font-family: "Helvetica Neue"; | |
font-weight: 700; | |
src: local("IBM Plex Sans Bold"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment