mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 07:01:19 -04:00
refactor component styles to use type-safe stitches tokens
https://stitches.dev/docs/typescript#stricter-experience
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import innerText from "react-innertext";
|
||||
import Image, { ImageProps } from "../Image";
|
||||
import { styled } from "../../lib/styles/stitches.config";
|
||||
import { styled, theme } from "../../lib/styles/stitches.config";
|
||||
import type { PropsWithChildren } from "react";
|
||||
|
||||
const Wrapper = styled("figure", {
|
||||
@@ -11,7 +11,7 @@ const Wrapper = styled("figure", {
|
||||
const Caption = styled("figcaption", {
|
||||
fontSize: "0.9em",
|
||||
lineHeight: 1.5,
|
||||
color: "$medium",
|
||||
color: theme.colors.medium,
|
||||
marginTop: "-0.4em",
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user