A minimal, high-performance UI system combining React Strict DOM, Tailwind-style utilities, and shadcn color tokens.
Zero overhead, maximum speed.
- < 2KB runtime with React Strict DOM
- No CSS files β styles injected inline via StyleX
- 13 components cover 80% of UI needs
- Tailwind syntax without Tailwind overhead
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Your Application β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β UI8Kit Components β RSD Layouts + TWSX β
β (Button, Card, etc.) β (html.div, twsx('flex gap-4')) β
βββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββ€
β shadcn Color Tokens β
β (--primary, --background, --foreground, etc.) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β React Strict DOM (RSD) β
β (< 2KB, atomic CSS, cross-platform) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Pre-built components with CVA variants. No state, no hooks β pure styling.
import { Button, Stack, Title, Text } from '@ui8kit/ui'
<Stack gap="lg" align="center">
<Title size="4xl">Welcome</Title>
<Text c="muted">Build fast UIs</Text>
<Button variant="primary">Get Started</Button>
</Stack>React Strict DOM elements with Tailwind-style utilities.
import { html } from 'react-strict-dom'
import { twsx } from '@/lib/twsx'
<html.div style={twsx('min-h-screen flex flex-col')}>
<html.header style={twsx('w-full py-4 px-6 bg-background')} />
<html.main style={twsx('flex-1 p-6 max-w-7xl mx-auto')} />
</html.div>Semantic color tokens via CSS variables.
:root {
--background: hsl(0 0% 100%);
--foreground: hsl(240 10% 4%);
--primary: hsl(211 100% 50%);
--secondary: hsl(210 40% 96%);
--muted: hsl(210 40% 96%);
--accent: hsl(210 40% 96%);
--destructive: hsl(0 84% 60%);
}# Clone with submodules
git clone --recurse-submodules https://github.com/ui8kit/create-app.git
cd create-app
# Install dependencies
bun install
# Configure environment (optional)
cp env.example .env
# Start development
bun run devThe application supports dynamic content loading from a GraphQL API. Configure the endpoint:
# Copy environment template
cp env.example .env
# Edit .env file
VITE_GRAPHQL_ENDPOINT=https://your-graphql-api.com/graphqlSee README-env.md for detailed environment setup instructions.
apps/web/src/
βββ components/ui/ # UI8Kit components (13)
βββ variants/ # CVA variant definitions (12 modules)
βββ lib/
β βββ twsx.ts # Tailwind β StyleX converter
β βββ utils.ts # Utilities (cn, etc.)
βββ layouts/ # RSD page layouts
βββ blocks/ # RSD composite blocks
| Need | Use | Example |
|---|---|---|
| Button, Badge, Card | UI8Kit | <Button variant="primary"> |
| Page layout | RSD + TWSX | twsx('min-h-screen flex') |
| Grid system | RSD + TWSX | twsx('grid grid-cols-3 gap-4') |
| Custom block | RSD + TWSX | <html.section style={...}> |
| Colors | shadcn tokens | bg-primary, text-foreground |
Three Cursor rules define how to use the system:
.cursor/rules/react-strict-dom.mdcβ RSD elements and css.create().cursor/rules/twsx.mdcβ Tailwind syntax for RSD.cursor/rules/ui8kit.mdcβ Component library usage
| Metric | Target |
|---|---|
| RSD Runtime | < 2KB gzipped |
| CSS Output | Atomic classes only |
| Bundle | Tree-shaken, no unused styles |
| First Paint | < 1.5s |
- 101 Guide β Complete introduction
- React Strict DOM β RSD documentation
- shadcn/ui β Color token reference
- Tailwind CSS β Class reference for TWSX
MIT License β see LICENSE for details.
Built for speed. Designed for clarity. Zero overhead.