Getting Started
YuBild is the all-in-one platform for creating, customizing, and deploying production-ready design systems. Start building in minutes.
What is YuBild?
YuBild solves a problem every frontend team faces: building and maintaining a consistent design system. Instead of manually writing CSS variables, tweaking Tailwind configs, or mapping design tokens to library-specific theme objects, YuBild gives you a visual editor that generates production-ready theme code for 10 UI libraries across React, Vue, and Angular.
You design your tokens visually — colors, typography, spacing, shadows, borders, motion, effects, accessibility rings, and z-index layers. YuBild previews your tokens on real UI components in real-time, then generates the exact theme file your library expects. No hand-coding, no guessing, no inconsistency.
Visual Token Editor
Edit colors, typography, spacing, and 10+ token categories with real-time preview. Undo/redo with 50-state history.
Live Component Preview
See your tokens on real components — buttons, cards, forms, dialogs, tables — from your chosen library, updated instantly.
Code Lab
Explore generated files with multi-file tabs, sidebar scroll sync, diff highlighting, and interactive setup guides.
10 UI Libraries
shadcn/ui, MUI, Chakra, Radix, Vuetify, PrimeVue, Naive UI, Angular Material, PrimeNG, NG-Zorro.
Full Token System
Colors with auto-generated 50-950 scales, typography with 6 sub-categories, spacing presets, shadow levels, and more.
Export Anywhere
CSS variables, Tailwind config, library theme files, framework integration code, and PDF documentation.
Quick Start Guide
Here's a walkthrough of the entire flow, from creating a project to using the generated theme in your application.
Step 1: Create a Project
From the Dashboard, click New Project. You'll need to:
- Give your project a name (e.g., "My App Design System")
- Choose a framework: React, Vue, or Angular
- Select a UI library from the 10 available options
Your choice of library determines what component demos you see in the preview and what theme format gets generated. You can always change the library later.
Tip
Step 2: Design Your Tokens
The project editor opens with two panels: the Token Editor (left sidebar) and the Live Preview (main area).
Start with Colors — pick your primary brand color. YuBild immediately:
- Generates a full 50-950 shade scale from your base color
- Calculates accessible contrast colors for text on each shade
- Updates the preview with your new palette applied to all components
Then move through the other token categories in the sidebar. Each one has tailored controls:
- Typography — Pick heading, body, and monospace fonts from Google Fonts. Set the size scale, line heights, letter spacing, and weights.
- Spacing — Choose a density preset (compact, normal, relaxed, spacious) that generates a full spacing scale.
- Shadows — Select shadow intensity (none, subtle, medium, strong) generating 6 elevation levels.
- Border Radius — From sharp (0px) to fully rounded (9999px) with 7 presets.
- Borders — Width from thin (1px) to thick (3px).
- Effects — Backdrop blur, disabled opacity, hover opacity, backdrop overlay opacity.
- Motion — Transition speed and easing curve for all interactive states.
- Focus & Accessibility — Focus ring width and offset for keyboard navigation visibility.
- Z-Index — Layering scale (flat, normal, elevated) with named layers for dropdown, modal, tooltip, etc.
Note
Step 3: Preview Your Design System
The preview area has three modes, controlled by the segmented toggle in the header:
- Components — Real, interactive UI components from your selected library. This includes buttons (all variants and sizes), cards, forms with inputs and selects, data tables, dialogs, tooltips, alerts, accordions, switch toggles, avatars, skeletons, navigation patterns, and more. Each demo is fully functional — you can click buttons, toggle switches, and expand accordions.
- Design — A visual overview canvas showing your complete design system laid out: color palettes, type specimens, spacing visualization, shadow levels, and component examples side by side. Good for design review sessions.
- Code — Opens Code Lab, the multi-file code viewer. Shows you the exact generated theme files with syntax highlighting.
You can also test responsive behavior with the viewport controls (desktop, tablet, mobile) and zoom from 50% to 150%.
Step 4: Explore Generated Code
Switch to Code mode to open Code Lab. You'll see multiple file tabs:
- Theme file — The library-specific theme. For Angular Material, this is
_yubild-theme.scsswith SCSS palette maps, typography config, and component overrides. For shadcn, it'sglobals.csswith HSL custom properties. - design-tokens.css — Universal CSS custom properties.
- tailwind.config.ts — Tailwind theme extension.
- Framework file — ThemeProvider (React), YubildTheme.vue (Vue), or design-token.service.ts (Angular) for runtime token access.
Click any token category in the Code Lab sidebar to scroll directly to that section in the code. Modified lines are highlighted in green when you change a token.
Step 5: Export and Integrate
When you're satisfied with your design system, you have several export options:
- Copy from Code Lab — Click the copy button on any file tab to copy that file to your clipboard. This is the fastest path for grabbing one file.
- Export dialog — Click Export in the toolbar to download all output files at once.
- PDF documentation — Generate a shareable PDF of your design system for team review.
- Setup Guide — The interactive step-by-step guide in Code Lab walks you through integration for your specific library and framework.
Supported Libraries
| Library | Framework | Output | Best For |
|---|---|---|---|
| shadcn/ui | React | globals.css | Tailwind-based apps, maximum flexibility |
| Material UI | React | theme.ts | Enterprise apps, Material Design |
| Chakra UI | React | theme.ts | Accessible-first React applications |
| Radix UI | React | CSS variables | Headless primitives, custom design |
| Vuetify | Vue | vuetify.config.ts | Vue apps with Material Design |
| PrimeVue | Vue | Aura preset | Feature-rich Vue component suite |
| Naive UI | Vue | Theme overrides | Lightweight modern Vue 3 apps |
| Angular Material | Angular | _yubild-theme.scss | Angular enterprise, deep component overrides |
| PrimeNG | Angular | Aura preset | Angular apps, rich data components |
| NG-Zorro | Angular | Less/SCSS variables | Angular apps, Ant Design patterns |
How YuBild Works Under the Hood
Understanding the architecture helps you get the most out of YuBild:
- Token Config — Your design decisions are stored as a typed
TokenConfigobject (colors as hex strings, spacing as enum presets, etc.). This is persisted in a Zustand store with localStorage and synced to the database on save. - Theme Generators — Each UI library has a dedicated generator that transforms your
TokenConfiginto library-specific code. Generators are lazy-loaded so only the one you need is bundled. They're deterministic — same input always produces same output. - CSS Injection — The live preview injects your tokens as CSS custom properties via a
StyleInjectorcomponent. Component demos react to changes instantly without page reload. - Build Engine — For export, a build engine compiles your tokens into multiple output formats: CSS bundles, Tailwind presets, and framework-specific integration files.
Example: Building a SaaS Dashboard Theme
Let's walk through a realistic workflow. You're building a SaaS dashboard with React and shadcn/ui:
- Create a project → React + shadcn/ui.
- Colors → Set primary to
#2563eb(brand blue). YuBild generates 50-950 shades. Set destructive to red, accent to amber. - Typography → "Inter" for body, "Cal Sans" for headings. Default size scale.
- Spacing → "Compact" — dashboards need tighter spacing.
- Shadows → "Subtle" — modern flat-ish design.
- Border Radius → "lg" (8px) for friendly components.
- Preview → Check buttons, cards, tables in Components mode.
- Code Lab → Copy
globals.cssinto your project. - Copy
tailwind.config.tsto extend your Tailwind theme. - Follow the Setup Guide for ThemeProvider integration.
Tip
Next Steps
- Token Editor — Master the visual editor, undo/redo, search, and preview modes
- Design Tokens — Comprehensive reference for all 10 token categories
- Code Lab — Learn scroll sync, diff highlighting, and the interactive setup guide
- Theme Generators — Understand what each library's generator produces
- Exports — All export formats and integration patterns
- Keyboard Shortcuts — Speed up your workflow