@cascivo/themes
v1.0.3
Published
First-party cascivo themes: light, dark, warm, flat, minimal, midnight, pastel, brutalist, corporate, terminal, cyberpunk, arcade. Components: @cascivo/react. Docs offline: npx @cascivo/docs
Maintainers
Readme
npm · cascivo.com · Docs · Storybook · GitHub
First-party themes for cascivo — 12 of them, applied with a single data-theme attribute. Themes override the semantic token layer only, leaving primitive and component tokens unchanged, so every component (and your own token-consuming CSS) restyles for free.
Docs offline? The full cascivo reference (including the theming guide) ships as an npm package —
npx -y @cascivo/docs guide theming, no website needed.
The themes
light · dark · warm · flat · minimal · midnight · pastel · brutalist · corporate · terminal · cyberpunk · arcade
Import options
Everything (recommended starting point):
import '@cascivo/themes/light-dark.css' // tokens (once) + base typography + light & dark
// swap for '@cascivo/themes/all.css' only if you ship a theme picker (all twelve, ~2x)À la carte — each theme sheet self-imports @cascivo/tokens (deduped by URL, so multiple themes load tokens once). Import only what you ship:
import '@cascivo/themes/base.css' // base typography layer (font, line-height, color)
import '@cascivo/themes/light.css'
import '@cascivo/themes/dark.css'
import '@cascivo/themes/midnight.css' // …any of the 12 themes by nameEvery export also works with an explicit .css suffix (@cascivo/themes/light.css) for tooling that requires it.
Tailwind interop: @cascivo/themes/tailwind is a bridging sheet (not a theme) that maps cascivo tokens onto Tailwind theme variables — see docs/USING-WITH-TAILWIND.md.
Scoping with data-theme
Apply a theme to the whole app or to any container — themes nest, so a dashboard can be dark while a preview pane inside it is light:
<body data-theme="dark">
...
<section data-theme="light"><!-- locally light --></section>
</body>Only themes whose CSS you imported are available; the attribute value must match the theme name.
Per-theme fonts
A theme can carry its own display (headline/brand) face via --cascivo-font-display. The token defaults to var(--cascivo-font-sans) (so themes that don't override it look unchanged) and is declared in every theme to keep token parity. The Heading component renders in the display face, so an override is visible wherever headings appear — e.g. terminal maps it to the mono stack and brutalist to a heavy grotesk. --cascivo-font-sans/-mono remain the global body/code defaults.
Custom themes & branding
To match a brand, override semantic --cascivo-* custom properties in your own CSS (or generate a full theme with the create_theme MCP tool / cascivo CLI). The layer cascade, the data-theme specificity footgun, per-role radius/control-height tokens, and a starter theme are covered in docs/THEMING.md.
Install
pnpm add @cascivo/themescascivo.com · Docs · Storybook · GitHub · AI agents: read llms.txt (install steps + component index, plain text) or use @cascivo/mcp and registry.json · MIT
