01 / what it is
Own
your
stylesheet.
A React design system with no Tailwind, no CSS-in-JS runtime, and no utility soup. The CLI copies the source into your repo — plain CSS and tokens you can read, and so can your agent.
npx cascivo initmeasured, not claimed → benchmarks
data-theme apart · open the live example →02 / signals
Change one cell,
render one cell
In the signals grid each cell holds its own signal, so a change re-renders that cell and nothing else. The re-render grid keeps the same data in useState, so every change re-renders all thirty. Press the button and watch the counters.
1.9×faster partial updates — 918 ms vs 1765 ms, every 10th row of 1,000
signals0 renders
re-render0 renders
03 / proof
Numbers,
not adjectives
Every figure is generated at build time from the component registry and the cross-library benchmark suite — methodology included, raw data committed.
See the performance numbers →accessibility
WCAG 2.2 AA,
gated in CI
A published conformance statement, a keyboard and ARIA matrix generated from every manifest, and colour-blind-safe chart palettes. Table stakes too: 0 axe violations across four app states — the same scan run against shadcn and Carbon.
Same model, no tax
04 / vs shadcn/ui
Like shadcn, you own the code the CLI copies in. The difference is what it is built on — no Tailwind dependency, signals instead of re-renders, and a token system, i18n, charts, and an AI layer in the box.
| Feature | cascivo | shadcn/ui |
|---|---|---|
| Tailwind | Not required | Required (v4) |
| Component styling | Design tokens + plain CSS | Utility classes |
| Reactivity | Signals — targeted DOM updates | React state + re-render |
| Theming | 3-tier tokens · 12 themes · scope any subtree | CSS variables + .dark class |
| Prebuilt package | @cascivo/react — every component, versioned | Copy-paste |
| Internationalization | Built-in (@cascivo/i18n) | Not included |
| Charts | Zero-dependency (@cascivo/charts) | Recharts |
| Tests with the source | Ship with each component | Not included |
| Upgrades after you edit | Versioned registry + cascivo update | Manual diff against main |
| AI layer | Per-component manifests + semantic MCP + audit | MCP install + llms.txt |
58 of 59 shadcn components have a cascivo equivalent — see the parity matrix. shadcn leads on ecosystem size and adoption today; cascivo's bet is the architecture.
And versus StyleX
Meta's StyleX compiles JavaScript style objects into atomic CSS, and it is right about the destination: build-time styles, typed tokens, a predictable cascade, constraints tight enough that an agent cannot invent a class name. cascivo agrees with all of it and disagrees about the compiler — it writes the CSS, uses real @layer, and ships token names you can type from memory.
| Feature | cascivo | StyleX |
|---|---|---|
| Build step for styling | None — CSS files | Babel plugin, required |
| Cascade control | Real @layer, seven canonical layers | Computed priority + :not(##) polyfill |
| Token names | --cascivo-color-accent — stable, typeable | Hashed at build; needs an import |
| Wrong token caught | Editor lint · satisfies type · CI audit | Compiler error |
| Relational styling | Native :has() | stylex.when.* + marker elements |
| Components included | The whole library | None — styling only |
| Styles beside markup | Separate .module.css | Same file |
The last row is StyleX's, not ours — the full comparison below says why cascivo takes that trade, and where StyleX is the better pick.
05 / themes
One attribute,
a new skin
12 first-party themes over a three-level token system — primitive, semantic, component. Themes remap the semantic layer; you override component tokens per brand with no rebuild. Scope any theme to any subtree with data-theme.
<main data-theme="brutalist">
<Card>…</Card>
</main>data-theme="brutalist" · same markup, same components
06 / the ai loop
Your agent's code,
checked
Most design systems now give agents docs. cascivo also checks what the agent wrote: cascivo audit --ai knows every real prop, required prop and token, and says what to use instead.
what the agent wrote
<Card className="deploy-card">
<Badge tone="success">Ready</Badge>
<Tooltip>Redeploy the latest commit</Tooltip>
<Button variant="primary">Redeploy</Button>
</Card>
.deploy-card {
background: oklch(0.623 0.214 250);
}
$ cascivo audit --ai src
DeployCard.tsx:7 error unknown-prop <Badge tone>
DeployCard.tsx:8 error missing-prop <Tooltip> requires "content"
DeployCard.tsx:8 warn raw-string "Redeploy the latest commit"
→ use labels prop / i18n
deploy-card.css:2 info hardcoded-value oklch(0.623 0.214 250)
→ --cascivo-blue-500
| --cascivo-color-focus-ring
deploy-card.css:1 warn unlayered-css .deploy-card { … }
→ wrap in @layer
---
2 errors, 2 warnings, 1 info
after one round
Fixed from
the output
what the agent wrote next
<Card className="deploy-card">
<Badge variant="success">Ready</Badge>
<Tooltip content={hint}>
<Button variant="primary">Redeploy</Button>
</Tooltip>
</Card>
@layer cascivo.override {
.deploy-card {
background: var(--cascivo-color-accent);
}
}
$ cascivo audit --ai src → no findings
The agent gets the same closed sets up front: an MCP server with tools to select, scaffold and validate, a manifest per component, and a token catalog.
{
"mcpServers": {
"cascivo": { "command": "npx",
"args": ["-y", "@cascivo/mcp"] }
}
}Plan the page, measure the render
plan → build → check → see
-
Plan
One page archetype from a fixed catalogue for your brief: slots, components, states and the mobile and accessibility rules for that kind of page.
design plan -
Build
You or your agent write the page from the plan. Any stack works: React, htmx, static HTML. The page does not have to use cascivo components.
your code -
Check
Measures the rendered page: mobile overflow and touch targets, WCAG 2.2 AA, contrast, tokens and hierarchy. One line per finding, with the fix.
design check -
See
A compact screenshot an agent can look at for about 1.3k vision tokens, after the findings are fixed.
design see
$ cascivo design check <url>
score 67/100 — mobile 50 · a11y 75 · contrast 75
· tokens 92 · hierarchy 43 — 5 errors, 5 warnings
error contrast div.wide > p.faint
2.11:1, needs 4.5:1 (#aaaaaa on #f4f4f4)
→ color: #6f6f6f or stronger
warn token/spacing main > div.card ×4
padding 13px is off the spacing scale
→ var(--cascivo-space-3) (12px)
@cascivo/design is deterministic: the same input gives the same output, and no model is involved. check exits 1 while an error is left, so it works as a CI gate. Agents get the same two commands as the MCP tools design_plan and design_check.
npx cascivo design plan "a pricing page with three plans"
# build the page from the plan, start the app
npx cascivo design check http://localhost:5173/pricing
npx cascivo design see http://localhost:5173/pricing --width 390More than components
07 / beyond components
01
Charts
25 chart types with no dependencies. Keyboard-navigable points and a hidden data table for screen readers.
@cascivo/charts02
Transactional mail in the same 12 themes, resolved to plain sRGB and checked against the Can I email matrix.
@cascivo/email03
Flow and editor
Node graphs with pan, zoom and a minimap, and a code editor built on a native textarea. Same tokens, same themes.
flow · editor04
Uses the browser
Menus and dialogs sit on native <dialog> and the Popover API — no positioning library, no JavaScript focus trap.
platform css05
Upgrades you keep
cascivo update merges upstream fixes into the code you edited. doctor --drift reports what changed under you.
cascivo update06
Works with the shadcn CLI
Every component is also published in the shadcn registry format, so npx shadcn add can install it.
registry interop07
Agents operate the UI
Render any view as Markdown or a JSON snapshot, then let an agent act on it through WebMCP tools you gate with allow.
machine mode · registerViewTools08
Templates
Whole-page starting points — dashboard, auth, landing — that install like a component and are yours to edit.
@cascivo/dashboardBeyond React: HTML, terminal, native, sites
four Rust crates
col("gap-1 p-1 border rounded text-accent", [
text("Deploy ready").into(),
button("Ship it", "ship").into(),
])HTML
Write .cv text, get one static HTML file: reports, dashboards, landing pages. No React, no build step.
cascivo-htmlTerminal
The same themes and class strings, painted in the terminal on ratatui. A typo is an error with a suggestion.
cascivo-tuiNative
The same .cv text in a native window on the Blitz engine. No browser; signals and event handlers in Rust. A git dependency until Blitz 0.3 is stable.
cascivo-blitzSites
Markdown, collections, locales and RSS in, a static site out. One Rust binary, no Node build.
cascivo-webHTML-first dynamic apps
rust server + htmx + elements + islands
Rust server
axum renders the page, or one block of it as the htmx fragment. Forms, sessions, CSRF, auth and SSE included; every response gets a nonce CSP.
cascivo-serverElements
Light-DOM cv-tabs, cv-dialog, cv-toaster and cv-form enhance the server's markup, plus htmx glue. No React, no shadow DOM.
@cascivo/elementsIslands
Where a widget needs client state, a Solid island mounts on the same markup and is disposed when htmx swaps it out.
@cascivo/solidOne class contract
Server templates, elements, islands and React render the same unhashed cv-* classes and data-* attributes, versioned like an API.
@cascivo/cssDeploy the same app native, on Cloudflare Workers (KV sessions, D1, R2) or in Cloudflare Containers. pnpm dynamic:check holds the JS budget: the htmx + Solid example ships 6.2 KB gzip of cascivo JS per page (budget 15 KB) and 4.4 KB for its island (budget 10 KB).
cargo install --git https://github.com/cascivo/cascivo cascivo-web
cascivo-web new my-app \
--dynamic --target workersThree steps in
08 / quick start
-
Initialize
npx cascivo initDetects your package manager and writes the config.
-
Add components
npx cascivo add buttonCopies the source into your repo — it is yours now.
-
Use them
import '@cascivo/themes/light-dark.css' import { Button } from './components/ui/button'Import a theme once; each component brings its own CSS. No provider, no wrapper.
Prefer no copy step?
@cascivo/react ships a prebuilt distribution of every component. You don't own the source, but there is no setup — upgrade to owned code via the CLI at any time.
npm add @cascivo/react @cascivo/themesThen ship the whole app
09 / on cloudflare
The same components, as a full-stack app on Cloudflare: one command writes the pages, the API and the Worker, and vite dev runs all of it offline.
npx cascivo create acme --framework cloudflare --example board,live --auth email- pages added
- 4
- cloudflare services
- 5
- files written
- 9
- Durable Objectsruns locally
- Queuesruns locally
- Rate Limitingruns locally
- Email Serviceruns locally
- D1runs locally
Pages: /account /board /ops /signin/verify
src/ auth.ts board.module.css board.ts ops.ts src/routes/ account.tsx board.tsx ops.tsx src/routes/signin/ verify.tsx worker/ auth.ts
- Runs on Preact: about a third of the JavaScript React needs.
- Every service runs in vite dev, in the same runtime as production.
- Needs a Cloudflare account to deploy: a temporary one only has Workers, KV, D1 and Durable Objects.
Or deploy a starter to your Cloudflare account
One click forks the starter into your GitHub account and deploys it. Cloudflare creates the Durable Objects and databases it needs.
App + API
A client-rendered app and its typed API as one Worker, with file routes and a live SSE demo.
Multiplayer board
Notes and cursors shared live through a Durable Object.
AI agent
An assistant on Workers AI that answers with real cascivo components.
Data table on D1
Customers in D1 behind a DataTable: server-side sort, search and paging, plus editing.
Shop on Stripe
Sell a product with Stripe Checkout: orders in D1, a live order page, receipts, refunds and disputes.
Stage: live Q&A
Questions, polls and reactions for talks, with a projector view. One Durable Object per session.
Your own mix
Every starter is
cascivo createoutput. Pick the examples you want above, and run the one command it gives you.
Shipped, in production
10 / built with cascivo
So far these are all built by cascivo's maintainer — real products in production, but not independent adopters yet. Shipped something with cascivo? Tell us and it goes here ↗
-
Next.js
App Router / RSC — components keep their "use client" boundary.
See the example ↗ -
Vite + React
The reference setup — themes import once, component CSS rides along.
See the example ↗ -
Astro
Islands server-render styled; page content ships zero JS. Scaffold one with cascivo create --framework astro.
Read the Astro guide ↗ -
Preact
Signals are natively reactive — no adapter, via preact/compat.
Read the Preact guide ↗
Not a React app? @cascivo/tokens and @cascivo/themes are framework-agnostic CSS — the colour system, type scale and twelve themes work anywhere, components or not. There's a Ghost (Handlebars) theme ↗ built entirely on them.
Own your UI.
Copy the code. Keep the platform. Bring your agent.





