Better Colors
Architects and audits robust digital color systems, semantic tokens, and accessible light/dark themes.
Better Colors provides comprehensive guidelines and automated verification for digital product color systems. It helps developers and designers build mathematically sound color ramps in OKLCH, establish robust primitive and semantic token architectures, implement seamless dark mode theming, and accurately measure contrast against rendered surfaces to prevent accessibility bugs and visual inconsistencies.
Key Features
01Guides light and dark mode theming without crude mechanical inversion
02Audits and verifies exact contrast ratios against rendered background surfaces
03Establishes two-tier token architectures separating raw primitives from semantic roles
040 GitHub stars
05Calculates perceptually uniform color ramps and palettes using OKLCH and modern color spaces
06Configures smooth gradient interpolations using modern color spaces like OKLab and OKLCH
Use Cases
01Implementing reliable dark mode theming with role-based semantic tokens
02Auditing an existing codebase for hardcoded hex colors, gamut issues, and contrast violations
03Building a new design system color palette from brand accents to neutral ramps