You finish the UI, run Lighthouse, and suddenly six color pairs fail WCAG AA (opens in new tab)
Accessibility audits usually happen late. A tool runs on the deployed site, flags a dozen low-contrast text/background combinations, and now you're backtracking through component styles to fix values that were baked in months ago. salt-theme-gen runs 18 WCAG 2.1 contrast ratio checks at token generation time — before any components are built. If a token combination fails, you know before writing a line of CSS. What gets checked const theme = generateTheme({ preset: 'ocean' }); const { accessi...
Read the original article