Open-source React design system

A design system written for humans & machines.

Your AI assistant builds on-spec by construction — strict two-tier tokens, WCAG AAA primitives, concentric radius math, and a native MCP server keep every generated component accurate.

$ npx @shavin/cli init
Foundation → Semantic
n-0
n-100
n-200
n-400
n-700
n-900
n-1000
bg-canvaspage background
bg-surfaceelevated layer
text-fgprimary text
text-fg-subtlesecondary text
border-hairlinedividers
text-accentbrand accent

Every component references only semantic tokens. Themes remap semantics — your UI never touches raw palette values.

0Primitives
0MCP Tools
0%Token-Compliant
0Manifest Files

Enterprise Architecture

Start anywhere. Change anything. Ship faster.

A design system that adapts to your workflow, not the other way around. Built for speed, clarity, and creative freedom.

Themes that fit your brand

Fully customizable themes ready for use. Make it yours without starting from scratch.

Explore
Configure Theme

Theme

Accent Color

Gray Family

Appearance

Radius

Heading Font

Body Font

73 primitives & blocks

Accessible and themeable React components with built-in spacing, dark mode, and flexible styling.

Explore
BadgeBadge

A design system that your agent can use

Scaffold projects, browse templates, generate themes, and get agent-ready docs. ThemeProvider auto-mounts the Dev Inspector in dev mode — zero config.

Explore
How can I help you today?
Can you create me a table page?

Ready to ship templates

Production-ready templates for common pages, just plug in your content.

Explore
Dashboard
Forms
Pricing
Storefront
Analytics
Landing Page
+12 More Building · 100% Token Compliant

Shavin Studio

Assemble full screens, without writing layout code.

Shavin Studio is a visual canvas for composing production interfaces from @shavin/ui primitives. Every block you drop already obeys the token engine, concentric radius math, and accessibility contract — so what you arrange is what ships.

studio.shavin.cc
Shavin Studio — visual block canvas

01Compose visually

Drag token-compliant blocks onto a live canvas — heroes, pricing tables, dashboards, and form layouts.

02Export clean JSX

Hand off 100% token-compliant @shavin/ui JSX straight into your repository.

Shavin Dev Inspector

See your design system live in your dev server.

A zero-config inspector overlay that auto-mounts the moment you wrap your app in ThemeProvider. No browser extension, no setup, no extra dependency — just open your dev server and inspect.

localhost:3000/foundations/colors
Shavin Dev Inspector — hover-to-inspect overlay on a live page

01Component Inspector

Hover any element on the page to see its primitive name, CVA variants, and prop breakdown in real time.

02Token Inspector

Inspect the resolved semantic token values driving each component — accent, radius, surface, and spacing scales.

03AI Context

Copy a ready-to-paste component spec for your AI assistant — token assignments, variant matrix, and accessibility metadata.

Zero-config activation
<ThemeProvider
  devTools={process.env.NODE_ENV !== "production"}
>
  <App />
</ThemeProvider>

// Inspector auto-mounts in dev mode.
// Set devTools={true} to force-show in production.

Primitive Ecosystem

73 AAA primitives, ready to ship.

Every component is fully tokenized, accessible, and ready to compose in Shavin Studio.

New
⌘K
New
⌘K
New
⌘K
New
⌘K

Typography

Pro

Typography

Pro

Typography

Pro

Typography

Pro
Active

Heading

Esc
Active

Heading

Esc
Active

Heading

Esc
Active

Heading

Esc
Primitive Showcase

73 primitives, composed into real interfaces.

Accessible, themeable, and WCAG AAA compliant React primitives that seamlessly assemble into rich dashboards, forms, and product surfaces.

Actions & Navigation

Buttons, Tabs, and Keybinds

CVA Variants
⌘K
Sync Progress84%
4 Button variants · Radix Slot polymorphicButton.tsx

Identity & Status

Avatars, Badges, and Presence

