mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-09 05:24:49 +09:00
A ServerKit theme is data, not code: a validated map of CSS custom-property tokens. This lands the client-side foundation. - themeTokens.js: canonical token whitelist, legacy-alias table, and strict value validators (reject url()/@/;/}/expression, type-check per group) - applySkin.js: runtime skin applier via setProperty (injection-safe); dark/ light resolution with stock-light fallback for dark-only themes - ThemeContext: per-user skin selection (localStorage), live hover preview, and accent precedence workspace > user > skin > default - 6 bundled seed themes (default/paper/nord-deep/gruvbox/phosphor/high-contrast) - Theme Gallery in Settings > Appearance (instant apply, 4-swatch cards) + command-palette index entry - hardcoded-hex audit: 3 exact token-value leaks fixed to var(--token) - check-theme-tokens.mjs proving guard wired into the lint chain Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>