Skip to content
WingoUI
ComponentsTemplatesDocsPricingAI agentsBlogChangelogContact
  1. Home
  2. Blog
  3. Next.js and Tailwind CSS
Blog

Next.js and Tailwind CSS guides for component authors

Next.js, React and Tailwind CSS keep changing under every component library. React 19 made ref a regular prop. Tailwind CSS v4 moved configuration into CSS with theme variables. The App Router changed how server and client components split work, and with it how hydration mismatches happen. This category explains those changes from the point of view of someone who writes and maintains UI code.
FeaturedNext.js and Tailwind CSS

Tailwind v4 Design Tokens: Colors, Dark Mode and Contrast

Tailwind v4 design tokens from a production React library: @theme inline, semantic surfaces, status colors, dark mode and a contrast check you can run in CI.

SR
Serban Rusu
Oct 9, 2026 · 20 min read

All posts

/Slash
Next.js and Tailwind CSS

shadcn Tailwind v4 Migration: Step by Step From v3

A shadcn tailwind v4 migration in order: the upgrade codemod, tailwind.config into @theme inline, hsl to oklch, border and ring fixes, and tw-animate-css.

SRSerban Rusu·Nov 6, 2026·10 min read
Next.js and Tailwind CSS

Tailwind v4 Nextjs 16 Setup: Config, Fonts and 5 Fixes

Set up a Tailwind v4 Nextjs 16 app: PostCSS plugin or the new Turbopack loader, @theme tokens in CSS, next/font variables and fixes for five errors.

SRSerban Rusu·Nov 6, 2026·9 min read
Next.js and Tailwind CSS

Nextjs Cookie Consent: GDPR Banner and Consent Mode v2

Build nextjs cookie consent that holds up under GDPR: equal Accept and Reject buttons, per-category switches, Consent Mode v2 and embeds that wait for consent.

SRSerban Rusu·Oct 16, 2026·12 min read
Next.js and Tailwind CSS

Nextjs JSON LD: Typed Schema That Matches the Page

Nextjs JSON LD for the App Router: a safe script component, typed schema-dts builders and a CI check that fails when the markup drifts from the page.

SRSerban Rusu·Oct 16, 2026·10 min read
Next.js and Tailwind CSS

React Controllable State Hook: Code and 3 Pitfalls

Build a React controllable state hook so one component takes value or defaultValue. Full TypeScript code, three real pitfalls, and how the Radix hook differs.

SRSerban Rusu·Oct 16, 2026·10 min read
Next.js and Tailwind CSS

next-themes Hydration Error: Fix the Flash in Next.js

Fix the next-themes hydration error and the theme flash in the Next.js App Router, then render a theme toggle that is already correct on the first paint.

SRSerban Rusu·Oct 13, 2026·8 min read
Next.js and Tailwind CSS

Next.js Component Library Setup for the App Router

Next.js component library setup for the App Router, tested on Next.js 16.4: use client boundaries, tokens in globals.css, dark mode without a flash, updates.

SRSerban Rusu·Oct 13, 2026·8 min read
Next.js and Tailwind CSS

Prefers Reduced Motion React: Calm Motion, No Mismatch

Prefers reduced motion React guide: respect the OS setting in Next.js without a hydration mismatch, and replace springs with short fades that keep feedback.

SRSerban Rusu·Oct 13, 2026·8 min read
Next.js and Tailwind CSS

shadcn Vite Setup with Tailwind CSS v4 and React 19

shadcn Vite setup tested on Vite 8 and TypeScript 6: the Tailwind v4 plugin, the @ alias in tsconfig.app.json, dark mode without Next.js, then add components.

SRSerban Rusu·Oct 13, 2026·7 min read
Next.js and Tailwind CSS

Tailwind v4 Dark Mode: Class Toggle, Tokens, next-themes

Tailwind v4 dark mode with a class: the @custom-variant line, next-themes wiring, why dark: ignores your toggle, and tokens that keep both themes designed.

SRSerban Rusu·Oct 13, 2026·9 min read
Next.js and Tailwind CSS

React 19 forwardRef Migration: ref as a Prop in TypeScript

React 19 forwardRef migration in TypeScript: take ref as a regular prop, type it with ComponentProps, merge refs with cleanups and keep asChild working.

SRSerban Rusu·Oct 9, 2026·9 min read
Next.js and Tailwind CSS

React Use Mobile Hook: SSR-Safe, No Hydration Mismatch

Why a React use mobile hook is false on the server, when CSS breakpoints beat it, and an SSR-safe useSyncExternalStore version with no hydration mismatch.

SRSerban Rusu·Oct 9, 2026·9 min read

About Next.js and Tailwind CSS

The posts cover design tokens in Tailwind v4, dark mode that is designed instead of inverted, color contrast checks, media query hooks that are safe during server rendering, motion that respects reduced motion settings, and the TypeScript patterns that keep component props strict and easy to read. Each guide comes from problems we solved while building Wingo UI on Next.js 16, React 19 and Tailwind CSS v4, so the examples are tested in a real codebase.

If you maintain a design system, migrate an older shadcn/ui setup or simply want your components to survive the next framework upgrade, start here.

More topics

  • Mobile UI in React

    How to build React interfaces that feel native on phones: bottom sheets, touch targets, safe areas and tables that turn into cards.

    25 posts

  • Building UI with AI agents

    Practical guides for building React UI with Claude Code, Cursor and Codex: MCP servers, rules files, llms.txt and component registries.

    20 posts

  • Component guides

    Deep guides to single React components: when to use each one, the props that matter, accessibility, mobile behavior and common pitfalls.

    70 posts

  • Comparisons and alternatives

    Honest, dated comparisons of React component libraries and tools, with sources, prices and a clear pick for each use case.

    18 posts

  • Build it: screens and apps

    Step by step tutorials that build real React screens and apps, from sign in and settings to admin dashboards, with every screen working on phones.

    38 posts

Newsletter

Get new posts by email

New posts, product news and occasional offers from Wingo UI. We count clicks to keep it relevant.

No spam. Unsubscribe at any time.

WingoUI

Animated, configurable, mobile-first React components and blocks. Copy the source, make it yours, and let your coding agent build with it.

Product

  • Components
  • Templates
  • Pricing
  • AI agents
  • For teams
  • Theme generator

Resources

  • Docs
  • Contact
  • Programs
  • Blog
  • Changelog
  • Changelog RSS
  • llms.txt

Compare

  • Wingo UI vs paid kits
  • Wingo UI vs shadcn/ui
  • shadcn/ui alternatives
  • MUI alternatives
  • Tailwind Plus alternatives
  • Magic UI alternatives
  • Free components

Legal

  • Terms
  • Privacy
  • Refunds
  • License
  • Imprint

Component categories

  • Buttons & Actions
  • Inputs
  • Forms
  • Navigation
  • Overlays
  • Feedback
  • Data Display
  • Tables & Lists
  • Charts & Stats
  • Layout
  • Media
  • AI Kit
  • Text & Effects
  • Mobile
  • Commerce
  • Marketing Sections
  • Blocks
  • Hooks & Utilities

© 2026 Wingo UI

Wingo UI