mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-18 16:05:33 -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 NextImage from "next/future/image";
|
||||
import Link from "../Link";
|
||||
import { styled } from "../../lib/styles/stitches.config";
|
||||
import { styled, theme } from "../../lib/styles/stitches.config";
|
||||
import type { ComponentProps } from "react";
|
||||
import type { ImageProps as NextImageProps, StaticImageData } from "next/future/image";
|
||||
|
||||
@@ -16,7 +16,7 @@ const Block = styled("div", {
|
||||
const StyledImage = styled(NextImage, {
|
||||
height: "auto",
|
||||
maxWidth: "100%",
|
||||
borderRadius: "$rounded",
|
||||
borderRadius: theme.radii.rounded,
|
||||
});
|
||||
|
||||
export type ImageProps = ComponentProps<typeof StyledImage> & {
|
||||
|
Reference in New Issue
Block a user