Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

tailwind

/tailwind

Podaje zasady wydajności i dobre praktyki Tailwind CSS v4 przy pisaniu i refaktoryzacji kodu: wydajność buildu, minimalny CSS, dyrektywa @theme, dark mode i container queries.

Repozytorium
dotfiles ↗
Licencja
MIT
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
44
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Podaje zasady wydajności i dobre praktyki Tailwind CSS v4 przy pisaniu i refaktoryzacji kodu: wydajność buildu, minimalny CSS, dyrektywa @theme, dark mode i container queries.

Oryginalny opis (EN)

Tailwind CSS v4 performance optimization and best practices guidelines (formerly tailwindcss-v4-style). This skill should be used when writing, reviewing, or refactoring Tailwind CSS v4 code to ensure optimal build performance, minimal CSS output, and correct usage of v4 features. Triggers on tasks involving Tailwind configuration, @theme directive, utility classes, responsive design, dark mode, container queries, or CSS generation optimization.

Jak działa

  1. When to Apply
  2. Rule Categories by Priority
  3. Quick Reference
  4. How to Use
  5. Full Compiled Document
  6. Reference Files
Sekcje z nagłówków SKILL.md, w oryginale · 115 linii, 655 słów
Podgląd SKILL.md
---
name: tailwind
description: Tailwind CSS v4 performance optimization and best practices guidelines (formerly tailwindcss-v4-style). This skill should be used when writing, reviewing, or refactoring Tailwind CSS v4 code to ensure optimal build performance, minimal CSS output, and correct usage of v4 features. Triggers on tasks involving Tailwind configuration, @theme directive, utility classes, responsive design, dark mode, container queries, or CSS generation optimization.
---

# Tailwind Labs Tailwind CSS v4 Best Practices

Comprehensive performance optimization guide for Tailwind CSS v4 applications, maintained by Tailwind Labs. Contains 42 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

## When to Apply

Reference these guidelines when:
- Configuring Tailwind CSS v4 build tooling (Vite plugin, PostCSS, CLI)
- Writing or migrating styles using v4's CSS-first approach
- Optimizing CSS bundle size and build performance
- Implementing responsive designs with breakpoints or container queries
- Setting up theming with @theme directive and design tokens

## Rule Categories by Priority

