mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-01-15 08:22:59 -05:00
refactor component styles to use type-safe stitches tokens
https://stitches.dev/docs/typescript#stricter-experience
This commit is contained in:
@@ -3,7 +3,7 @@ import { useFirstMountState, useMedia } from "react-use";
|
||||
import { useSpring, animated, Globals } from "@react-spring/web";
|
||||
import { useTheme } from "../../hooks/use-theme";
|
||||
import { useHasMounted } from "../../hooks/use-has-mounted";
|
||||
import { styled } from "../../lib/styles/stitches.config";
|
||||
import { styled, theme } from "../../lib/styles/stitches.config";
|
||||
|
||||
const Button = styled("button", {
|
||||
border: 0,
|
||||
@@ -11,10 +11,10 @@ const Button = styled("button", {
|
||||
marginRight: "-0.6em",
|
||||
background: "none",
|
||||
cursor: "pointer",
|
||||
color: "$mediumDark",
|
||||
color: theme.colors.mediumDark,
|
||||
|
||||
"&:hover": {
|
||||
color: "$warning",
|
||||
color: theme.colors.warning,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user