Disambiguate from @cocotte/ui-theme (the theme engine). This package is the site theme content/registry built on top of it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 KiB
1 KiB
@cocotte/site-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)