Color System
The color system is built on HSL color values using CSS custom properties, allowing for easy theme customization without modifying component code.CSS Variables
Colors are defined insrc/app/globals.css using CSS custom properties:
Dark Mode
Dark mode colors are defined using the.dark class:
tailwind.config.ts:
Tailwind Color Configuration
Colors are mapped to Tailwind utilities intailwind.config.ts:
Typography
Font Families
The template uses Poppins as the primary font, configured intailwind.config.ts:
Font Loading
Fonts are loaded via Google Fonts insrc/app/[lang]/layout.tsx:
Customizing Fonts
To change the font family:- Update the Google Fonts link in
src/app/[lang]/layout.tsx - Modify the
fontFamilyconfiguration intailwind.config.ts - Update the global CSS in
src/app/globals.cssif needed
Border Radius
Border radius values are calculated based on a CSS variable:globals.css:
Animations
The theme includes custom animations for accordions and other interactive components:Customizing the Theme
Changing Colors
To customize the color scheme:- Open
src/app/globals.css - Modify the CSS variables in the
:rootselector for light mode - Modify the CSS variables in the
.darkselector for dark mode - Use HSL format:
hue saturation lightness(e.g.,212 88% 53%)
Example: Custom Primary Color
Adding Custom Colors
- Add CSS variable in
src/app/globals.css:
- Map it in
tailwind.config.ts:
- Use in components:
Plugins
The configuration uses thetailwindcss-animate plugin for animation utilities: