Theme Customization Overview
PreLaunch is built with customization in mind, allowing you to easily adjust the visual appearance to match your brand identity. The template uses Tailwind CSS and DaisyUI for styling, providing a robust foundation for customization.Color Scheme Customization
Primary Color
The easiest way to customize the color scheme is by changing the primary color inconfig.ts
:
Full Theme Customization
For more comprehensive theme customization, you can edit the Tailwind configuration intailwind.config.js
:
DaisyUI Themes
PreLaunch uses DaisyUI for theming, which provides several pre-built themes. You can select a theme inconfig.ts
:
tailwind.config.js
file:
config.ts
:
Dark Mode / Light Mode
PreLaunch automatically supports dark and light modes. The default configuration includes both modes and automatically switches based on user preferences.Controlling Dark Mode
You can customize how dark mode works by modifying thetailwind.config.js
file:
Customizing Dark Mode Appearance
The dark mode appearance can be customized by using Tailwind’s dark mode variant:Typography Customization
Font Family
To change the font family, update thetailwind.config.js
file:
Font Sizes
Customize font sizes intailwind.config.js
:
Component Styling
Button Styling
PreLaunch includes several button components that can be easily customized. To modify the default button styling, edit the respective component file:Card Styling
To customize card styles, edit the relevant card components or create your own card component with your desired styling:CSS Variables
PreLaunch uses CSS variables for consistent theming. You can override these variables instyles/globals.css
:
Adding Custom Components
You can create custom themed components by adding new files to thecomponents/ui/
directory:
Common Questions
How do I add Google Fonts to my project?
How do I add Google Fonts to my project?
- Add the font link in your HTML head or _document.js file
- Update the fontFamily in tailwind.config.js to include your new font
- Apply the font using Tailwind classes or update the default font in globals.css
How do I create a completely custom theme?
How do I create a completely custom theme?
Create a custom theme by defining your own theme in the daisyui.themes section of tailwind.config.js. You can start by copying one of the existing themes and modifying it to match your brand colors.
Can I disable dark mode?
Can I disable dark mode?
Yes, you can effectively disable dark mode by only using a single theme and removing dark mode variants from your components. Update your tailwind.config.js to use a single theme and remove darkMode settings.