405 guides · updated daily

The Empire UI blog

Practical guides on UI styles and effects - every article ships free, working React & Tailwind code.

AllUI StylesComponentsReactTailwindAnimationToolsComparisonsDesign SystemsAdvanced
#react#css#tailwind#animation#glassmorphism#next.js#design#performance#accessibility#dark mode#css variables#framer motion#neumorphism#responsive#dashboard#saas#ecommerce#landing page#button#card#form#navigation#typography#gradient#patterns
405 articles · showing 193-240
Developer writing code on laptop with colorful UI components on screen
2026-07-17 · 8 min read
Tailwind group and peer Modifiers: Interactive State Patterns
Master Tailwind's group and peer modifiers to build interactive UI state patterns - hover effects, form validation states, and component-level reactivity without a line of JS.
tailwindgroup
Read →
Code editor displaying CSS selector syntax on dark background
2026-07-17 · 8 min read
Tailwind :has() Selector: Parent Styling Without JavaScript
Learn how Tailwind v4's :has() support lets you style parent elements based on their children - no JavaScript, no state, just pure CSS selectors.
tailwind:has()
Read →
Developer writing Tailwind CSS code with bracket syntax on dark monitor
2026-07-17 · 8 min read
Tailwind Arbitrary Values: When [brackets] Save the Day
Tailwind's arbitrary value syntax lets you write any CSS value inline without leaving utility-class land. Here's when to use it, when to avoid it, and how.
tailwindarbitrary values
Read →
Developer writing React component code on a laptop screen
2026-07-16 · 8 min read
Render Props in React 2026: Dead Pattern or Still Useful?
Render props aren't dead - but they're not your first choice anymore either. Here's when the pattern still earns its keep in 2026 React codebases.
render propsreact
Read →
developer writing React code on dark monitor with purple glow
2026-07-16 · 8 min read
Optimistic Updates in React: useOptimistic and the Pattern That Works
Learn how to implement optimistic updates in React using useOptimistic, manual rollback patterns, and mutation strategies that actually hold up in production.
optimistic updatesreact
Read →
Developer writing React component code on a dark theme editor
2026-07-16 · 8 min read
React Compound Components Pattern: Flexible APIs Without Prop Hell
Stop drowning in prop hell. Learn the compound components pattern in React - build flexible, composable APIs that your teammates will actually want to use.
compound componentsreact
Read →
Developer coding a React accessibility component on a laptop screen
2026-07-16 · 8 min read
React Aria Components: Headless UI Done Right by Adobe
React Aria Components from Adobe gives you fully accessible, headless UI primitives for React - here's how to actually use them and when to pick them over alternatives.
react ariaheadless ui
Read →
Color swatches arranged in gradient showing perceptually uniform color steps
2026-07-16 · 8 min read
Tailwind CSS OKLCH Colors: Perceptually Uniform Palettes in v4
Tailwind v4 ships OKLCH colors by default - here's how perceptually uniform palettes work, why they matter, and how to build your own custom scale.
tailwindoklch
Read →
Developer writing Next.js code on a dark theme code editor
2026-07-16 · 8 min read
Next.js App Router vs Pages Router in 2026: Which Should You Use?
App Router or Pages Router? In 2026, the answer isn't obvious. Here's an honest, opinionated breakdown to help you pick the right Next.js architecture.
next.jsapp router
Read →
code editor showing React component code on a dark screen
2026-07-16 · 9 min read
Storybook 8 with React: Setup, Stories and Visual Testing
Set up Storybook 8 with React from scratch, write Component Story Format 3 stories, and run visual regression tests - a practical guide for component library authors.
storybookreact
Read →
Code editor showing React component tree with portal overlay on dark background
2026-07-15 · 8 min read
React Portals: Modals, Tooltips and Dropdowns That Break Out of DOM
React portals let modals, tooltips and dropdowns escape overflow:hidden and z-index traps. Here's how to build them correctly without the usual gotchas.
react portalsmodal
Read →
developer looking at code on monitor with error output visible
2026-07-15 · 8 min read
React Error Boundaries: Catching Crashes Without Losing Your Mind
React error boundaries stop one bad component from taking down your whole app. Here's how to write them, place them, and build fallback UIs that don't embarrass you.
error boundaryreact
Read →
developer writing code on laptop with multiple test files open
2026-07-15 · 8 min read
React Testing in 2026: Vitest, Testing Library and What to Actually Test
Vitest has overtaken Jest in the React ecosystem. Here's what changed, why Testing Library still dominates, and which tests actually matter in 2026.
react testingvitest
Read →
Developer examining React component code on a laptop screen
2026-07-15 · 9 min read
React.memo, useMemo and useCallback: The Honest Guide to When You Need Them
Stop spraying React.memo everywhere. Here's when useMemo, useCallback, and memo actually help - and when they silently make things slower.
react memouseMemo
Read →
Dark code editor showing Next.js loading state component code
2026-07-15 · 8 min read
Next.js loading.tsx: Streaming, Suspense and Skeleton Loading States
Master Next.js 14+ loading.tsx, React Suspense, and skeleton UI patterns. Stream data, avoid layout shift, and build loading states users won't hate.
next.jsloading ui
Read →
developer writing Next.js middleware code on a laptop at a desk
2026-07-15 · 8 min read
Next.js Middleware: Auth, Redirects, A/B Testing - The Real Use Cases
Next.js Middleware runs at the edge before your page loads. Here's how to actually use it for auth, redirects, and A/B testing - with real code examples.
next.js middlewareauth
Read →
Code editor screen showing JavaScript React code with colorful syntax highlighting
2026-07-15 · 8 min read
React Concurrent Rendering: useTransition, useDeferredValue Explained
Learn how React's useTransition and useDeferredValue hooks fix janky UIs by letting you control rendering priority - with real code examples you can ship today.
concurrentreact
Read →
developer looking at server performance graphs on multiple monitors
2026-07-14 · 8 min read
Next.js Caching in 2026: fetch, ISR, Dynamic and No-Store Explained
Next.js caching is confusing - fetch defaults, ISR revalidation, dynamic rendering, and no-store all interact. Here's exactly how each layer works in 2026.
next.jscaching
Read →
developer coding React animation on a dark monitor screen
2026-07-14 · 8 min read
react-spring: Physics-Based Animations Without the Complexity
react-spring gives you spring physics animations in React without the math. Here's how to use useSpring, useTrail, and useTransition to build buttery UI motion.
react-springanimation
Read →
Developer coding React state management on a laptop screen at night
2026-07-14 · 8 min read
Zustand in React: Simple State Management That Gets Out of Your Way
Zustand is the React state management library that's actually fun to use. No boilerplate, no providers - just a hook and a store. Here's everything you need.
zustandreact
Read →
Abstract code navigation arrows on a dark terminal screen background
2026-07-14 · 9 min read
React Router v7: What Changed, What Broke and What to Migrate
React Router v7 ships framework-mode routing, flattened loaders, and dropped legacy APIs. Here's what actually broke and how to migrate without losing your mind.
react router v7routing
Read →
Developer writing React code on a laptop screen in dark mode
2026-07-14 · 8 min read
TanStack Query v5 in React: Data Fetching That Actually Scales
TanStack Query v5 changes how React apps handle server state. Here's a practical guide to queries, mutations, caching, and patterns that hold up in production.
tanstack queryreact query
Read →
Developer writing Next.js server-side code on a dark-themed monitor
2026-07-14 · 8 min read
Next.js Server Actions in 2026: Forms, Mutations and the Right Patterns
Server Actions matured fast. Here's how forms, mutations, and optimistic updates actually work in Next.js 15+ - with patterns that don't fall apart under real traffic.
server actionsnext.js
Read →
frosted glass notification card floating over purple gradient background
2026-07-13 · 8 min read
Glassmorphism Toast / Notification in React: Frosted Alert Design
Build frosted-glass toast notifications in React with backdrop-filter blur, Tailwind, and smooth animations. Includes copy-paste components and accessibility tips.
glassmorphismtoast
Read →
Code editor showing React hooks and data fetching patterns on screen
2026-07-13 · 8 min read
React use() Hook: Data Fetching in Server and Client Components
React's use() hook lands in React 19 and changes how you fetch data in both server and client components. Here's what it does, where it helps, and where it doesn't.
react usehook
Read →
Code on a monitor screen showing JavaScript React component syntax
2026-07-13 · 8 min read
React 19 Compiler: What It Does, What It Fixes and What to Expect
React 19's compiler auto-memoizes your components so you don't have to. Here's what it actually changes, what it still can't fix, and how to adopt it without pain.
react 19react compiler
Read →
Developer writing Next.js code on a laptop with dark theme editor
2026-07-13 · 8 min read
Next.js Metadata API: The Right Way to Handle SEO in App Router
Stop hacking document.head - Next.js 13+ Metadata API handles Open Graph, Twitter Cards, and canonical URLs the right way. Here's the full breakdown.
next.jsmetadata
Read →
Dark frosted glass navigation bar floating over a deep gradient background
2026-07-13 · 8 min read
Dark Glassmorphism Navbar: Sticky Frosted Header on Dark Backgrounds
Build a sticky dark glassmorphism navbar in React and Tailwind - frosted blur, scroll-aware opacity, and WCAG contrast that actually holds up on dark backgrounds.
glassmorphismnavbar
Read →
Developer writing React code on a laptop with dark theme editor open
2026-07-13 · 8 min read
React Suspense in 2026: Boundaries, Streaming and What Still Breaks
React Suspense has matured a lot by 2026, but streaming SSR and nested boundaries still bite developers. Here's what actually works and what doesn't.
react suspensestreaming
Read →
developer reviewing image optimisation code on a laptop screen
2026-07-13 · 9 min read
Next.js Image Optimisation: next/image Deep Dive - Every Prop Explained
Every prop in next/image explained with real code - from lazy loading and LCP priority to blur placeholders, remote patterns, and responsive sizes.
next.jsimage
Read →
abstract blurred colorful gradient background with frosted glass overlay panel
2026-07-12 · 8 min read
Background Blur in CSS: backdrop-filter, blur() and When Each Makes Sense
backdrop-filter and filter: blur() do different things. Learn which CSS blur technique to reach for, when performance matters, and how to build glass effects right.
backdrop-filterblur
Read →
Colorful gradient card design on a dark background with vibrant hues
2026-07-12 · 8 min read
Gradient Card Design in React: Mesh, Conic and Radial Approaches
Build stunning gradient cards in React using mesh, conic, and radial CSS techniques. Practical code, zero dependencies, and real performance trade-offs explained.
gradientcard
Read →
floating 3D card with geometric depth and light reflection on dark background
2026-07-12 · 8 min read
3D Card Effect in React: perspective, rotateX/Y and Mouse Tracking
Build a real 3D tilt card in React using CSS perspective, rotateX/Y transforms and live mouse tracking - no library required, just 60 lines of code.
3d cardcss
Read →
Soft white neumorphic toggle switch UI component on gray background
2026-07-12 · 8 min read
Neumorphism Toggle Switch in CSS and React: Soft UI Done Properly
Build a neumorphism toggle switch with pure CSS and React - the soft UI effect that's trickier than it looks, done right without the common accessibility pitfalls.
neumorphismtoggle
Read →
Colorful puffy 3D clay-style buttons rendered on a soft pastel background
2026-07-12 · 8 min read
Claymorphism Button in React: Puffy 3D Buttons with CSS box-shadow
Build puffy 3D claymorphism buttons in React using layered CSS box-shadow. Code examples, variants, hover animations, and Tailwind shortcuts included.
claymorphismbutton
Read →
frosted glass data table interface with translucent rows and gradient background
2026-07-12 · 8 min read
Glassmorphism Table: Frosted Data Table in React + Tailwind
Build a frosted-glass data table in React and Tailwind CSS - backdrop-filter, translucent rows, sticky headers, and full accessibility in under 100 lines.
glassmorphismtable
Read →
Abstract colorful gradient texture with grainy noise overlay on dark background
2026-07-12 · 8 min read
Noise + Gradient in CSS: The Texture Combo Designers Love in 2026
Noise textures layered over CSS gradients are everywhere in 2026 UI design. Here's exactly how to build the combo - with working code and no extra dependencies.
noisegradient
Read →
frosted glass modal dialog floating over colorful gradient background
2026-07-11 · 8 min read
Glassmorphism Modal / Dialog: Frosted Overlay That Feels Premium
Build a glassmorphism modal in React that actually looks premium - frosted backdrop, keyboard trap, and animation included. CSS + Tailwind code inside.
glassmorphismmodal
Read →
Glowing neon pink and purple text effect on dark background
2026-07-11 · 8 min read
Neon Text Effect in React: Animated Glow with CSS and Framer Motion
Build a pulsing neon text effect in React using CSS text-shadow and Framer Motion. Covers flicker, color shifts, and reusable component patterns with real code.
neon textreact
Read →
glowing radial light highlight moving across a dark card surface
2026-07-11 · 8 min read
Spotlight Card in React: Cursor-Tracking Radial Highlight Effect
Build a cursor-tracking spotlight card in React using mousemove events and CSS radial gradients - no canvas, no library, just clean component code.
spotlightcard
Read →
Colorful gradient purple and blue abstract light texture background
2026-07-11 · 8 min read
Gradient Button in React + Tailwind: Hover, Focus and Active States
Build a gradient button in React and Tailwind with correct hover, focus ring, and active state - plus the animation tricks most tutorials skip entirely.
gradientbutton
Read →
Vivid neon purple and cyan glow light effects on dark background
2026-07-11 · 8 min read
Neon Glow Effect in CSS: text-shadow, box-shadow and filter Stacks
Master neon glow effects in CSS using layered text-shadow, box-shadow, and filter stacks. Build sign-inspired UI that actually performs well in the browser.
neon glowcss
Read →
Green and purple aurora borealis lighting the night sky above mountains
2026-07-11 · 8 min read
Aurora Background Animation in CSS: Three Techniques Compared
Compare three CSS aurora background animation techniques - pure CSS keyframes, canvas, and React hooks - with real code and honest performance tradeoffs.
aurorabackground
Read →
Frosted glass sidebar navigation panel on a gradient background
2026-07-11 · 8 min read
Glassmorphism Sidebar Navigation in React: Frosted Side Panel
Build a frosted-glass sidebar navigation in React with Tailwind CSS. Full code, backdrop-filter tricks, active states, and mobile collapse - no UI kit needed.
glassmorphismsidebar
Read →
Northern lights aurora gradient glowing over dark sky
2026-07-10 · 8 min read
Aurora Card Component in React: Shifting Gradient Glass Effect
Build a React aurora card with animated shifting gradients and glass blur - complete code, Tailwind config, and performance tips for 2026 browsers.
auroracard
Read →
Y2K style translucent panel with chrome gradient and star field background
2026-07-10 · 8 min read
Y2K Card Aesthetic in React: Chrome, Stars and Translucent Panels
Build Y2K-style React cards with chrome borders, star fields, and translucent panels. Complete CSS and component code for the retro 2000s aesthetic.
y2kcard
Read →
colorful gradient stripes on a dark background showing CSS border effects
2026-07-10 · 8 min read
Gradient Border in CSS: border-image, pseudo-elements and conic-gradient
Three battle-tested CSS techniques for gradient borders - border-image, ::before pseudo-elements, and conic-gradient - with code you can copy today.
gradient bordercss
Read →
neon pink and purple vaporwave card design with retro grid lines on dark background
2026-07-10 · 8 min read
Vaporwave Card in CSS: Neon Gradients, Grid Lines and Sunset Palettes
Build a vaporwave card in pure CSS - neon gradients, retro grid lines, sunset palettes. Step-by-step with code examples and Empire UI component tips.
vaporwavecard
Read →
Free components in 41 visual styles
React & Tailwind, copy-paste ready. Glassmorphism, neobrutalism, Y2K and more.
Browse components →