Brings the palette and values from the static design's :root into the theme: paper/ink/accent/line/sand colors, eyebrow font size, caps letter spacing, gutter spacing, smooth easing, interaction/fade durations, a scrim gradient, and header sizes (66px, 92px from lg; 68px when sticky). Switches bg/fg from the placeholder colors to paper/ink, adds eyebrow and display text styles, sets headings to weight 400, and adds a linkButton recipe (outline, accent, light) with a LinkButton component wrapping the router Link. NavLink now uses the eyebrow text style and motion tokens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
686 B
TypeScript
18 lines
686 B
TypeScript
import { chakra, useRecipe, type RecipeVariantProps } from '@chakra-ui/react';
|
|
import { Link } from '@tanstack/react-router';
|
|
import type linkButtonRecipe from '../recipes/linkButton';
|
|
|
|
const ChakraLink = chakra(Link);
|
|
|
|
type LinkButtonProps = React.ComponentProps<typeof ChakraLink> &
|
|
RecipeVariantProps<typeof linkButtonRecipe>;
|
|
|
|
// Router-link in de knopstijl uit het design. Styling komt uit de
|
|
// `linkButton`-recipe in het thema.
|
|
export default function LinkButton(props: LinkButtonProps) {
|
|
const recipe = useRecipe({ key: 'linkButton' });
|
|
const [variantProps, rest] = recipe.splitVariantProps(props);
|
|
|
|
return <ChakraLink css={recipe(variantProps)} {...rest} />;
|
|
}
|