Biçimlendiriciler ve Kod
Tailwind Config Oluşturucu
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: [],
};Editörün notu
Understanding · A design system, expressed as a config file.
Bu ayrıntılı bölüm şu anda yalnızca İngilizce olarak sunulmaktadır. Yukarıdaki dönüştürme aracı sizin dilinizde çalışır; uzun açıklayıcı yazı henüz çevrilmemiştir.
Sıkça sorulan sorular
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.
İnsanlar ayrıca şunları arar
İlgili araçlar
More in this room.
- JSON - React Hook Form + ZodJSON biçiminden tip tanımlı form şeması ve useForm hook'u.
- JSON - Next.js Server ActionZod ayrıştırma ve revalidatePath içeren Server Action.
- JSON - Prisma Şema ModeliBir JSON örneğinden bir Prisma model bloğu oluşturun.
- JSON - Drizzle ORM Şeması$inferSelect / $inferInsert ile Drizzle pgTable tanımı.
- JSON - TypeORM VarlığıDecorator'lar ve oluşturulmuş bir kimlik ile TypeORM @Entity class'ı.
- JSON - Mongoose Şeması + ModeliZaman damgaları ve tiplerle Mongoose Şeması + modeli.