| 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-` |

## Quick Reference

### 1. Build Configuration (CRITICAL)

- [`build-vite-plugin`](references/build-vite-plugin.md) - Use Vite Plugin Over PostCSS
- [`build-css-import`](references/build-css-import.md) - Use CSS Import Over @tailwind Directives
- [`build-content-detection`](references/build-content-detection.md) - Leverage Automatic Content Detection
- [`build-node-version`](references/build-node-version.md) - Use Node.js 20+ for Optimal Performance
- [`build-postcss-simplify`](references/build-postcss-simplify.md) - Remove Redundant PostCSS Plugins
- [`build-cli-package`](references/build-cli-package.md) - Use Correct CLI Package

### 2. CSS Generation (CRITICAL)

- [`gen-css-first-config`](references/gen-css-first-config.md) - Use CSS-First Configuration Over JavaScript
- [`gen-avoid-theme-bloat`](references/gen-avoid-theme-bloat.md) - Avoid Excessive Theme Variables
- [`gen-oklch-colors`](references/gen-oklch-colors.md) - Use OKLCH Color Space for Vivid Colors
- [`gen-utility-directive`](references/gen-utility-directive.md) - Use @utility for Custom Utilities
- [`gen-dynamic-utilities`](references/gen-dynamic-utilities.md) - Use Dynamic Utility Values
- [`gen-css-variable-syntax`](references/gen-css-variable-syntax.md) - Use Parentheses for CSS Variable References

### 3. Bundle Optimization (HIGH)

- [`bundle-remove-unused-plugins`](references/bundle-remove-unused-plugins.md) - Remove Built-in Plugins
- [`bundle-avoid-preprocessors`](references/bundle-avoid-preprocessors.md) - Avoid Sass/Less Preprocessors
- [`bundle-css-minification`](references/bundle-css-minification.md) - Enable CSS Minification in Production
- [`bundle-avoid-cdn-production`](references/bundle-avoid-cdn-production.md) - Avoid Play CDN in Production
- [`bundle-split-critical-css`](references/bundle-split-critical-css.md) - Extract Critical CSS for Initial Render

### 4. Utility Patterns (HIGH)

- [`util-renamed-utilities`](references/util-renamed-utilities.md) - Use Renamed Utility Classes
- [`util-important-modifier`](references/util-important-modifier.md) - Use Trailing Important Modifier
- [`util-variant-stacking`](references/util-variant-stacking.md) - Use Left-to-Right Variant Stacking
- [`util-explicit-colors`](references/util-explicit-colors.md) - Use Explicit Border and Ring Colors
- [`util-opacity-modifier`](references/util-opacity-modifier.md) - Use Slash Opacity Modifier
- [`util-gradient-via-none`](references/util-gradient-via-none.md) - Use via-none to Reset Gradient Stops

### 5. Component Architecture (MEDIUM-HIGH)

- [`comp-avoid-apply-overuse`](references/comp-avoid-apply-overuse.md) - Avoid Overusing @apply
- [`comp-reference-directive`](references/comp-reference-directive.md) - Use @reference for CSS Module Integration
- [`comp-utility-file-scope`](references/comp-utility-file-scope.md) - Understand Utility File Scope
- [`comp-smart-sorting`](references/comp-smart-sorting.md) - Leverage Smart Utility Sorting
- [`comp-container-customize`](references/comp-container-customize.md) - Customize Container with @utility

### 6. Theming & Design Tokens (MEDIUM)

- [`theme-semantic-tokens`](references/theme-semantic-tokens.md) - Use Semantic Design Token Names
- [`theme-dark-mode-class`](references/theme-dark-mode-class.md) - Use Class-Based Dark Mode for Control
- [`theme-prefix-variables`](references/theme-prefix-variables.md) - Use Prefix for Variable Namespacing
- [`theme-runtime-variables`](references/theme-runtime-variables.md) - Leverage Runtime CSS Variables
- [`theme-color-scheme`](references/theme-color-scheme.md) - Set color-scheme for Native Dark Mode

### 7. Responsive & Adaptive (MEDIUM)

- [`resp-mobile-first`](references/resp-mobile-first.md) - Use Mobile-First Responsive Design
- [`resp-container-queries`](references/resp-container-queries.md) - Use Container Queries for Component-Level Responsiveness
- [`resp-custom-breakpoints`](references/resp-custom-breakpoints.md) - Define Custom Breakpoints in @theme
- [`resp-hover-capability`](references/resp-hover-capability.md) - Understand Hover Behavior on Touch Devices
- [`resp-logical-properties`](references/resp-logical-properties.md) - Use Logical Properties for RTL Support

### 8. Animation & Transitions (LOW-MEDIUM)

- [`anim-gpu-accelerated`](references/anim-gpu-accelerated.md) - Use GPU-Accelerated Transform Properties
- [`anim-starting-style`](references/anim-starting-style.md) - Use @starting-style for Entry Animations
- [`anim-gradient-interpolation`](references/anim-gradient-interpolation.md) - Use OKLCH Gradient Interpolation
- [`anim-3d-transforms`](references/anim-3d-transforms.md) - Use Built-in 3D Transform Utilities

## How to Use

Read individual reference files for detailed explanations and code examples:

- [Section definitions](references/_sections.md) - Category structure and impact levels
- [Rule template](files/assets/templates/_template.md) - Template for adding new rules

## Full Compiled Document

For a complete guide with all rules expanded, see [AGENTS.md](AGENTS.md).

## Reference Files

| File | Description |
|------|-------------|
| [AGENTS.md](AGENTS.md) | Complete compiled guide with all rules |
| [references/_sections.md](references/_sections.md) | Category definitions and ordering |
| [files/assets/templates/_template.md](files/assets/templates/_template.md) | Template for new rules |
| [metadata.json](metadata.json) | Version and reference information |
Pliki w paczce (44)
  • AGENTS.md 8 KB
  • SKILL.md 7 KB
  • references/anim-3d-transforms.md 2 KB
  • references/anim-gpu-accelerated.md 1 KB
  • references/anim-gradient-interpolation.md 1 KB
  • references/anim-starting-style.md 1 KB
  • references/build-cli-package.md 1 KB
  • references/build-content-detection.md 1 KB
  • references/build-css-import.md 1 KB
  • references/build-node-version.md 1 KB
  • references/build-postcss-simplify.md 1 KB
  • references/build-vite-plugin.md 1 KB
  • references/bundle-avoid-cdn-production.md 1 KB
  • references/bundle-avoid-preprocessors.md 1 KB
  • references/bundle-css-minification.md 1 KB
  • references/bundle-remove-unused-plugins.md 1 KB
  • references/bundle-split-critical-css.md 2 KB
  • references/comp-avoid-apply-overuse.md 2 KB
  • references/comp-container-customize.md 1 KB
  • references/comp-reference-directive.md 1 KB
  • references/comp-smart-sorting.md 1 KB
  • references/comp-utility-file-scope.md 1 KB
  • references/gen-avoid-theme-bloat.md 1 KB
  • references/gen-css-first-config.md 1 KB
  • references/gen-css-variable-syntax.md 1 KB
  • references/gen-dynamic-utilities.md 1 KB
  • references/gen-oklch-colors.md 1 KB
  • references/gen-utility-directive.md 1 KB
  • references/resp-container-queries.md 1 KB
  • references/resp-custom-breakpoints.md 1 KB
  • references/resp-hover-capability.md 1 KB
  • references/resp-logical-properties.md 1 KB
  • references/resp-mobile-first.md 1 KB
  • references/theme-color-scheme.md 1 KB
  • references/theme-dark-mode-class.md 1 KB
  • references/theme-prefix-variables.md 1 KB
  • references/theme-runtime-variables.md 1 KB
  • references/theme-semantic-tokens.md 1 KB
  • references/util-explicit-colors.md 1 KB
  • references/util-gradient-via-none.md 1 KB
  • references/util-important-modifier.md 1 KB
  • references/util-opacity-modifier.md 1 KB
  • references/util-renamed-utilities.md 1 KB
  • references/util-variant-stacking.md 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · zenobi-us/dotfiles100MIT
mintuz/claude-plugins100MIT
kriscard/Skills100MIT
PIXARTSeu/Synapse100AGPL-3.0
pproenca/dot-skills100MIT
MARUCIE/openclaw-foundry100MIT
contextgo/contextgo100Apache-2.0
kid-sid/codex-spellbook100MIT
alecs5am/ralphy95Apache-2.0

Migawka bazy z 13.11.2026 · wersja paczki b3075d7e485f (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100tailwind-ops
    Obejmuje wzorce Tailwind CSS: klasy narzędziowe, projekty responsywne, wzorce komponentów, migracja do v4, konfiguracja, dark mode i container queries.
  • 100tailwind-best-practices
    Podaje wzorce i konwencje Tailwind CSS: projekty responsywne, dark mode, style komponentów wielokrotnego użytku, konfiguracja i migracja z v3 do v4.
  • 100tailwindcss
    Dostarcza wzorce stylowania w Tailwind CSS v4: responsywność, dark mode i własna konfiguracja motywu.
  • 100tailwindcss
    Pilnuje dyscypliny utility-first w Tailwind CSS v4: konfiguracja CSS-first, tokeny @theme i czytelna kompozycja klas.
  • 90tailwind-v4
    Opisuje użycie Tailwind CSS v4 i różnice względem v3: klasy, bloki @theme, konfigurację CSS-first oraz porządkowanie składni z czasów v3 przy pisaniu i przeglądzie kodu.
  • 100tailwindcss
    Obsługuje Tailwind CSS v4: konfiguracja CSS-first z @theme, wtyczki Vite i PostCSS, układy responsywne, dark mode, animacje i zmiany nazw z v3 do v4.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.