skills/tailwind/SKILL.md
Provides Tailwind CSS v4 performance optimization and best practices guidelines. Triggers when writing, reviewing, or refactoring Tailwind CSS v4 code; when working with Tailwind configuration, @theme directive, utility classes, responsive design, dark mode, container queries, or CSS generation optimization.
npx skillsauth add shipshitdev/library tailwindInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
44 rules across 8 categories for Tailwind CSS v4, prioritized by impact to guide automated refactoring and code generation.
| Priority | Category | Impact | Prefix |
|----------|----------|--------|--------|
| 1 | Build Configuration | CRITICAL | build- |
| 2 | CSS Generation | CRITICAL | gen- |
| 3 | Bundle Optimization | HIGH | bundle- |
| 4 | Utility Patterns | HIGH | util- |
| 5 | Component Architecture | MEDIUM-HIGH | comp- |
| 6 | Theming & Design Tokens | MEDIUM | theme- |
| 7 | Responsive & Adaptive | MEDIUM | resp- |
| 8 | Animation & Transitions | LOW-MEDIUM | anim- |
build-vite-plugin - Use Vite Plugin Over PostCSSbuild-css-import - Use CSS Import Over @tailwind Directivesbuild-content-detection - Leverage Automatic Content Detectionbuild-node-version - Use Node.js 20+ for Optimal Performancebuild-postcss-simplify - Remove Redundant PostCSS Pluginsbuild-cli-package - Use Correct CLI Packagegen-css-first-config - Use CSS-First Configuration Over JavaScriptgen-avoid-theme-bloat - Avoid Excessive Theme Variablesgen-oklch-colors - Use OKLCH Color Space for Vivid Colorsgen-utility-directive - Use @utility for Custom Utilitiesgen-dynamic-utilities - Use Dynamic Utility Valuesgen-css-variable-syntax - Use Parentheses for CSS Variable Referencesbundle-remove-unused-plugins - Remove Built-in Pluginsbundle-avoid-preprocessors - Avoid Sass/Less Preprocessorsbundle-css-minification - Enable CSS Minification in Productionbundle-avoid-cdn-production - Avoid Play CDN in Productionbundle-split-critical-css - Extract Critical CSS for Initial Renderutil-renamed-utilities - Use Renamed Utility Classesutil-important-modifier - Use Trailing Important Modifierutil-variant-stacking - Use Left-to-Right Variant Stackingutil-explicit-colors - Use Explicit Border and Ring Colorsutil-opacity-modifier - Use Slash Opacity Modifierutil-gradient-via-none - Use via-none to Reset Gradient Stopscomp-avoid-apply-overuse - Avoid Overusing @applycomp-reference-directive - Use @reference for CSS Module Integrationcomp-utility-file-scope - Understand Utility File Scopecomp-smart-sorting - Leverage Smart Utility Sortingcomp-container-customize - Customize Container with @utilitycomp-custom-variant - Use @custom-variant for Custom Variant Definitionstheme-semantic-tokens - Use Semantic Design Token Namestheme-dark-mode-class - Use Class-Based Dark Mode for Controltheme-prefix-variables - Use Prefix for Variable Namespacingtheme-runtime-variables - Leverage Runtime CSS Variablestheme-color-scheme - Set color-scheme for Native Dark Modetheme-inline-static - Use @theme inline and @theme static for Variable Controlresp-mobile-first - Use Mobile-First Responsive Designresp-container-queries - Use Container Queries for Component-Level Responsivenessresp-custom-breakpoints - Define Custom Breakpoints in @themeresp-hover-capability - Pair Hover with Active for Touch-Friendly Interactionsresp-logical-properties - Use Logical Properties for RTL Supportanim-gpu-accelerated - Use GPU-Accelerated Transform Propertiesanim-starting-style - Use @starting-style for Entry Animationsanim-gradient-interpolation - Use OKLCH Gradient Interpolationanim-3d-transforms - Use Built-in 3D Transform UtilitiesRead individual reference files for detailed explanations and code examples:
| File | Description | |------|-------------| | references/_sections.md | Category definitions and ordering | | assets/templates/_template.md | Template for new rules | | metadata.json | Version and reference information |
development
TypeScript refactoring and modernization guidelines from a principal specialist perspective. This skill should be used when refactoring, reviewing, or modernizing TypeScript code to ensure type safety, compiler performance, and idiomatic patterns. Triggers on tasks involving TypeScript type architecture, narrowing, generics, error handling, or migration to modern TypeScript features.
tools
Resolves TypeScript and JavaScript problems across type-level programming, performance, monorepo management, migration, and modern tooling. Invoke when diagnosing "type instantiation excessively deep" errors, migrating JS to TS, configuring strict tsconfig, debugging module resolution, or choosing between Biome/ESLint/Turborepo/Nx.
tools
Turborepo monorepo build system guidance. Triggers on: `turbo.json`, task pipelines, `dependsOn`, caching, remote cache, the `turbo` CLI, `--filter`, `--affected`, CI optimization, environment variables, internal packages, monorepo structure, and package boundaries. Use when the user configures tasks or workflows, creates packages, sets up a monorepo, shares code between apps, runs changed packages, debugs cache behavior, or works in an `apps/` plus `packages/` workspace.
testing
Reports portable validation evidence when checking a fixture skill.