Formateadores y código
Generador de Configuración Tailwind
Build a tailwind.config.js from your design tokens.
Brand colours
Font families
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx,html}"],
theme: {
extend: {
colors: {
primary: "#d4a259",
secondary: "#3b82f6",
accent: "#10b981",
},
fontFamily: {
sans: ["Inter", "ui-sans-serif", "system-ui", "sans-serif"],
serif: ["Lora", "ui-serif", "Georgia", "serif"],
mono: ["JetBrains Mono", "ui-monospace", "SFMono-Regular", "monospace"],
},
},
},
plugins: [],
};Nota del editor
Understanding · A design system, expressed as a config file.
Este capítulo en profundidad está disponible solo en inglés por el momento. La herramienta de conversión de arriba funciona en tu idioma; el artículo explicativo extenso aún no se ha traducido.
Preguntas frecuentes
Quick answers.
›Which Tailwind versions are supported?
The generator produces syntax compatible with Tailwind CSS v3.x, including the `content` and `theme` object structures.
›Does this tool collect my design tokens?
No. The configuration object is built entirely within your browser and is not sent to any external server.
›Can I add custom colours?
Yes. You can define hex codes for your primary, secondary, and neutral palettes, which are then mapped to the `theme.extend.colors` object.
›Is a build step required?
The tool only generates the JavaScript configuration file. You will still need the Tailwind CSS CLI or a PostCSS setup to compile your final CSS.
La gente también busca
Herramientas relacionadas
More in this room.
- JSON a React Hook Form + ZodEsquema de formulario tipado y hook useForm a partir de una forma JSON.
- JSON a Next.js Server ActionServer Action con análisis Zod y revalidatePath.
- JSON a Modelo de Esquema PrismaGenera un bloque de modelo Prisma a partir de una muestra JSON.
- JSON a Esquema Drizzle ORMDefinición de pgTable Drizzle con $inferSelect / $inferInsert.
- JSON a Entidad TypeORMClase @Entity de TypeORM con decoradores y un id generado.
- JSON a Esquema + Modelo MongooseEsquema + modelo Mongoose con timestamps y tipos.