Forge Contrast

Check WCAG contrast ratios across your entire token system. Tests every text token against every surface token.

dragoon0x Updated 13 repo stars

File contents

/forge-contrast — Contrast Matrix

Generate a contrast matrix:

Test every text color against every surface color in your system:

  • text on surface → must pass AA (4.5:1)
  • text on surface-elevated → must pass AA
  • text-secondary on surface → must pass AA for large text (3:1)
  • accent on surface → must pass AA for UI components (3:1)

Report: pass/fail for each combination with actual ratio and required ratio.

dragoon0x/forge commit 6e85edb82f

Frequently asked questions

npx get-skill add dragoon0x/forge-contrast