No description
Re-scoped from @lilith/themes to @cocotte/themes. In-set cross-package deps re-pointed to @cocotte; out-of-set @lilith deps preserved (same Verdaccio). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| src | ||
| .gitignore | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
@cocotte/themes
Site theme registry, resolver, and selectable theme families for Cocotte sites.
Extracted from quinn.www/src/themes. Ships:
- luxe-dark (
luxeDarkTheme) — the default dark-luxe base (gold / cream / soft-pink). - Kuromi family —
kuromiNeon,kuromiStark,kuromiDuo. - Cali-Barbie family —
barbieLight,barbieDark. THEME_REGISTRY,resolveSiteTheme(),applySiteThemeChrome(), preview/custom-mod helpers.installThemeSwitcher()— runtimewindow.__quinnThemeconsole.ThemeViewer— React dev component for previewing the registry.
Each family is a DeepPartial<ThemeInterface> (from @cocotte/ui-theme) deep-merged
onto the base luxe adapter at runtime, so any styled-component reading p.theme.*
re-skins automatically.
Selection precedence
?theme=<name>URL query (preview override, persisted to localStorage)- localStorage preview pin
__PROVIDER_CONFIG__.theme.activeTheme(brand/admin default)luxe-dark(ultimate fallback)