What is Shavin?
Shavin is a React design system built for teams that ship with AI agents. People and agents use the same small set of components, tokens and rules, the result is checked automatically, and the whole system takes its look from a single brand colour.
The problems Shavin solves
Every screen re-types the same styling
In plain React and Tailwind, each card, form and header repeats its own padding, radius, colour and dark-mode classes. Shavin primitives carry that styling, so a screen is written as structure (Card, Flex, Heading) plus the few choices that are actually yours. Less code to write and review, smaller diffs, and less for an AI agent to read and get wrong.
AI agents drift from your rules in long sessions
Agents follow a design system well at the start of a conversation and less well later, as the rules scroll out of their attention. Shavin does not rely on the agent remembering. Its MCP server answers lookups with the real props and tokens, validate_code, audit_source and autofix_code check each change, and the live bridge audits the page running in the browser. Smaller code also means fewer tokens per file, so more of the conversation stays on your task.
Theming is a project
A product owner should not have to think about the design system at all. They pick one brand colour. Shavin derives the hover state, the text colour on brand fills, and the brand text, link and focus colours, for light and dark mode. The brand text, link and focus colours are darkened or lightened until they reach about 4.6:1 contrast on every page surface.
Hard-coded colours creep back in
A raw hex or text-gray-500 looks fine in light mode and breaks in dark mode or the next rebrand. Shavin components and blocks use role-based tokens (bg-surface, text-fg-subtle, border-hairline) that change with the theme, and the linters flag raw values before they ship.
Accessibility is rebuilt for every component
Menus, dialogs, selects and popovers are easy to ship with broken focus and keyboard support. Shavin builds them on Radix, which handles focus trapping, Escape, arrow-key navigation, type-ahead and ARIA state. Motion respects prefers-reduced-motion, and moving backgrounds get a pause button.
Generated pages all look the same
Ask an agent for a landing page and you get a hero and three cards. Shavin gives the agent a plan step instead: plan_page picks section layouts from 55 compositions, including editorial and expressive ones, and check_page verifies the code follows the plan. Motion comes in tiers, from simple reveals to scroll-driven scenes.
What you get
| Part | What it is | Where |
|---|---|---|
| 94 primitives | Accessible React components, from Button to AppFrame and charts | @shavin/ui |
| Tokens and themes | Semantic colour, radius and type tokens; Tailwind v3 or v4; RGB or OKLCH | @shavin/ui |
| 59 free blocks | Sections and screens you copy into your code with one command | npx @shavin/cli add |
| 32 MCP tools | Lookups, planning, validation, autofix and live audit for AI agents | @shavin/mcp |
| 9 agent skills | Rules and playbooks for apps, pages, layout and motion | @shavin/skills |
| Studio | A visual canvas that reads and writes the same TSX your agent writes | studio.shavin.cc |
A screen in Shavin
Structure and intent, no colour or spacing classes. It follows the theme, works in dark mode, and an agent can read it in a glance.
import { Button, Card, Flex, Heading, Text } from "@shavin/ui";
export function PlanCard() {
return (
<Card padding="lg">
<Flex direction="column" gap="3">
<Heading as="h3" size="sm">Household plan</Heading>
<Text size="sm" color="subtle">Two people, shared budgets, one bill.</Text>
<Button>Start free trial</Button>
</Flex>
</Card>
);
}How Shavin differs from Astryx
Astryx is Meta's open-source React design system. Both are React 19, MIT licensed and agent-aware. They differ in how much they do for the agent and what kinds of pages they cover.
| Topic | Shavin | Astryx |
|---|---|---|
| AI tooling | 32 MCP tools, including validation and live audit | 2 MCP tools: search and get |
| Checking agent output | validate_code, audit_source, autofix_code, check_page | A written review guide; its doctor command checks project setup, not generated UI |
| Styling | Tailwind v3 or v4 over CSS variables | StyleX; Tailwind through a bridge |
| Pages | plan_page with 55 compositions, including marketing and editorial | 52 templates, mostly app surfaces |
| Motion | Motion tokens, reveals and GSAP scroll scenes | Duration and easing tokens, with a theme tempo setting |
| Visual editing | Studio canvas that round-trips TSX | Code playground and theme editor |
Compared with Astryx 0.7.15 in November 2026. Shavin is not affiliated with Meta. Read the full comparison.
What Shavin does not claim
- It does not stop agents from making mistakes. It makes mistakes visible and cheap to fix: lookups return real props, and checks catch what slips through.
- Contrast targets WCAG AA, not AAA. Derived brand text, link and focus colours are adjusted to about 4.6:1; colours you set yourself still need checking.
- Raw values are flagged, not impossible. The linters report them; your CI decides whether that fails the build.
Next steps
- Install Shavin with one command.
- Set up your AI agent with the MCP server and skills.
- Apply your brand colour.