Last active
August 14, 2023 13:36
-
-
Save lukehedger/8556178 to your computer and use it in GitHub Desktop.
Stylus + Google Web Fonts
This file contains hidden or 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
/* Here's the compiled CSS */ | |
@import url("http://fonts.googleapis.com/css?family=Droid+Sans"); | |
body { | |
font-family: Droid Sans, Helvetica Neue, Helvetica, Arial, sans-serif; | |
font-size: 14px; | |
line-height: 25px; | |
font-weight: 300; | |
color: #444; | |
} |
This file contains hidden or 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
// to import a Google Web Font you need to escape any '+' characters in the URL | |
// also be careful not to encapsulate the URL in "quotes" as Stylus will parse the \ literally | |
@import url(http://fonts.googleapis.com/css?family=Droid\+Sans) | |
@import "typography" // ok to use web font in css files imported after |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment