consolelog.tools

Tailwind Config Generator

Build a complete Tailwind setup visually — content globs, dark-mode strategy, prefix, important, and a full theme.extend (colors, spacing, fonts, font sizes, radius, shadows, breakpoints, container) plus the official plugins — then export it as a Tailwind v3 tailwind.config.js OR a Tailwind v4 CSS @theme block. The same theme values feed both targets; everything updates live and the whole config is captured in the URL to share.

About this ToolHow it works, benefits & use cases

Build a complete Tailwind setup visually and export it for the exact Tailwind version your project runs. Set your content / source globs, choose a dark-mode strategy (media, class, or a custom selector), add a class prefix, and toggle important - then fill out a full theme.extend: named colors with a picker, custom spacing, font families, font sizes, border radii, box shadows, and breakpoints, plus container centering and padding. Check any of the four official plugins (typography, forms, aspect-ratio, container-queries) and they are wired in automatically. The critical feature is dual output: a single target selector emits either a classic Tailwind v3 tailwind.config.js JavaScript config or a Tailwind v4 CSS @theme block - the same theme values feed both, only the wrapper differs. Start from a Minimal, Design system, or Blog preset, watch the output update live as you edit, and copy, download, or share it - the entire config is captured in the URL.

How to Use

  1. 1Pick a target: Tailwind v3 (tailwind.config.js) or Tailwind v4 (@theme CSS).
  2. 2Optionally start from a preset (Minimal, Design system, or Blog), then tweak.
  3. 3Set core options: content globs, dark-mode strategy, class prefix, and important.
  4. 4Fill theme.extend sections - colors, spacing, fonts, sizes, radius, shadows, breakpoints - and container settings.
  5. 5Toggle the official plugins you need, then copy, download, or share the live output.

Key Benefits

  • Dual export from one config: Tailwind v3 tailwind.config.js and Tailwind v4 @theme CSS
  • Visual builder for the full theme.extend, not just colors
  • Three starter presets (Minimal, Design system, Blog)
  • Dark-mode strategy picker: media, class, or a custom selector
  • Prefix, important, container, and editable content globs
  • One-click toggles for the four official Tailwind plugins
  • Live output that is fully shareable via URL and runs entirely in your browser

Common Use Cases

  • Scaffolding a tailwind.config.js for a new Tailwind v3 project
  • Migrating a theme from Tailwind v3 config to a Tailwind v4 @theme block
  • Defining brand colors, fonts, and breakpoints without hand-editing nested objects
  • Wiring up the typography or forms plugin quickly
  • Sharing a proposed Tailwind theme with a teammate via a single URL

Copy, download, share, or pipe to another tool

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    './pages/**/*.{js,ts,jsx,tsx,mdx}',
    './components/**/*.{js,ts,jsx,tsx,mdx}',
    './app/**/*.{js,ts,jsx,tsx,mdx}',
  ],
  darkMode: 'class',
  theme: {
    extend: {
      colors: {
        brand: '#6366f1',
        accent: '#f43f5e',
      },
      fontFamily: {
        sans: 'Inter, ui-sans-serif, system-ui, sans-serif',
      },
    },
  },
  plugins: [
    require('@tailwindcss/typography'),
  ],
};
Presets
Core settings

e.g. tw- → tw-flex

Content / source globs
Colors
Spacing

No spacing yet — click Add to define one.

Font family
Font size

No font size yet — click Add to define one.

Border radius

No border radius yet — click Add to define one.

Box shadow

No box shadow yet — click Add to define one.

Breakpoints

No breakpoints yet — click Add to define one.

Container
Official plugins

@tailwindcss/typography

@tailwindcss/forms

@tailwindcss/aspect-ratio

@tailwindcss/container-queries

Was this tool helpful?

Share Your Experience

Help others discover this tool!

Related guide

Related tools