mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-28 20:55:47 -04:00
refactor component styles to use type-safe stitches tokens
https://stitches.dev/docs/typescript#stricter-experience
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { NextSeo } from "next-seo";
|
||||
import Image from "../components/Image";
|
||||
import Link from "../components/Link";
|
||||
import { styled } from "../lib/styles/stitches.config";
|
||||
import { styled, theme } from "../lib/styles/stitches.config";
|
||||
|
||||
import pandaGif from "../public/static/images/angry-panda.gif";
|
||||
|
||||
@@ -12,7 +12,7 @@ const Center = styled("div", {
|
||||
const H1 = styled("h1", {
|
||||
fontSize: "1.8em",
|
||||
fontWeight: 500,
|
||||
color: "$text",
|
||||
color: theme.colors.text,
|
||||
|
||||
"@medium": {
|
||||
fontSize: "1.6em",
|
||||
|
||||
Reference in New Issue
Block a user