Theme System Overview
The portfolio uses Tailwind CSS’s theme extension system to create a cohesive design with glassmorphism effects, custom animations, and carefully crafted color palettes.Color Palette
Primary Colors
The portfolio uses an indigo/purple color scheme. These colors appear in gradients, shadows, and accents:- Indigo:
rgb(99, 102, 241)- Primary accent color - Purple:
rgb(139, 92, 246)- Secondary accent color
Glassmorphism Layers
The theme includes multiple glass effect layers for different use cases:Typography
Font Configuration
The portfolio uses a two-tier font system:Customizing Fonts
To use your own custom font:Use
font-display: swap to prevent invisible text while fonts load.Shadow System
Custom shadows create depth and enhance the glassmorphism effect:tailwind.config.js
Shadow Usage Guide
| Class | Use Case | Example |
|---|---|---|
shadow-glass-sm | Small cards, buttons | Navigation items |
shadow-glass | Standard cards | Project cards |
shadow-glass-lg | Modals, important elements | Contact modal |
shadow-glass-inset | Input fields | Form inputs |
Backdrop Blur
Custom blur values for enhanced glassmorphism:tailwind.config.js
backdrop-blur-xs- 2px (custom)backdrop-blur-sm- 4pxbackdrop-blur-md- 12pxbackdrop-blur-lg- 16pxbackdrop-blur-xl- 24pxbackdrop-blur-2xl- 40px
Border System
Glass-themed borders with varying opacity:tailwind.config.js
border-glass-light- High contrast bordersborder-glass- Standard bordersborder-glass-dark- Subtle borders
Global Styles
Smooth Scrolling
src/index.css
Mobile Optimizations
Remove tap highlights and default browser styles:src/index.css
Creating a Custom Theme
To create your own color theme:Choose Your Colors
Select primary and secondary colors. Use a tool like Coolors or Adobe Color.
Update Glass Colors
Replace RGBA values in
tailwind.config.js backgroundColor and borderColor sections.Theme Consistency Tips
When changing theme colors, rebuild your project (
npm run build) to ensure Tailwind purges old classes and generates new ones.