Formatowanie i Kodowanie
Generator Konfiguracji 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: [],
};Notka redakcyjna
Understanding · A design system, expressed as a config file.
Ten szczegółowy rozdział jest obecnie dostępny tylko w języku angielskim. Narzędzie konwersji powyżej działa w Twoim języku; długi artykuł objaśniający nie został jeszcze przetłumaczony.
Często zadawane pytania
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.
Ludzie wyszukują również
Powiązane narzędzia
More in this room.
- JSON do React Hook Form + ZodTypowany schemat formularza i hook useForm z kształtu JSON.
- JSON do akcji serwera Next.jsAkcja serwera z parsowaniem Zod i revalidatePath.
- JSON do modelu schematu PrismaGeneruj blok modelu Prisma z próbki JSON.
- JSON do schematu Drizzle ORMDefinicja Drizzle pgTable z $inferSelect / $inferInsert.
- JSON do encji TypeORMKlasa TypeORM @Entity z dekoratorami i wygenerowanym ID.
- JSON do schematu Mongoose + modeluSchemat Mongoose + model z sygnaturami czasowymi i typami.