Tailwind 4
Tailwind CSS 4 styling rules covering CSS-first config, theme tokens, and the cn() helper for class composition.
- CCM score
- 62 of 100
- skills.sh installs
- 618
- GitHub stars
- 15.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers CSS-first setup in
ui/styles/globals.csswith@theme,@utility,@custom-variant, and@plugin, with notailwind.configfile - Enforces theme token utilities over
var()or hex values inside className, reservingstyleprops and CSS variable constants for library props - Guides use of
cn()fromui/lib/utils.tsfor conditional and conflicting classes, and skips it for static class strings - Designed for Prowler UI and other Tailwind 4 projects that need dynamic styling, dark mode, and chart library color constants
Install
$ npx -y skills add prowler-cloud/prowler --skill tailwind-4 -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Tailwind 4 Setup (CSS-first, no tailwind.config)
- Config lives in CSS:
ui/styles/globals.cssstarts with@import "tailwindcss";plus@plugin,@source,@custom-variant,@theme,@utility. - PostCSS plugin is
@tailwindcss/postcss(ui/postcss.config.js). There is notailwind.config.*; do not create one. - Design tokens are declared in
@theme(--color-bg-neutral-primary: ...) and become utilities (bg-bg-neutral-primary,text-text-neutral-secondary,border-border-neutral-secondary). - Dark mode is class-based:
@custom-variant dark (&:where(.dark, .dark *));(toggled bynext-themes). - New utilities use
@utility name { ... }, not@layer utilities+@applyhacks.
Prowler UI: use the semantic token utilities above. Raw palette classes (bg-slate-800, bg-blue-500) appear below only as generic Tailwind examples; in ui/ they are not allowed (see prowler-ui Design System Discipline).
Styling Decision Tree
Details
- Repository
- github.com/prowler-cloud/prowler
- Category
- Frontend & UI Code
- First seen
- Jun 3, 2026
More from prowler-cloud/prowler
All 6Similar to Tailwind 4
More Frontend & UI Codetailwind-patternsvudovn/ag-kit216 installsTailwind CSS v4 guidance for CSS-first theming, container queries, and design token architecture.
tailwind-csspaulrberg/agent-skills3.1K installsTailwind v4 styling guidance that adds, fixes, configures, or migrates classes while respecting local conventions.
tailwindcssmindrally/skills1.6K installsExpert TailwindCSS guidance for utility-first styling, mobile-first responsive layouts, and dark mode without @apply.
tailwind-best-practicesasyrafhussin/agent-skills1.1K installsTailwind CSS patterns for responsive, dark-mode, and v3-to-v4 work, with version detection first.
tailwind-css-patternsgiuseppe-trisciuoglio/developer-kit18.5K installsModern Tailwind CSS v4.1 patterns for responsive layouts, components, dark mode, and accessibility.