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' }, }, // Filled with the deep heidegroen: white on the design's lighter // accent is only 3.58:1, on accent.deep about 5.7:1 (WCAG AA) accent: { borderColor: 'accent.deep', bg: 'accent.deep', color: 'white', _hover: { bg: 'accent.deeper', borderColor: 'accent.deeper' }, _focusVisible: { bg: 'accent.deeper', borderColor: 'accent.deeper', }, }, // 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', }, }, }, size: { default: {}, // Never wraps; less side padding on phones so a longer label // still fits inside a card (BR-BOOK-03) fit: { whiteSpace: 'nowrap', px: { base: '1.25rem', sm: '2.4rem' }, }, }, }, defaultVariants: { variant: 'outline', size: 'default', }, }); export default linkButtonRecipe;