Last active
March 7, 2022 20:01
-
-
Save danielschmid/10236a2b5686a04480eec1129647c804 to your computer and use it in GitHub Desktop.
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
import { globalFontFace, globalStyle } from "@vanilla-extract/css" | |
import { theme } from "./theme.css" | |
globalFontFace("UntitledSansRegular", { | |
src: "./fonts/untitled-sans-regular.woff2" | |
// i’ve also tried: | |
// src: 'local("./fonts/untitled-sans-regular.woff2")', | |
}); | |
globalStyle("*", { | |
boxSizing: "border-box", | |
}) | |
globalStyle("html", { | |
backgroundColor: theme.colors.background, | |
color: theme.colors.text, | |
}) | |
globalStyle("html, body", { | |
height: "100%", | |
fontSize: "18px", | |
}) | |
globalStyle("body", { | |
margin: 0, | |
fontFamily: "UntitledSansRegular", | |
lineHeight: 1.5, | |
WebkitFontSmoothing: "antialiased", | |
}) | |
globalStyle("a", { | |
color: theme.colors.text, | |
textDecoration: "none", | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment