Introduction v2.4.0
Webui is a modern, framework-agnostic design-to-code platform that empowers developers and designers to build production-ready interfaces at unprecedented speed. This documentation covers everything from installation to advanced architecture patterns.
Why Webui?
Traditional UI development often creates friction between design and implementation. Webui bridges that gap by:
- Generating clean, semantic, and accessible HTML/CSS/JS
- Providing a comprehensive component library with zero runtime overhead
- Supporting multiple frontend frameworks (React, Vue, Svelte, Vanilla)
- Enforcing consistent design tokens across your entire organization
Installation
Webui requires Node.js 18+ and npm, yarn, or pnpm. Install the CLI globally:
Verify the installation by checking the version:
Quick Start
Create a new project using the built-in scaffolding tool:
Project Structure
A standard Webui project follows a predictable, scalable architecture:
Configuration
Customize Webui's behavior using webui.config.js. Here's a typical setup:
CLI Commands
The Webui CLI provides essential commands for development and production:
| Command | Description | Flags |
|---|---|---|
| webui dev | Starts local development server with HMR | --port 3000, --open |
| webui build | Compiles optimized production bundle | --minify, --sourcemap |
| webui preview | Serves production build locally | --host |
| webui deploy | Deploys to configured provider | --env prod |
| webui doctor | Checks config and dependencies | --verbose |
Next Steps
Now that you've set up your environment, explore the core concepts:
- Components & Primitives - Learn how to compose UIs efficiently
- Design Tokens - Centralize theming and spacing
- Routing & Navigation - Set up client-side or file-based routing
Have questions or found a bug? Join our Discord or open an issue on GitHub.