tailwind-configuration

Solid

Use when setting up or customizing Tailwind CSS configuration, theme customization, plugins, and build setup. Covers tailwind.config.js setup and content paths.

Web & Frontend 158 stars 16 forks Updated 3 weeks ago NOASSERTION

Install

View on GitHub

Quality Score: 79/100

Stars 20%
73
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Tailwind CSS - Configuration Tailwind CSS is highly customizable through its configuration file, allowing you to define your design system, extend the default theme, and configure plugins. ## Key Concepts ### Configuration File Structure The `tailwind.config.js` (or `.ts`, `.cjs`, `.mjs`) file is the heart of Tailwind customization: ```javascript /** @type {import('tailwindcss').Config} */ module.exports = { content: [ './src/**/*.{html,js,jsx,ts,tsx}', './pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}', ], theme: { extend: { // Custom theme extensions }, }, plugins: [], darkMode: 'class', // or 'media' prefix: '', important: false, separator: ':', } ``` ### Content Configuration The `content` array tells Tailwind where to look for class names: ```javascript module.exports = { content: [ './src/**/*.{html,js,jsx,ts,tsx}', './pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}', './app/**/*.{js,ts,jsx,tsx}', './public/index.html', ], // ... } ``` #### Content with Transform For dynamic class names, use safelist or content transform: ```javascript module.exports = { content: { files: ['./src/**/*.{html,js}'], transform: { md: (content) => { // Extract classes from markdown return content } } }, safelist: [ 'bg-red-500', 'bg-green-500', { pattern: /bg-(red|green|blue)-(100|200|300)/, }, ], } ``` ## ...

Details

Author
TheBushidoCollective
Repository
TheBushidoCollective/han
Created
6 months ago
Last Updated
3 weeks ago
Language
TypeScript
License
NOASSERTION

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category