Adds design tokens, text styles, and LinkButton recipe to the Chakra theme

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>
This commit is contained in:
2026-10-13 23:12:35 +02:00
co-authored by Claude Opus 5.5
parent ebcb1f7729
commit 8a8e2bd922
4 changed files with 162 additions and 6 deletions
+53
View File
@@ -0,0 +1,53 @@
import { defineRecipe } from '@chakra-ui/react';
// De hoekige knop uit het design (.btn). In het design is elke knop een link,
// vandaar de naam. Gebruik via de LinkButton-component.
const linkButtonRecipe = defineRecipe({
className: 'link-button',
base: {
display: 'inline-flex',
alignItems: 'center',
gap: 3,
px: '2.4rem',
py: '1.05rem',
borderWidth: '1px',
borderStyle: 'solid',
rounded: 'none',
textStyle: 'eyebrow',
fontWeight: '400',
transitionProperty: 'background, color, border-color',
transitionDuration: 'interaction',
transitionTimingFunction: 'smooth',
},
variants: {
variant: {
// Donkere rand op papier
outline: {
borderColor: 'ink',
color: 'ink',
_hover: { bg: 'ink', color: 'paper' },
_focusVisible: { bg: 'ink', color: 'paper' },
},
// Gevuld met het heidegroen
accent: {
borderColor: 'accent',
bg: 'accent',
color: 'white',
_hover: { bg: 'accent.deep', borderColor: 'accent.deep' },
_focusVisible: { bg: 'accent.deep', borderColor: 'accent.deep' },
},
// Wit, voor over foto's
light: {
borderColor: 'white/70',
color: 'white',
_hover: { bg: 'white', borderColor: 'white', color: 'ink' },
_focusVisible: { bg: 'white', borderColor: 'white', color: 'ink' },
},
},
},
defaultVariants: {
variant: 'outline',
},
});
export default linkButtonRecipe;