Overview
This portfolio uses Tailwind CSS v3.4.6 with custom configurations to create a Spotify-themed design system. The configuration extends the default theme with custom colors, animations, and utility classes.Configuration File
The main configuration is located attailwind.config.ts:1:
Content Paths
Tailwind scans these directories for class usage:./src/pages/**/*.{js,ts,jsx,tsx,mdx}- All page files./src/components/**/*.{js,ts,jsx,tsx,mdx}- All component files./src/app/**/*.{js,ts,jsx,tsx,mdx}- All app directory files
The content configuration ensures Tailwind includes only the CSS classes that are actually used in your components, keeping the final CSS bundle size optimized.
Custom Spotify Theme Colors
The configuration extends Tailwind’s color palette with Spotify brand colors attailwind.config.ts:29:
- Color Palette
- Usage Example
Color Usage
spotify-green(#1DB954): Primary actions, highlights, and interactive elementsspotify-black(#191414): Main background colorspotify-white(#FFFFFF): Primary text colorspotify-grey(#B3B3B3): Secondary text and subtle elements
Custom Animations
The config includes a custom scroll animation attailwind.config.ts:18 for infinite scrolling components:
Animation Properties
- Duration: Controlled by CSS variable
--animation-duration(default: 40s) - Direction: Controlled by CSS variable
--animation-direction(default: forwards) - Timing: Linear interpolation
- Loop: Infinite repetition
Plugins
Two plugins are configured attailwind.config.ts:39:
1. Typography Plugin
prose class. Perfect for blog posts and markdown content.
Usage:
2. Color Variables Plugin
Custom plugin that converts all Tailwind colors to CSS variables attailwind.config.ts:43:
- Access any color as a CSS variable:
var(--spotify-green) - Use in
styleattributes and CSS-in-JS - Enable dynamic theming and color manipulation
PostCSS Configuration
The PostCSS configuration atpostcss.config.mjs:1 processes Tailwind:
PostCSS is automatically configured by Next.js. This minimal setup is all you need to enable Tailwind CSS processing.
Dependencies
Frompackage.json:1, the styling-related dependencies are:
Key Packages
- tailwindcss: Core framework
- autoprefixer: Adds vendor prefixes automatically
- @tailwindcss/typography: Typography plugin
- tailwind-merge: Utility for merging Tailwind classes
- clsx: Utility for constructing className strings
Next Steps
Theme Customization
Learn how to customize colors and create your own theme
Animations
Explore custom animations and Framer Motion integration