mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 23:46:40 -04:00
refactor component styles to use type-safe stitches tokens
https://stitches.dev/docs/typescript#stricter-experience
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
import Link from "../Link";
|
||||
import { styled } from "../../lib/styles/stitches.config";
|
||||
import { styled, theme } from "../../lib/styles/stitches.config";
|
||||
|
||||
const MenuLink = styled(Link, {
|
||||
display: "inline-block",
|
||||
color: "$mediumDark",
|
||||
color: theme.colors.mediumDark,
|
||||
padding: "0.6em",
|
||||
|
||||
variants: {
|
||||
@ -11,12 +11,12 @@ const MenuLink = styled(Link, {
|
||||
current: {
|
||||
true: {
|
||||
marginBottom: "-0.2em",
|
||||
borderBottom: "0.2em solid $linkUnderline",
|
||||
borderBottom: `0.2em solid ${theme.colors.linkUnderline}`,
|
||||
},
|
||||
false: {
|
||||
"&:hover": {
|
||||
marginBottom: "-0.2em",
|
||||
borderBottom: "0.2em solid $kindaLight",
|
||||
borderBottom: `0.2em solid ${theme.colors.kindaLight}`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user