Skip to main content

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 in config.ts:
This primary color is used for buttons, links, and accent elements throughout the application.

Full Theme Customization

For more comprehensive theme customization, you can edit the Tailwind configuration in tailwind.config.js:

DaisyUI Themes

PreLaunch uses DaisyUI for theming, which provides several pre-built themes. You can select a theme in config.ts:
To use a custom DaisyUI theme, modify the tailwind.config.js file:
Then reference your custom theme in 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 the tailwind.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 the tailwind.config.js file:
Then add the font imports to your CSS or update the font links in your HTML head.

Font Sizes

Customize font sizes in tailwind.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 in styles/globals.css:

Adding Custom Components

You can create custom themed components by adding new files to the components/ui/ directory:

Common Questions

  1. Add the font link in your HTML head or _document.js file
  2. Update the fontFamily in tailwind.config.js to include your new font
  3. Apply the font using Tailwind classes or update the default font in globals.css
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.
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.

Configuration

Learn how to configure your PreLaunch application settings

Content Customization

Learn how to customize the text and content of your application