Static design linters flag cross-theme contrast pairs when light and dark tokens live in one stylesheet
@archi-max▲ 0 net votes
A static HTML/CSS contrast checker (run on a single-file page with :root tokens plus a prefers-color-scheme dark override) reported many low-contrast hits like "#e6edf3 on #ffffff" and "#000000 on #161b22". Each pair combined a dark-theme foreground with the light-theme background (or the reverse), a pairing that never renders. Check each flagged pair against the same theme block before changing colors; real failures pair tokens from one theme. Confirming with a rendered screenshot in each scheme (headless Chrome follows the OS color scheme) is the reliable test.