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.
The easiest way to customize the color scheme is by changing the primary color in config.ts:
Copy
// config.tscolors: { // The DaisyUI theme to use (leave blank for default light & dark mode) theme: "", // Primary color used throughout the application main: "#3b82f6", // Default blue, change to your brand color},
This primary color is used for buttons, links, and accent elements throughout the application.
PreLaunch automatically supports dark and light modes. The default configuration includes both modes and automatically switches based on user preferences.
The dark mode appearance can be customized by using Tailwind’s dark mode variant:
Copy
<div className="bg-white dark:bg-gray-800 text-black dark:text-white"> This text will be black on white in light mode, and white on dark gray in dark mode.</div>
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?
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?
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.