tailwind

tailwind is a cursor rule for Cursor from louisbrulenaudet/monorepo-template. It costs 0 tokens per session (1,863 once invoked), scanned A, original, Apache-2.0.

Project rules for using Tailwind CSS version 4, a CSS framework for styling web interfaces.

In plain words
What is it for?
Use it when adding or changing React interface styles, Tailwind classes, dark-mode colors, or Vite and CSS setup.
Why use it?
It prevents incorrect configuration and inconsistent styling by documenting how this project detects classes, defines design tokens, and builds CSS.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions AGENTS.md.

Good fit Use it when adding or changing React interface styles, Tailwind classes, dark-mode colors, or Vite and CSS setup.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/louisbrulenaudet/monorepo-template/tailwind
Install

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.

Clone the repo
git clone --depth 1 https://github.com/louisbrulenaudet/monorepo-template

Made for: Cursor.

Wrote 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.

agentmods badge for tailwind

README.md
[![agentmods](https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/tailwind/github.svg)](https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/tailwind)
Your own site
<a href="https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/tailwind"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/tailwind/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.

agentmods 80×15 button for tailwind

Your own site · 80×15
<a href="https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/tailwind"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/tailwind.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,863 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01863
Opus 5.5 $0.00000 $0.00745
Sonnet 5.5 $0.00000 $0.00373
Haiku 4.5 $0.00000 $0.00186

Measured 15d ago against content hash 2dcd37eb466e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tailwind 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 15d 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.

.cursor/rules/frontend/tailwind.mdc · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Tailwind CSS v4

CSS-first v4: there is no tailwind.config.js / postcss.config.js. Motion and interaction depth: skill ui-ux-design-best-practices. Lint configuration: lint-config.mdc.

Engine and source detection

  • Single entry @import "tailwindcss" source(none); in src/index.css (canonical: apps/front-app/src/index.css), built by @tailwindcss/vite with Lightning CSS built in - no Autoprefixer/PostCSS step. Plugin order: vite-config.mdc.
  • source(none) turns off v4's automatic detection, which starts from the build's working directory and would also scan tests/, README.md, and AGENTS.md (prose there can emit stray utilities). @source "../index.html" + @source "./**/*.{ts,tsx}" are then the complete allowlist, so detection stays cwd-independent.
  • Register a workspace package only when it ships Tailwind classes this app renders, pointing at its real source (@source "../../../packages/<pkg>/src";), not the node_modules symlink. @repo/dtos-common / @repo/enums-common are class-free: never add them.
  • @source not "<path>"; excludes a large non-Tailwind directory. @source inline("...") safelists classes that never appear as literals - a last resort; prefer static strings.

Tokens: @theme vs :root

  • @theme only for a value that must generate a utility or variant, i.e. one in a Tailwind namespace (--color-*, --spacing-*, --font-*, --radius-*, --shadow-*, --ease-*, --animate-*, --breakpoint-*). @theme is top-level only (no nesting under selectors or media). Every other custom property stays in plain :root (e.g. --health-glow-color).
  • @keyframes for an --animate-* token nest inside @theme, so they travel with the token.
  • @theme inline when a token's value is itself a var(...) (semantic theming), so the utility resolves per scope instead of baking in one value.
  • Font stacks are tokens (@theme { --font-sans: ... }, which preflight applies to html), never font-family on :root.
  • The first @theme resets the default palette (--color-*: initial): only the semantic @theme inline colors generate utilities, so no-unknown-classes rejects text-white, bg-red-500, and every other single-theme palette class. A new tint starts as a semantic token.

Read the full file on GitHub · 62 lines

Changes

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.

  1. 15d ago Changed · +8 lines 2dcd37eb466e
  2. 23d ago Changed · -23 lines 51c5c641b743
  3. 25d ago Changed · +2 lines 03696742d102
  4. 27d ago Changed 9e25d2635e8c
  5. 1mo ago First seen · 75 lines · 0 tokens per session scan A 2e8d6fd06d85

Subscribe to this mod's changes

tailwind is a cursor rule published in the GitHub repository louisbrulenaudet/monorepo-template (19 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,863 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.