Developer builds VS Code theme that fails automatically if colors miss accessibility standards
A developer has created a VS Code theme family called Dancheong, inspired by 1,500-year-old Korean temple pigments, and released it alongside 12 other app ports. To ensure accessibility, the build pipeline automatically checks every foreground-background color pair against WCAG contrast ratios using roughly 20 lines of Python. If any color combination falls below its required threshold — AAA (7:1) for body text or AA (4.5:1) for UI elements — the build exits with no option to override. All theme variants are generated from a single palette.json file, eliminating drift across ports when a color is updated. The theme is available on the VS Code Marketplace and GitHub under an MIT license, with a pro bundle covering all 13 apps on Gumroad.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in