Skip to Content
Build an appStyling (e.g. Tailwind CSS)

Styling (e.g. Tailwind CSS)

What this layer solves

Styling turns structure into something readable and on-brand: spacing, type, color, responsive layout. Without a system, every screen becomes one-off CSS spaghetti.

Options

ApproachBest forTradeoffs
Tailwind CSSFast iteration, consistent spacing scale, great with component frameworksHTML can look busy; needs learning curve
CSS ModulesScoped styles, less runtimeMore files to manage
styled-components / EmotionDynamic theming in JSRuntime cost; SSR setup
Component libraries (shadcn/ui, Radix, MUI)Accessible primitives + speedVisual sameness if you don’t customize

NK Wiki default: Tailwind + optional shadcn/ui-style components — common in modern Next.js tutorials.

Outline: Tailwind with Next

  1. Tailwind is usually added at create-next-app — confirm tailwind.config exists.
  2. Learn utility basics: spacing scale, flex/grid, responsive prefixes (md:, lg:).
  3. Pick fonts (e.g. next/font) and colors early — fewer debates later.
  4. Use a design token mindset: repeat the same radii and shadows.

When to pick an alternative

  • Plain CSS Modules if designers hand you static comps and you dislike utilities.
  • Full UI kit (MUI) if enterprise widgets matter more than bespoke look.

Last reviewed: April 2026.

Last updated on