Styling Customization
The Psi Lime Portfolio uses TailwindCSS for styling with custom configurations and patterns. This guide will help you customize the visual appearance of your portfolio.TailwindCSS Configuration
The TailwindCSS configuration is located intailwind.config.js:1-10. Currently, it uses the default configuration:
tailwind.config.js
While the config is minimal, TailwindCSS classes are used throughout the components via the
@import "tailwindcss" directive in index.css:1.Extending the Theme
You can extend the default TailwindCSS theme to add custom colors, spacing, or fonts:Add custom colors
Open
tailwind.config.js and add your custom colors in the theme.extend object:tailwind.config.js
Common Styling Patterns
The portfolio uses several consistent styling patterns across components.Glassmorphism Effect
The header and buttons use a glassmorphism effect with backdrop blur. Here’s the pattern fromHeader.jsx:7:
src/components/Header/Header.jsx
bg-white/5- Semi-transparent white backgroundbackdrop-blur-md- Blur effect for glassmorphismborder border-white/20- Subtle border
Button Styling
Buttons throughout the portfolio use this consistent pattern fromPresentation.jsx:33:
src/components/Presentation/Presentation.jsx
- Glassmorphism background
- Hover lift effect with
hover:-translate-y-0.5 - Smooth transitions with
transition-all duration-200
Responsive Design
The portfolio uses Tailwind’s responsive prefixes extensively. Example fromPresentation.jsx:9:
src/components/Presentation/Presentation.jsx
- Default (mobile):
flex-col-reverse,gap-10,mt-20,px-6 md:(768px+):flex-row,gap-16,mt-28,px-16
Text Color Hierarchy
The portfolio uses a consistent color hierarchy for text:Custom CSS
Theindex.css file contains custom CSS for specific use cases.
Logo White Filter
The.logo-white class inverts logos to white (index.css:3-5):
src/index.css
Aboutme.jsx:66 to display technology logos in white:
src/components/Aboutme/Aboutme.jsx
Layout Patterns
Section Spacing
Sections use consistent top margin for spacing (Aboutme.jsx:24 and Projects.jsx:6):
Horizontal Rules
Dividers use this pattern (Presentation.jsx:39):
Image Styling
Images use rounded corners and proper sizing (Presentation.jsx:63-64):
Modifying Layouts
Adjust spacing between sections
Modify the
mt-28 class on section elements to change vertical spacing:Adding Custom Styles
If you need styles that can’t be achieved with Tailwind classes:- Open
src/index.css - Add your custom CSS after the Tailwind import:
src/index.css