Skip to content

buildy-ui/app-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

UI8Kit β€” Ultra-Fast UI System

A minimal, high-performance UI system combining React Strict DOM, Tailwind-style utilities, and shadcn color tokens.

🎯 Philosophy

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

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      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)            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“¦ Three Layers

1. UI8Kit β€” Stateless Components

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>

2. RSD + TWSX β€” Custom Layouts

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>

3. shadcn Colors β€” Design Tokens

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%);
}

πŸš€ Quick Start

# 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 dev

πŸ”§ Environment Configuration

The 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/graphql

See README-env.md for detailed environment setup instructions.

πŸ“ Project Structure

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

🎨 When to Use What

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

πŸ“š Documentation

  • 101 Guide β€” Complete introduction to the system
  • AGENTS.md β€” Instructions for AI coding agents

πŸ”§ Rules Files

Three Cursor rules define how to use the system:

  1. .cursor/rules/react-strict-dom.mdc β€” RSD elements and css.create()
  2. .cursor/rules/twsx.mdc β€” Tailwind syntax for RSD
  3. .cursor/rules/ui8kit.mdc β€” Component library usage

⚑ Performance

Metric Target
RSD Runtime < 2KB gzipped
CSS Output Atomic classes only
Bundle Tree-shaken, no unused styles
First Paint < 1.5s

Reference Links

πŸ“„ License

MIT License β€” see LICENSE for details.


Built for speed. Designed for clarity. Zero overhead.

About

Let's start with a boilerplate version

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published