Theming
Theming Overview
Learn how the theme system works in your app.
Theming Overview
The app includes a simple theming system with light and dark modes. The theming is built on Tailwind CSS, making it easy to style your components.
Basic Usage
Most components are already theme-aware
All the built-in components automatically adapt to light or dark mode:
Adding the theme toggle button
To let users switch between themes, just add the ThemeToggle component:
Customizing Colors
Want to change the app's colors? You'll need to update two files:
- /master-app/tailwind.config.js- For components using Tailwind classes
- /master-app/app/contexts/ThemeColors.tsx- For components using direct styles
For detailed instructions, check out the Colors page.
Theme Structure
The theming system has these key parts:
- Color definitions: In tailwind.config.jsandThemeColors.tsx
- Theme context: Behind-the-scenes management of theme state
- ThemeToggle: The button users click to switch themes
That's it! The app's theming is designed to be simple and easy to use.