Appearance

Visual style

Mode
Theme
Accent
Advanced
Text sizeScales the whole site
16 px
Reduce motionReduce animations or match your system
Separate light and darkChoose a theme, accent and font for each
50

Technology · Frontend

Tailwind CSS development

Tailwind CSS is a utility-first CSS framework. Its documentation describes composing designs directly in markup from single-purpose classes, generated on demand from the classes your project actually uses; version 4 moves configuration into CSS with the @theme directive.

In practice

How I use Tailwind CSS

I use Tailwind on most Next.js applications. On Ekonavi, I contributed to @ekonavi/theme, a published npm package that defines brand tokens and light/dark themes once and integrates them with Tailwind 4's @theme, so every app in the ecosystem builds its own CSS from the same design language.

Design tokens with Tailwind 4

Whether or not a project uses Tailwind, I keep design decisions (colours, surfaces, spacing) in CSS custom properties:

/* tokens */
:root { --brand: oklch(0.55 0.12 150); --surface: #fff; }
.forest-dark { --brand: oklch(0.72 0.14 150); --surface: #0b0f0c; }

/* Tailwind 4 maps tokens to utilities */
@theme inline {
  --color-brand: var(--brand);
  --color-surface: var(--surface);
}

Components use bg-surface text-brand; themes swap variables. The same approach let Ekonavi’s apps share forest and earthy themes, each with light and dark variants, from one package.

A shared theme package

The @ekonavi/theme package deliberately ships no compiled CSS. It exports tokens, theme classes and base-layer rules, and each consuming app tells Tailwind to scan the package. That avoids two common multi-app problems: duplicated utility CSS, and one app’s classes overriding another’s.

When I write plain CSS instead

On editorial sites with bespoke layouts, scroll choreography and per-section art direction (Eastern Condiments, ORVAS, Fresh Can), I usually write scoped component CSS with design tokens. For hand-built layouts, I find the cascade easier to follow than long utility strings.

Trade-offs

Where Tailwind CSS shines, and where it doesn't

Strengths

  • Fast to build consistent UIs; spacing, colour and type come from one scale.
  • Only the classes in use are generated, so CSS stays small.
  • Tokens as CSS variables make theming (light/dark, brands) a variable swap.

Limitations

  • Long class lists hurt readability in complex components without good component boundaries.
  • Editorial, art-directed layouts are often clearer in scoped CSS than in utilities.

Evidence

Projects using Tailwind CSS

All work →

Sources

Official documentation

General descriptions on this page are based on the official documentation linked below. Experience notes are my own.

FAQ

Tailwind CSS questions

Can several apps share one Tailwind design system?

Yes. The approach I've used is a shared package that ships tokens and theme definitions as CSS, not compiled utility classes. Each app runs its own Tailwind build against it, which avoids class collisions and keeps every app's CSS limited to what it uses.

Do you always use Tailwind?

No. For art-directed marketing sites I often write scoped CSS with custom properties, as on this portfolio. Utility classes shine in application UIs with many repeated patterns.

Does Tailwind CSS make a website slower?

Not by itself. Tailwind generates only the utility classes a project actually uses, so production CSS is usually small. Performance problems come from what the page loads (images, fonts, JavaScript), not from using utility classes.

Need a Tailwind CSS developer?

If your project needs Tailwind CSS, send a short description of what you're building and where it's stuck. I'll reply with how I'd approach it.