WCAG AAA
+8
Active TeamOnline now
AccentNeutralOutlineError
Real-time collaboration
Avatar & Badge primitivesAvatar.tsx

Controls & Inputs

Text fields, Sliders, Switches

Scale factor75%
Accessible ARIA statesSlider.tsx

Feedback & Banners

Callouts, Alerts, and Toasts

Concentric Radius Math
Inner radius automatically matches outer container padding.
Zero token violationsClean
Callout & Alert primitivesCallout.tsx

Typography & Tokens

Scale hierarchy & semantics

Heading Display 3xl

Calibrated type scales with natural color inheritance.

text-accent-contrast·tabular-nums
Heading & Text primitivesTypography.tsx

How it works

Four steps, one workflow.

Setup — one command

Scaffold the whole system into any React or Next.js app. The CLI installs the package, registers the Tailwind preset, and wires the global styles.

# Recommended — full scaffold
npx @shavin/cli init

# Or just the package
npm install @shavin/ui

MCP Server Integration

On-spec generation, in your editor.

Watch how the AI agent prompt and background MCP validation work in tandem.

AI Assistant
MCP Active
Create a card component using @shavin/ui tokens.
Asking AI assistant...
@shavin/mcp (bg process)

Connect your client

.cursor/mcp.json
{
  "mcpServers": {
    "shavin": {
      "command": "npx",
      "args": ["-y", "@shavin/mcp"]
    }
  }
}

29 Modular MCP Tools

Direct agent hooks for token introspection, real-time QA linting, code autofixing, and block synthesis.

Read Tool Reference
Tokens
Tokens

Exposes raw tokens.json and 71 WCAG AAA primitive specs directly to AI agents.

get_tokensFoundation, semantic, radius & shadow token scales
get_componentsSpecs for 71 primitive components & CVA variants
get_project_contextLive design system manifest for prompt injection
On-Spec VerifiedJSON-RPC 2.0 Standard
AI Cognition Layer

Teach your AI agent to think in design tokens.

A persistent project brain file that keeps AI assistants aligned to your design system across every conversation — no re-prompting, no context drift, no UI slop.

SHAVIN.mdroot
# SHAVIN.md — auto-created by npx @shavin/cli init

## Project Context
- Framework: Next.js 15 App Router (React 19)
- Tokens: @shavin/ui two-tier (foundation → semantic)
- Accent: Grass · Radius: Large · Scaling: 95%
- Density: Compact · Panel: Translucent

## AI Agent Invariants
- Never use raw hex/rgb() colors — use semantic tokens only
- Respect concentric radius: R_inner = max(0, R_outer - P)
- Container surfaces use rounded-[var(--radius-panel)]
- Controls/buttons use rounded-[var(--radius-lg)]
- Floating surfaces MUST include data-panel attribute
MCP Server Active · Ground-Truth Context Injected
UTF-8 · Markdown

01Persistent Project Memory

SHAVIN.md grounds your agent in your exact tokens, radii, and framework — eliminating re-prompting and context drift.

02Strict Token Invariants

Guides your AI assistant to generate role-based semantic tokens and concentric radius math by construction.

03Automatic MCP Injection

Read automatically upon session start in Antigravity, Cursor, and Windsurf via the native Model Context Protocol.

Cognitive Domain Skills

9 specialized skills that prevent AI slop.

Pre-packaged cognitive intelligence stored in .agents/skills/ and loaded on demand by AI assistants to enforce mathematical spatial harmony and token purity.

shavin-app

SaaS & Dashboards

SaaS web applications, analytics dashboards, AI chat consoles, data tables, and high-density forms.

shavin-webpage

Marketing & Landing

12-section reading arcs, bento showcases, hero sections, and conversion-driven marketing experiences.

visual-compositor

Concentric Geometry

Mathematical concentric radius formulas (R_inner = max(0, R_outer − P)), measure limits, and spacing rhythm.

