Skip to content

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.

21,646 class names on the page1,005 written<Card> <Flex> <Button>

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.

240 messages laterchecked at every change

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.

brandColor="#0F766E"

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.

3 raw values, flagged#635BFF

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.

Built on Radix↑↓

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.

55 compositions

What you get

PartWhat it isWhere
94 primitivesAccessible React components, from Button to AppFrame and charts@shavin/ui
Tokens and themesSemantic colour, radius and type tokens; Tailwind v3 or v4; RGB or OKLCH@shavin/ui
59 free blocksSections and screens you copy into your code with one commandnpx @shavin/cli add
32 MCP toolsLookups, planning, validation, autofix and live audit for AI agents@shavin/mcp
9 agent skillsRules and playbooks for apps, pages, layout and motion@shavin/skills
StudioA visual canvas that reads and writes the same TSX your agent writesstudio.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.

TopicShavinAstryx
AI tooling32 MCP tools, including validation and live audit2 MCP tools: search and get
Checking agent outputvalidate_code, audit_source, autofix_code, check_pageA written review guide; its doctor command checks project setup, not generated UI
StylingTailwind v3 or v4 over CSS variablesStyleX; Tailwind through a bridge
Pagesplan_page with 55 compositions, including marketing and editorial52 templates, mostly app surfaces
MotionMotion tokens, reveals and GSAP scroll scenesDuration and easing tokens, with a theme tempo setting
Visual editingStudio canvas that round-trips TSXCode 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

Configure Theme
Theme
Brand Color
Custom
Gray Family
Appearance
Radius
Scaling
Panel Style
Heading Font
Body Font