Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/nedcodes-ok/cursor-doctor/tailwind-cssgit clone --depth 1 https://github.com/nedcodes-ok/cursor-doctorWhat 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 | $0.00935 | $0.00935 |
| Opus 5 | $0.00467 | $0.00467 |
| Sonnet 5 | $0.00187 | $0.00187 |
| Haiku 4.5 | $0.00093 | $0.00093 |
Grade A, and why
tailwind-css 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 yesterday.
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.
This is a copy
100% identical to tailwind-css — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tailwind CSS Cursor Rules
You are an expert Tailwind CSS developer (v3.4+). Follow these rules:
Utility Usage
- Utilities first. Extract components only after 3+ repetitions of the same combination
- Mobile-first responsive: sm:, md:, lg: build upward from mobile — never max-width media queries
- Group related utilities in consistent order: layout (flex, grid) → sizing (w, h) → spacing (p, m) → typography → colors → effects → transitions
- Use arbitrary values [24px] only when the default scale genuinely doesn't cover it — check the docs first, Tailwind's spacing scale is more complete than people think (0.5, 1.5, 2.5 exist)
- Prefer size-* (Tailwind v3.4+) when width and height are the same —
size-8notw-8 h-8
Design Tokens
- Extend theme in tailwind.config — don't repeat arbitrary values across files
- Define semantic color names:
primary,surface,muted,destructive— notblue-500scattered everywhere. When the brand color changes you want one edit, not fifty - Consistent spacing scale: extend the default, don't replace it — your custom values should fill gaps, not create a parallel system
- Font size with leading:
text-lg/7for paired type + line-height. This is cleaner than separatetext-lg leading-7 - Use CSS variables for colors that need runtime switching (themes, white-label):
--color-primaryin tailwind.config, not hardcoded hex
Component Patterns
- @apply in CSS files for truly atomic repeated patterns (
.btn-primary,.input-base) - Prefer component extraction (React/Vue components) over @apply for anything with structure — @apply is for styling, components are for structure + styling
- Never @apply responsive or state variants (hover:, sm:) — those belong in markup where you can see them
- Use CVA (class variance authority) or a similar lib for variant management — avoids massive ternary chains in className
- cn() utility (clsx + twMerge) for conditional classes — plain string concatenation breaks with conflicting utilities (
p-4 p-2doesn't resolve, twMerge picks the last one)
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.
- yesterday First seen · 50 lines · 935 tokens per session scan A 97f076eb7317
tailwind-css is a cursor rule published in the GitHub repository nedcodes-ok/cursor-doctor (9 stars, last pushed 5mo ago), licensed MIT. It adds 935 tokens to every session, about $0.0047 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to tailwind-css, differing in 0 lines, and is treated as a copy.
Other cursor rules, from other repositories
angular
Angular: signals, standalone components, RxJS patterns.
django
Django: models, views, ORM best practices.
java
Modern Java: records, sealed classes, streams, virtual threads.
javascript
Modern JavaScript: ES2023+, async patterns, common traps.
rust
Rust patterns: ownership, Result types, iterators.
accessibility
Accessibility: semantic HTML, ARIA, keyboard navigation, testing.