theme to PrefabApp:
Themes
- Default
- Presentation
- Minimal
No theme needed. The base renderer ships with system fonts, automatic gaps between cards, comfortable card padding, and gradient fills. This is what every
PrefabApp looks like with no theme argument.Accent
All themes acceptaccent, which controls the primary color, focus rings, and chart colors. Pass a Tailwind color name, CSS color string, or OKLCH hue number:
accent=None (the default), no color overrides are applied and components use the renderer’s neutral zinc palette.
Fonts
font sets the sans-serif typeface. font_mono sets the monospace font. Both auto-import from Google Fonts:
Color Scheme
By default, themes follow the OS preference for light or dark mode. Presentation’s dark slate chrome renders dark regardless of system preference. Override on any theme withmode:
Custom Themes
Theme gives full control. The css field accepts any CSS for component styling, fonts, and overrides:
light_css and dark_css:
Variable Reference
| Variable | Controls |
|---|---|
primary / primary-foreground | Primary buttons, active states |
secondary / secondary-foreground | Secondary buttons |
accent / accent-foreground | Highlighted surfaces |
background / foreground | Page background and default text |
card / card-foreground | Card surfaces |
muted / muted-foreground | Subdued text and surfaces |
destructive | Delete and error states |
success / warning / info | Semantic status colors |
border | Borders and dividers |
ring | Focus rings |
chart-1 through chart-5 | Chart color palette |
radius | Border radius |
card-padding-y | Card vertical padding (default 1rem) |
layout-gap | Gap between cards in containers (default 1rem) |
light_css and dark_css.