Colors & Styling
How to customize colors, fonts, and overall appearance
Colors & Styling
Complete guide to customizing the colors, fonts, and overall appearance of your portfolio website.
Color Scheme
Colors are defined in app/globals.css using CSS variables.
Primary Colors
The primary color is used for links, buttons, and highlights:
Background Colors
Customizing Colors
To change colors, edit app/globals.css:
- Find the color variable you want to change
- Update the HSL values (Hue, Saturation, Lightness)
- Save and rebuild
Example: Change primary color to blue:
Typography
Fonts
Fonts are configured in app/layout.tsx:
To change fonts:
- Import a different font from
next/font/google - Update the font variable
- Apply to the body element
Example: Use Roboto instead of Inter:
Font Sizes
Font sizes use Tailwind's default scale. To customize:
- Edit
tailwind.config.js - Extend the fontSize:
Tailwind Configuration
Customize Tailwind in tailwind.config.js:
Dark Mode
Dark mode is handled by next-themes. The theme automatically switches based on:
- System preference (default)
- User selection (via theme toggle)
To customize dark mode colors, edit the .dark class styles in app/globals.css.
Best Practices
- Use CSS variables: Makes it easy to change colors globally
- Test both themes: Ensure colors work in light and dark mode
- Maintain contrast: Ensure text is readable on backgrounds
- Be consistent: Use the same colors throughout the site
Next Steps
- Navigation - Update navigation
- Homepage - Customize homepage