From 8a8e2bd92214446b2a94de5391a8ea74d5b9708a Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Tue, 13 Oct 2026 23:12:35 +0200 Subject: [PATCH] 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 --- web/src/components/LinkButton.tsx | 17 ++++ web/src/components/NavigationBar/NavLink.tsx | 8 +- web/src/recipes/linkButton.ts | 53 ++++++++++++ web/src/theme.ts | 90 +++++++++++++++++++- 4 files changed, 162 insertions(+), 6 deletions(-) create mode 100644 web/src/components/LinkButton.tsx create mode 100644 web/src/recipes/linkButton.ts diff --git a/web/src/components/LinkButton.tsx b/web/src/components/LinkButton.tsx new file mode 100644 index 0000000..2ee26e9 --- /dev/null +++ b/web/src/components/LinkButton.tsx @@ -0,0 +1,17 @@ +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 & + RecipeVariantProps; + +// 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 ; +} diff --git a/web/src/components/NavigationBar/NavLink.tsx b/web/src/components/NavigationBar/NavLink.tsx index b62d314..2594b50 100644 --- a/web/src/components/NavigationBar/NavLink.tsx +++ b/web/src/components/NavigationBar/NavLink.tsx @@ -8,10 +8,8 @@ type NavLinkProps = React.ComponentProps; export default function NavLink({ children, ...props }: NavLinkProps) { return (