import { defineRecipe } from '@chakra-ui/react'; // Uitbreiding op Chakra's Link met de rustige linkstijl uit de footer. // ink.soft en accent.deep halen beide 4.5:1 op papier (NFR-01). const linkRecipe = defineRecipe({ // Chakra zet de ringkleur per palet; hier de kleur van de site base: { focusRingColor: 'focusRing' }, variants: { variant: { subtle: { color: 'ink.soft', textDecoration: 'none', rounded: 'none', transitionProperty: 'color', transitionDuration: 'interaction', transitionTimingFunction: 'smooth', _hover: { color: 'accent.deep' }, _focusVisible: { color: 'accent.deep' }, }, // Ink text with an underline that slides in from the left on // hover and focus (design .link-underline) underline: { position: 'relative', display: 'inline-block', color: 'ink', textDecoration: 'none', rounded: 'none', _after: { content: '""', position: 'absolute', left: 0, bottom: '-2px', width: '100%', height: '1px', bg: 'currentColor', transform: 'scaleX(0)', transformOrigin: 'right', transitionProperty: 'transform', transitionDuration: 'interaction', transitionTimingFunction: 'smooth', _motionReduce: { transition: 'none' }, }, _hover: { textDecoration: 'none', _after: { transform: 'scaleX(1)', transformOrigin: 'left' }, }, _focusVisible: { _after: { transform: 'scaleX(1)', transformOrigin: 'left' }, }, }, }, }, }); export default linkRecipe;