Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/davis7dotsh/rivernpx agentmods add rules/davis7dotsh/river/tailwindcssWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/davis7dotsh/river/tailwindcss)<a href="https://agentmods.dev/rules/davis7dotsh/river/tailwindcss"><img src="https://agentmods.dev/badge/rules/davis7dotsh/river/tailwindcss/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/davis7dotsh/river/tailwindcss"><img src="https://agentmods.dev/badge/rules/davis7dotsh/river/tailwindcss.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01890 |
| Opus 5.5 | $0.00000 | $0.00756 |
| Sonnet 5.5 | $0.00000 | $0.00378 |
| Haiku 4.5 | $0.00000 | $0.00189 |
Grade A, and why
tailwindcss scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
4 near-identical copies found in the catalogue:
- tailwind_v4 — 92% identical, 63 lines differ
- tailwindcss-4 — 91% identical, 72 lines differ
- tailwind_v4 — 91% identical, 386 lines differ
- tailwind-css-4 — 88% identical, 77 lines differ
How it starts
The opening of the file, as written. The whole thing — 171 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tailwind CSS v4
Core Changes
-
CSS-first configuration: Configuration is now done in CSS instead of JavaScript
-
Use
@themedirective in CSS instead oftailwind.config.js -
Example:
@import 'tailwindcss'; @theme { --font-display: 'Satoshi', 'sans-serif'; --breakpoint-3xl: 1920px; --color-avocado-500: oklch(0.84 0.18 117.33); --ease-fluid: cubic-bezier(0.3, 0, 0, 1); }
-
-
Legacy
tailwind.config.jsfiles can still be imported using the@configdirective:@import 'tailwindcss'; @config "../../tailwind.config.js"; -
CSS import syntax: Use
@import "tailwindcss"instead of@tailwinddirectives- Old:
@tailwind base; @tailwind components; @tailwind utilities; - New:
@import "tailwindcss";
- Old:
-
Package changes:
- PostCSS plugin is now
@tailwindcss/postcss(nottailwindcss) - CLI is now
@tailwindcss/cli - Vite plugin is
@tailwindcss/vite - No need for
postcss-importorautoprefixeranymore
- PostCSS plugin is now
-
Native CSS cascade layers: Uses real CSS
@layerinstead of Tailwind's custom implementation
Theme Configuration
- CSS theme variables: All design tokens are available as CSS variables
- Namespace format:
--category-name(e.g.,--color-blue-500,--font-sans) - Access in CSS:
var(--color-blue-500) - Available namespaces:
--color-*: Color utilities likebg-red-500andtext-sky-300--font-*: Font family utilities likefont-sans--text-*: Font size utilities liketext-xl--font-weight-*: Font weight utilities likefont-bold--tracking-*: Letter spacing utilities liketracking-wide--leading-*: Line height utilities likeleading-tight--breakpoint-*: Responsive breakpoint variants likesm:*--container-*: Container query variants like@sm:*and size utilities likemax-w-md--spacing-*: Spacing and sizing utilities likepx-4andmax-h-16--radius-*: Border radius utilities likerounded-sm--shadow-*: Box shadow utilities likeshadow-md--inset-shadow-*: Inset box shadow utilities likeinset-shadow-xs--drop-shadow-*: Drop shadow filter utilities likedrop-shadow-md--blur-*: Blur filter utilities likeblur-md--perspective-*: Perspective utilities likeperspective-near--aspect-*: Aspect ratio utilities likeaspect-video--ease-*: Transition timing function utilities likeease-out--animate-*: Animation utilities likeanimate-spin
- Namespace format:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 171 lines · 1,890 tokens per session scan A 6c66090f4dac
tailwindcss is a cursor rule published in the GitHub repository davis7dotsh/river (228 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,890 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
cursor-shadcn-svelte
Shadcn Svelte UI specialist — use when building or redesigning SvelteKit pages/components with shadcn-svelte, Bits UI, theming, icons, or install commands.
tailwind-v4
Standards for Tailwind CSS v4 usage in Svelte files.
svelte
You are an expert in Svelte 5, SvelteKit, TypeScript, and modern web development.
testing
Shared Svelte testing guidance.
project
Open Electricity project rules.
best-practices
SvelteKit Best Practices - enforces current best practices when working with SvelteKit / Svelte 5 code.