Tailwind CSS Setup
The project uses Tailwind CSS v4 with the Vite plugin for optimal performance:package.json
@import directive:
src/index.css
Theme Variables
The portfolio uses CSS custom properties defined insrc/index.css for dynamic theming. Colors automatically adapt based on light/dark mode.
Color Variables
src/index.css
Dark Mode Override
Dark mode colors are defined using the.dark class:
src/index.css
Using Theme Variables in Components
Reference CSS variables in your Tailwind classes using thebg-, text-, and border- prefixes:
src/App.jsx
src/pages/Home.jsx
Custom Animations
Theme Transitions
Smooth transitions when switching between light and dark modes:src/index.css
Scroll Animations
The portfolio includes scroll-triggered animations using CSSview-timeline:
src/index.css
Page Transitions
Page transitions are handled with Framer Motion:src/App.jsx
Custom Scrollbar
The portfolio features a custom-styled scrollbar that adapts to your theme:src/index.css
Customizing Colors
How do I change the primary color scheme?
How do I change the primary color scheme?
To change from violet to another color (e.g., blue):
- Update the light mode variables in
src/index.css:
- Update the dark mode variables:
- Update scrollbar colors to match your new theme
Can I add custom fonts?
Can I add custom fonts?
Yes! The portfolio uses JetBrains Mono by default:To add a custom font:
src/index.css
- Add the font import to
src/index.cssor your HTML:
- Update the font-family:
How do I modify the background gradient?
How do I modify the background gradient?
The background gradient is defined in the Customize it by:
--color-bg-gradient variable:- Changing the shape:
ellipse,circle - Adjusting dimensions:
80% 60% - Moving position:
at 50% 0%(horizontal, vertical) - Modifying colors and opacity:
rgba(139, 92, 246, 0.85) - Adjusting gradient stops:
transparent 90%
Next Steps
Translations
Learn how to add new languages and manage translations
Content
Update personal information, projects, and certificates