mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-06-30 22:26:38 -04: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 Header from "../Header";
|
||||
import Footer from "../Footer";
|
||||
import { SkipToContentLink, SkipToContentTarget } from "../SkipToContent";
|
||||
import { useTheme } from "../../hooks/use-theme";
|
||||
import { styled } from "../../lib/styles/stitches.config";
|
||||
import { styled, theme } from "../../lib/styles/stitches.config";
|
||||
import { themeColors } from "../../lib/config/themes";
|
||||
import type { ComponentProps } from "react";
|
||||
|
||||
@ -19,7 +19,7 @@ const Default = styled("main", {
|
||||
});
|
||||
|
||||
const Container = styled("div", {
|
||||
maxWidth: "865px",
|
||||
maxWidth: theme.sizes.maxLayoutWidth,
|
||||
margin: "0 auto",
|
||||
display: "block",
|
||||
});
|
||||
|
Reference in New Issue
Block a user