Blog

Practical CSS & UI tutorials, every guide pairs with a free visual tool on uitweak.

Tailwind CSS

Tailwind CSS v4 Common Errors and Fixes

Fix the most common Tailwind CSS v4 errors: bg-opacity not working, bg-gradient-to renamed, @apply failures, @theme tokens ignored, class-based dark mode broken, and wrong framework integration, with copy-paste fixes.

October 2, 202610 min read
CSS

box-shadow vs drop-shadow: When to Use Each

box-shadow vs drop-shadow explained: how each one renders, when to use box-shadow for cards and buttons, when drop-shadow wins for transparent images and text, performance notes, and copy-paste code.

October 2, 20268 min read
CSS

Animate Entry and Exit with @starting-style: No JavaScript Needed

Animate element entry and exit in pure CSS with @starting-style, transition-behavior: allow-discrete, and overlay: dialogs, popovers, and menus with smooth open and close animations, plus fallbacks and copy-paste code.

October 1, 20269 min read
TypeScript

JSON to Zod Schema: From API Response to Runtime Validation

Convert JSON to Zod schemas the practical way: paste an API response, generate runtime validation with proper types, format detection, optional fields, safeParse, and z.infer, with copy-paste code.

October 1, 20269 min read
Tailwind CSS

Responsive Bento Grids in Tailwind: The Complete Guide

Build Apple-style bento grids in Tailwind CSS: responsive tile layouts with col-span and row-span, auto-rows, grid-flow-dense, dark mode, plus copy-paste code for dashboards and feature sections.

October 1, 202612 min read
Tailwind CSS

Tailwind CSS v4 @theme: The Complete Guide

Master Tailwind CSS v4 theming with @theme: define design tokens in CSS, create custom colors, fonts, animations and dark mode variants, with a v3 to v4 migration map and copy-paste code.

October 1, 202613 min read
CSS

Animated Gradients with CSS @property: No JavaScript Needed

Animate CSS gradients without JavaScript: register custom properties with @property, rotate conic gradients, shift hues smoothly, with fallbacks and reduced-motion guards, plus copy-paste code.

September 30, 202611 min read
CSS

Mesh Gradient CSS: Build Stripe-Style Backgrounds Without Images

Build Stripe-style mesh gradient backgrounds with pure CSS: the stacked radial-gradient recipe, OKLCH color blending, CSS vs SVG export tradeoffs, and subtle animation, with copy-paste code.

September 30, 202610 min read
CSS

Smooth Layered Box Shadows in CSS: The 3-Layer Technique

Make box shadows look realistic with layered shadows: why single shadows look fake, the 3-layer recipe, soft UI shadows, and Tailwind techniques, with copy-paste code.

September 29, 202611 min read
CSS

CSS Scroll Animations Without JavaScript: The animation-timeline Guide

Animate on scroll with pure CSS: animation-timeline scroll() and view(), animation-range, reading progress bars, scroll reveals, and fallbacks, with copy-paste code.

September 29, 202610 min read
CSS

Liquid Glass CSS: Recreate Apple's iOS 26 Glass Effect on the Web

Build Apple's Liquid Glass effect with pure CSS: backdrop-filter recipes, SVG refraction for Chromium, Safari fallbacks, plus Liquid Glass vs glassmorphism compared.

September 28, 202610 min read
CSS

How to Create Glassmorphism Effects in CSS (2026 Guide)

The exact CSS recipe for glassmorphism: backdrop-filter, translucent backgrounds, borders, Safari fixes, and Tailwind CSS techniques, with copy-paste examples.

September 28, 20269 min read