--primary: Main brand color (default: orange)--primary-foreground: Text color on primary backgrounds
Color System
The template uses CSS variables for colors, making it easy to maintain consistent theming across light and dark modes.CSS Variables
All colors are defined insrc/styles/globals.css using HSL color values:
src/styles/globals.css
Color Palette
Background & Foreground
Background & Foreground
Base colors for your site’s background and text:
--background: Main background color--foreground: Primary text color
Primary Colors
Primary Colors
Used for primary actions, links, and important UI elements:
Secondary Colors
Secondary Colors
Used for secondary actions and subtle UI elements:
--secondary: Secondary brand color--secondary-foreground: Text on secondary backgrounds
Muted Colors
Muted Colors
Used for disabled states, placeholders, and subtle text:
--muted: Muted background color--muted-foreground: Muted text color
Accent Colors
Accent Colors
Used for hover states and highlighted elements:
--accent: Accent background color--accent-foreground: Text on accent backgrounds
Semantic Colors
Semantic Colors
Colors with specific meanings:
--destructive: Error and danger states--destructive-foreground: Text on destructive backgrounds
UI Elements
UI Elements
Border, input, and focus styles:
--border: Border color for elements--input: Input field border color--ring: Focus ring color--radius: Border radius for rounded corners (1rem default)
Dark Mode
The template includes a pre-configured dark mode that automatically adjusts all colors.Dark Mode Configuration
Tailwind is configured to use class-based dark mode:tailwind.config.ts
Dark Mode Colors
Define dark mode colors in the.dark class:
src/styles/globals.css
Tailwind Configuration
Thetailwind.config.ts file extends Tailwind with custom theme values.
Custom Theme Extensions
tailwind.config.ts
Using Theme Colors in Code
Reference theme colors in your components:Typography
Font Configuration
The template uses Inter as the default sans-serif font:tailwind.config.ts
Changing Fonts
Animations
The template includes custom animations for interactive elements:tailwind.config.ts
Using Animations
Customization Examples
Example 1: Blue Theme
Change the primary color from orange to blue:src/styles/globals.css
Example 2: Larger Border Radius
Make all elements more rounded:src/styles/globals.css
Example 3: Custom Background Colors
Use a warmer background tone:src/styles/globals.css
Design Tokens
The template follows a design token system for consistency:Spacing
Use Tailwind’s spacing scale:
p-4, m-8, gap-6Typography
Use semantic text classes:
text-foreground, text-muted-foregroundColors
Use CSS variable-based colors:
bg-primary, text-primary-foregroundShadows
Use Tailwind shadows:
shadow-sm, shadow-md, shadow-lgNext Steps
Styling Components
Learn about Shadcn UI components and custom styles
Adding Content
Add projects, posts, and experiences to your portfolio