Overview
The portfolio uses Tailwind CSS 4.1.14 for utility-first styling, providing a modern and maintainable approach to CSS. The configuration includes custom theme extensions, PostCSS integration, and additional plugins for enhanced functionality.Dependencies
The project uses the following Tailwind-related packages:package.json
Tailwind Configuration
The Tailwind configuration is defined intailwind.config.js at the root of the project:
tailwind.config.js
Content Paths
Thecontent array defines where Tailwind should look for class names:
./src/**/*.{html,ts}- Scans all HTML templates and TypeScript files in thesrcdirectory
Custom Theme Extensions
Colors
The portfolio extends Tailwind’s default color palette with brand-specific colors:The primary color
#1173d4 is a vibrant blue that provides excellent contrast in both light and dark modes while maintaining brand identity.Typography
The customdisplay font family uses Inter, a modern sans-serif typeface optimized for UI design:
PostCSS Configuration
The PostCSS setup is minimal and uses the official Tailwind CSS plugin:.postcssrc.json
- Processes Tailwind directives (
@tailwind,@apply,@layer) - Handles Tailwind CSS imports
- Integrates seamlessly with Angular’s build pipeline
- Automatically handles vendor prefixes
Tailwind Plugins
The portfolio uses two official Tailwind CSS plugins:@tailwindcss/forms
Provides beautiful default styles for form elements:- Consistent styling across browsers
- Accessible form controls
- Easy to override with Tailwind utilities
@tailwindcss/container-queries
Enables container queries for responsive design based on parent container size:- Component-level responsive design
- Reusable components that adapt to their context
- More flexible layouts than media queries alone
Build Integration
Tailwind CSS is integrated into the Angular build process. You can also run Tailwind in watch mode during development:package.json
Usage Examples
Primary Color
Background Colors
Display Font
Next Steps
Dark Mode
Learn how dark mode is implemented using Tailwind’s class strategy
Responsive Design
Explore the mobile-first responsive design patterns