Import styles
Import the Soft UI styles once in your app entry point (e.g.,
app/layout.tsx or _app.tsx):Configure Tailwind v4
Add Soft UI’s component source scanning to your CSS file (e.g., This ensures Tailwind v4 scans Soft UI components for utility classes.
app/globals.css):Initialize theme (optional)
For theme switching support, add the theme initialization script to your root layout:This prevents flash of unstyled content (FOUC) and syncs with system preferences.
app/layout.tsx
Next steps
Components
Explore all available UI components
Design Tokens
Customize colors, spacing, and typography
Installation Guide
Advanced setup and configuration
API Reference
Component props and variants