Box Kite styles React in TypeScript. Every CSS property is a prop on Box, every value it takes is a type, and the CSS is
written for you at runtime — one shared class per value, no stylesheet to import, no class names to invent, no build plugin.
It is built to be written by an AI: the rules and a reference measured from the engine ship inside the package, an MCP
server checks a prop bag against the real engine, and the compiler refuses a value the library would not render.
import Button from '@box-kite/react/components/button';
import Flex from '@box-kite/react/components/flex';
import { H2, P } from '@box-kite/react/components/semantics';
export function PlanCard() {
return (
<Flex d="column" gap={3} p={6} md={{ p: 8 }} borderRadius={3} shadow="md"
bgColor="white" theme={{ dark: { bgColor: 'slate-900' } }}>
<H2 fontSize={20} fontWeight={600}>Pro plan</H2>
<P color="slate-600">Every value on this card is checked by the compiler.</P>
<Button hover={{ bgColor: 'indigo-600' }}>Upgrade</Button>
</Flex>
);
}
Each prop becomes one shared class: p={6} is padding: 1.5rem, md wraps it in a media query, theme scopes it to the dark
subtree, and the same value anywhere else in the app reuses the same rule.
⚡ Quick start
Start a new Vite + React app with a design, a sample page and the agent setup already in it:
npm create @box-kite@latest
Or add it to the app you have:
npm install @box-kite/react
React 18 or newer, and no third-party dependencies: the install is Box Kite and its own engine, nothing else. TypeScript is
optional, but it is where the library shines.
✨ Why Box Kite