mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 20:45:31 -04:00
refactor component styles to use type-safe stitches tokens
https://stitches.dev/docs/typescript#stricter-experience
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { styled, keyframes } from "../../lib/styles/stitches.config";
|
||||
import { styled, theme, keyframes } from "../../lib/styles/stitches.config";
|
||||
import type { ComponentProps } from "react";
|
||||
|
||||
const pulse = keyframes({
|
||||
@@ -19,7 +19,7 @@ const Box = styled("div", {
|
||||
display: "inline-block",
|
||||
height: "100%",
|
||||
animation: `${pulse} 1.5s infinite ease-in-out both`,
|
||||
backgroundColor: "$mediumLight",
|
||||
backgroundColor: theme.colors.mediumLight,
|
||||
});
|
||||
|
||||
export type LoadingProps = ComponentProps<typeof Wrapper> & {
|
||||
|
Reference in New Issue
Block a user