Tailwind CSS Config Generator
Generate a Tailwind CSS configuration file from your design tokens.
colors
Color Preview
primary
secondary
accent
success
warning
error
tailwind.config.ts
import type { Config } from 'tailwindcss'
const config: Config = {
content: [
'./src/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
colors: {
'primary': '#3b82f6',
'secondary': '#6366f1',
'accent': '#8b5cf6',
'success': '#22c55e',
'warning': '#f59e0b',
'error': '#ef4444'
},
spacing: {
'xs': '0.25rem',
'sm': '0.5rem',
'md': '1rem',
'lg': '1.5rem',
'xl': '2rem',
'2xl': '3rem'
},
fontSize: {
'xs': '0.75rem',
'sm': '0.875rem',
'base': '1rem',
'lg': '1.125rem',
'xl': '1.25rem',
'2xl': '1.5rem',
'3xl': '1.875rem',
'4xl': '2.25rem'
},
fontFamily: {
'sans': 'Inter, system-ui, sans-serif',
'serif': 'Georgia, serif',
'mono': 'JetBrains Mono, monospace'
},
borderRadius: {
'none': '0',
'sm': '0.125rem',
'md': '0.375rem',
'lg': '0.5rem',
'xl': '0.75rem',
'2xl': '1rem',
'full': '9999px'
},
boxShadow: {
'sm': '0 1px 2px 0 rgb(0 0 0 / 0.05)',
'md': '0 4px 6px -1px rgb(0 0 0 / 0.1)',
'lg': '0 10px 15px -3px rgb(0 0 0 / 0.1)',
'xl': '0 20px 25px -5px rgb(0 0 0 / 0.1)'
},
},
},
plugins: [],
}
export default configDesign Tokens
Define your design system with colors, spacing, typography, and more. Export to a ready-to-use Tailwind config.
TypeScript Support
Generate TypeScript or JavaScript configurations with proper type annotations for better IDE support.
Customizable
Add, edit, or remove tokens as needed. The generated config extends Tailwind's defaults.