Ground Inversion Guard

Keep colour contrast and hierarchy intact when a page flips between light ("paper") and dark ("obsidian") grounds — dark hero on a light site, inverted footer, dark-mode toggle, alternating sections, cards on a dark band. Accent tokens are re-mapped per ground (a deep green *fill* on paper becomes a bright mint *text* colour on dark) instead of being reused as-is, and every text/background pair is checked against WCAG AAA. Use this whenever generating or reviewing CSS/Tailwind/design tokens that involve a dark section, `.dark`/`.inverted` modifier, `prefers- color-scheme`, theme variables, badges/links/buttons on coloured backgrounds, or when the user says "dark mode", "invert this section", "the green looks muddy on dark", "make sure it's accessible", or "contrast".

fernandokylas Updated

File contents

fernandokylas/editorial-web-craft/tree/main/skills/ground-inversion-guard commit 76fee7ca10

Frequently asked questions

npx skillmds@latest add fernandokylas/ground-inversion-guard