shavin-ui-qa-linter

Automated Design QA

Token linting, WCAG 2.1 AAA contrast validation, and real-time DOM bridge audit (:7428) verification.

shavin-ui-builder

UI Block Sandbox

Isolated block composition, live AST JSX parser synchronization, and Studio canvas approval workflows.

npx @shavin/skills|orMCP install_skills tool

Core capabilities

Everything you need to build without slop

Six tightly-integrated systems that keep human engineers and AI assistants aligned to the same design contract.

Architecture

Strict Two-Tier Token Engine

Foundation palettes map cleanly to role-based semantic variables. Theme switching, dark mode, and runtime branding mutations work instantly — no component source changes required.

Design Math

Concentric Radius Geometry

Outer container radii and inner control paddings satisfy R_inner = max(0, R_outer − P). Eliminates corner-clashing and distorted visual gaps across every nested surface.

Standard

WCAG 2.1 AAA Accessibility

Radix-backed focus trapping, keyboard navigation, roving tabindex, and screen-reader ARIA pairings for complex popovers, dropdowns, and modal dialogs — out of the box.

Tooling

Visual Block Builder

Compose full-screen application layouts visually in the browser. Drag, drop, and export 100% token-compliant JSX directly into your repository.

Primitives

Class Variance Authority Primitives

Unified variant management across size, intent, tone, and visual mode. Merged cleanly via cn() — clsx + tailwind-merge — for predictable prop overrides.

AI Native

Zero-Hallucination MCP Server

Exposes tokens.json, components.json, and a JSX linter directly to Cursor, Claude, Antigravity, and Copilot — so generated code is accurate by construction.

The Ecosystem

Six packages. One design contract.

A collection of independently publishable packages — each solving a specific layer of the design-to-AI pipeline. Use them together or adopt the pieces you need.

@shavin/ui

73 WCAG AAA primitives, ThemeProvider, and the auto-mounted Dev Inspector.

@shavin/block-schema

Block schema definitions for composable page sections — the typed contract between Studio and your codebase.

@shavin/builder-engine

The visual layout engine that powers Shavin Studio — drag, compose, and export token-compliant JSX.

@shavin/skills

9 cognitive AI skills shipped on npm. Teach agents token rules, radius math, and spatial harmony.

@shavin/mcp

29 MCP tools exposing tokens, components, validation, and synthesis to Cursor, Claude, and Copilot.

@shavin/cli

One-command scaffolding: init wires your project, check verifies token discipline and config compliance.

Bottom-up dependency chain: block-schema → ui → builder-engine → skills → mcp → cli

Early Adopters

Built for production, growing in the open.

An open-source design system built in the open. Early adopters and AI-native developers are already shipping with @shavin/ui.

“The MCP server feeds exact component signatures and token rules to Cursor — no more hallucinated class names or broken layouts. It's the first design system that speaks the AI's language natively.”

A
Avinash B.Creator · Shavin Design System

“Concentric radius math and strict two-tier tokens make runtime theme switching instant. We went from custom CSS patches to full token compliance without touching component source.”

E
Early AdopterReact Engineer · Independent

“Radix-backed primitives pass every automated accessibility audit out of the box. WCAG AAA as a non-negotiable default is the right call — most libraries treat a11y as an afterthought.”

E
Early AdopterDesign Engineer · Independent
100% Token Compliant · WCAG AAA Certified Primitives · MIT Licensed

Built on

The stack underneath

Production-ready on the tools your team already runs — no bespoke runtime, no lock-in.

React 19Next.js 15TypeScriptTailwind CSSRadix UICVAModel Context Protocol

FAQ

Questions, answered

Everything about the system, theme customization, and AI integration.

Ready when you are

Discover the full design system.

Browse 73 primitives, compose production-ready blocks, and let your assistant build on-spec — pick a starting point and go.

React 19+ · Next.js 15 · MIT licensed