All skills
paulrberg avatar

/tailwind-css

@d97e6dd
by Paul Bergpaulrberg/agent-skills94 stars
7

Use for Tailwind v4 styling: add/fix classes, configure or migrate Tailwind, use tailwind-variants, or tw-animate-css.

Use this Skill: https://skilld.dev/gh/paulrberg/agent-skills/tailwind-css

This session only. Nothing lands on disk.

referencestailwind-v4-rules.md

≈466 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Tailwind CSS v4 Rules

Read for v4 configuration, migration, source detection, or CSS directives. The installed packages, integration, browser matrix, CSS entrypoint, and local @theme declarations are authoritative.

Configuration and migration

Keep the existing Vite, PostCSS, CLI, or other documented adapter. For an explicit migration, check the browser matrix first: v4 relies on modern CSS and may require remaining on v3. Use the official upgrade tool when applicable, inspect its diff, and verify the build and rendered UI. Do not copy v3 directives, utility rename lists, or JavaScript config assumptions into v4 without checking the upgrade guide.

In v4, use @import "tailwindcss"; use @theme only for values that should create utilities or variants, and ordinary CSS variables otherwise. Preserve @reference in CSS modules or separately processed component styles when they need main-sheet theme values, custom utilities, variants, @apply, or @variant. Prefer scoped CSS or variables there; follow coding preferences for the narrow @apply case.

Source detection

Tailwind scans plain text. Map state or props to complete class strings; interpolation such as bg-${color}-600 is not discoverable. Register ignored/external paths with @source, set an unambiguous monorepo base with import source(), and use @source inline() only when no scanned static mapping can express a required utility.

Current documentation

Source: SKILL.md on GitHub

1 warningtoday5 checks · Risk SAFE
  • Gen Agent Trust Hubtoday

    This skill provides instructions for managing Tailwind CSS v4 styling, migrations, and related libraries. It involves reading project files and executing build commands. No malicious patterns were found, but the skill has a surface for indirect prompt injection from repository content.

  • Sockettoday

    No alerts

  • Snyktoday

    Risk: LOW · No issues

  • Runlayer7mo

    4/4 files flagged

  • ZeroLeaks5mo

    1 finding · Score: 86/100

Signed by skilld at d97e6dd. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 weeks ago
user-invocable
false

README badge

README badge for paulrberg/agent-skills/tailwind-css