mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-01 04:26:37 -04:00
refactor component styles to use type-safe stitches tokens
https://stitches.dev/docs/typescript#stricter-experience
This commit is contained in:
@ -1,12 +1,12 @@
|
||||
import { styled } from "../../lib/styles/stitches.config";
|
||||
import { styled, theme } from "../../lib/styles/stitches.config";
|
||||
import type { ComponentProps } from "react";
|
||||
|
||||
const RoundedIFrame = styled("iframe", {
|
||||
width: "100%",
|
||||
display: "block",
|
||||
margin: "1em auto",
|
||||
border: "2px solid $kindaLight",
|
||||
borderRadius: "$rounded",
|
||||
border: `2px solid ${theme.colors.kindaLight}`,
|
||||
borderRadius: theme.radii.rounded,
|
||||
});
|
||||
|
||||
export type IFrameProps = ComponentProps<typeof RoundedIFrame> & {
|
||||
|
Reference in New Issue
Block a user