Portfolio Logo

Tailwind Tips I Wish I Knew Earlier

Monish Soni
Monish SoniFullstack Developer
Mar 2025·1 min read
Tailwind CSSCSS

Tailwind CSS feels effortless once you stop fighting it with one-off pixel values and start leaning on consistent design tokens.

Use Semantic Opacity Tokens

Instead of hardcoding separate light and dark hex colors on every card, using bg-foreground/[0.02] and border-foreground/10 automatically adapts across themes.

Three Habits That Pay Off

  1. Design mobile-first, then layer sm: and lg: overrides.
  2. Extract small React components instead of overusing @apply.
  3. Use group-hover for card micro-interactions without extra state.
Blog