feat: Implement OKLCH color space architecture with semantic aliases and theme system #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ZephyrCSS v2.0: OKLCH Architecture + Functional Dark Mode
Summary
This PR transforms ZephyrCSS from a hex-based color system to a modern OKLCH-based architecture while maintaining full backward compatibility. The major enhancement is fixing the broken dark mode that was previously non-functional due to CSS layer cascade issues.
Key Architectural Changes
--success,--danger, etc.) alongside priority-based namesdata-themeattributeDark Mode Fix Details
Root Cause: Dark mode rules were in the
baseCSS layer and being overridden by higher-priority layers (themes,semantic-aliases,override).Solution: Moved dark mode rules to unlayered CSS at the end of
site.cssfor highest cascade priority. Now both automatic (prefers-color-scheme: dark) and manual (data-color-scheme="dark") dark mode work correctly.Review & Testing Checklist for Human
data-color-scheme="dark"and verify colors actually change visually in browserdata-theme="ocean-breeze",data-theme="sunset-warmth"etc. work correctlyRecommended Test Plan
index.htmlin browserdocument.documentElement.setAttribute('data-color-scheme', 'dark')oklch(35% 0.05 196)tooklch(65% 0.05 196)data-theme="ocean-breeze",data-theme="monochrome-pro"var(--success)should equalvar(--quinary)Notes
token.cssfrom default imports (still available induallayer)Link to Devin run: https://app.devin.ai/sessions/45587d49071742b0ad4e1ffb7d711606
Requested by: @RPDevJesco