The Design Graph Framework
Build themeable user interfaces with constraint-based design principles. Theme UI provides a powerful styling system for creating design systems, component libraries, and custom themes.
Quick Start
Get up and running with Theme UI in minutes
Install Theme UI
Install the package and its peer dependencies using your preferred package manager.
Create a theme
Define your theme object with colors, typography, spacing, and other design tokens.
theme.js
Add the ThemeUIProvider
Wrap your application with the
ThemeUIProvider component to make your theme available throughout your app.App.jsx
Core Features
Everything you need to build themeable applications
Constraint-Based Design
Build UIs with design scales for colors, typography, and spacing that enforce consistency.
The sx Prop
Theme-aware styling with inline style objects that reference your design tokens.
Dark Mode Built-In
First-class support for color modes with automatic persistence and media query detection.
Responsive Styles
Mobile-first responsive design with array-based syntax for breakpoint values.
Component Library
Pre-built components for layouts, typography, forms, and UI elements.
TypeScript Support
Strong type inference for themes and style objects with full TypeScript definitions.
Explore by Topic
Deep dive into specific areas of Theme UI
Resources
Additional resources to help you succeed
GitHub Repository
View the source code, report issues, and contribute to Theme UI.
Discord Community
Join the community to ask questions and share your projects.
Theme Specification
Learn about the System UI theme specification for interoperability.
Ready to build themeable UIs?
Start building constraint-based design systems with Theme UI today.
Get Started