modus-angular-tailwind-usage-short

modus-angular-tailwind-usage-short is a cursor rule for Cursor from julianoczkowski/create-trimble-app. It costs 367 tokens per session, scanned C, original, MIT.

A short set of rules for using Tailwind CSS version 4 with the Modus design system in an Angular and Vite application. Tailwind CSS provides utility classes for styling web interfaces.

In plain words
What is it for?
Use it when choosing color, border, and opacity classes for Angular interface components built with Modus and Tailwind.
Why use it?
It prevents generic or hardcoded colors from conflicting with the design system and helps styling work across all six themes.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/julianoczkowski/create-trimble-app/modus-angular-tailwind-usage-short
Clone the repo
git clone --depth 1 https://github.com/julianoczkowski/create-trimble-app

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 modus-angular-tailwind-usage-short

README.md
[![agentmods](https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-angular-tailwind-usage-short.svg)](https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-angular-tailwind-usage-short)
Your own site
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-angular-tailwind-usage-short"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-angular-tailwind-usage-short.svg" alt="Measured on agentmods" height="20"></a>
Per session 367 This file is loaded in full into every session.
When invoked 367 The same file — it is already loaded in full.
Security scan C 1 finding. Scan, not verified.
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 $0.00367 $0.00367
Opus 5 $0.00183 $0.00183
Sonnet 5 $0.00073 $0.00073
Haiku 4.5 $0.00037 $0.00037

Measured 3d ago against content hash e87dbac235a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

modus-angular-tailwind-usage-short scanned grade C with 1 finding 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 3d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- CORRECT: Design system colors -->
templates/angular/.cursor/rules/modus-angular-tailwind-usage-short.mdc · 45 lines

What it actually says

Modus Tailwind Usage - Short

Tailwind CSS v4 with Modus Design System integration.

Key Rules

  • Tailwind v4 with design system - Uses CSS imports, reads variables from src/styles.css
  • No generic Tailwind colors - Never use bg-blue-500, text-gray-600, etc.
  • Use design system colors - bg-background, text-foreground, bg-primary, etc.
  • Custom utilities for borders - Use border-default, border-success, border-warning, etc.
  • Custom utilities for opacity - Use text-foreground-80, not text-foreground/80
  • Test in all themes - Ensure Tailwind classes work in all 6 themes

Correct Usage

<!-- CORRECT: Design system colors -->
<div class="bg-background text-foreground"></div>
<div class="bg-card text-card-foreground border-default"></div>
<div class="bg-primary text-primary-foreground"></div>

Forbidden Patterns

<!-- WRONG: Generic Tailwind colors -->
<div class="bg-blue-500 text-white border-gray-300"></div>

<!-- WRONG: Hardcoded colors -->
<div class="bg-[#ffffff] text-[#000000]"></div>

<!-- WRONG: Raw Modus variables -->
<div class="bg-[var(--modus-wc-color-base-page)]"></div>

Reference

For detailed Tailwind patterns and styling examples, fetch the full rule: modus-angular-tailwind-usage

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. 3d ago First seen · 45 lines · 367 tokens per session scan C e87dbac235a4

Subscribe to this mod's changes

modus-angular-tailwind-usage-short is a cursor rule published in the GitHub repository julianoczkowski/create-trimble-app (3 stars, last pushed 1mo ago), licensed MIT. It adds 367 tokens to every session, about $0.0018 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.