Blog
Practical CSS & UI tutorials, every guide pairs with a free visual tool on uitweak.
Styled Select Works in Chrome But Breaks in Firefox/Safari? The base-select Fix
Fix customizable select dropdowns that look perfect in Chrome but fall back to native in Firefox and Safari: the appearance: base-select opt-in, ::picker(select) styling, and the @supports fallback strategy. With copy-paste code.
Stop Passing Index Props: Staggered Animations with sibling-index()
Delete index prop drilling for staggered animations: sibling-index() and sibling-count() are now Baseline, so animation-delay: calc(100ms * sibling-index()) staggers any list in pure CSS. Recipes, z-index stacks, and fallbacks with copy-paste code.
bg-brand Works but bg-brand/50 Does Nothing? The Tailwind v4 Opacity Fix
Fix Tailwind v4 custom colors ignoring opacity modifiers: why bg-brand/50 silently does nothing when --color-brand holds bare var() or channel values, the hsl() wrap fix, and color-mix() for manual alpha. With copy-paste code.
Why Won't My Accordion Animate? The height: auto Transition Fix
Fix accordions and collapsible panels that snap open instead of animating: the grid 0fr to 1fr trick, interpolate-size allow-keywords, calc-size, and the max-height timing trap. With copy-paste code.
Why Your Dark Gradients Have Ugly Stripes: The CSS Banding Fix
Fix CSS gradient banding on dark backgrounds: SVG feTurbulence dithering overlay, in oklch interpolation, intermediate color stops, and avoiding pure black endpoints. With copy-paste code.
Glassmorphism Not Working in Safari? The backdrop-filter Troubleshooting Guide
Fix backdrop-filter blur not working in Safari: the -webkit- prefix for Safari 17 and older, the opaque-background trap, empty backdrops, and @supports fallbacks. With copy-paste code.
Why Is My Box-Shadow Cut Off? Fixing the overflow: hidden Trap
Fix clipped box-shadows: find the ancestor with overflow hidden, add a shadow gutter, re-scope overflow to where it is needed, or use overflow-clip-margin. With copy-paste code.
'Cannot Apply Unknown Utility Class': Fixing Tailwind v4 @apply Errors
Fix Tailwind CSS v4 @apply build errors: the missing @reference in CSS modules and scoped styles, @apply on custom classes, @utility vs @layer utilities for variant support, renamed utilities, and files Tailwind never processes.
Tailwind Styles Work in Dev but Disappear in Production? The Purge Fix Guide
Fix Tailwind CSS classes missing in production: dynamic class names purged by the scanner, the lookup-map pattern, v4 @source inline() safelisting, content path gaps, and CMS-driven classes.
Tailwind v4 Dark Mode Not Working? The @custom-variant Fix Checklist
Fix Tailwind CSS v4 dark mode when dark: classes do nothing: the missing @custom-variant line, directive order, class vs data-theme selector mismatch, wrong toggle element, stale builds, and specificity traps.
Tailwind Button Hover Effects: 10 Copy-Paste Recipes
10 Tailwind button hover effects with copy-paste code: lift, gradient shift, shine sweep, outline fill, arrow slide, glow ring and more. Includes accessibility and performance notes.
OKLCH Colors in CSS: A Practical Guide
Use OKLCH colors in CSS the practical way: what lightness, chroma, and hue mean, building uniform palettes, vivid gradients with in oklch interpolation, Tailwind v4 usage, fallbacks, and copy-paste code.