modus-angular-tailwind-usage

modus-angular-tailwind-usage is a cursor rule for Cursor from julianoczkowski/create-trimble-app. It costs 0 tokens per session (1,616 once invoked), scanned C, original, MIT.

A set of rules for using Tailwind CSS version 4 with the Modus design system in an Angular and Vite application.

In plain words
What is it for?
Use it while styling Angular and Vite interfaces with the project’s approved semantic color classes.
Why use it?
It prevents generic Tailwind colors, hardcoded colors, and direct design-system variables from producing inconsistent or unsupported styles.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it while styling Angular and Vite interfaces with the project’s approved semantic color classes.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/julianoczkowski/create-trimble-app/modus-angular-tailwind-usage
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/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

README.md
[![agentmods](https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-angular-tailwind-usage/github.svg)](https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-angular-tailwind-usage)
Your own site
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-angular-tailwind-usage"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-angular-tailwind-usage/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 modus-angular-tailwind-usage

Your own site · 80×15
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-angular-tailwind-usage"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-angular-tailwind-usage.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,616 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.01616
Opus 5.5 $0.00000 $0.00646
Sonnet 5.5 $0.00000 $0.00323
Haiku 4.5 $0.00000 $0.00162

Measured 3mo ago against content hash 9413ff698fb3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

modus-angular-tailwind-usage 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 3mo 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.mdc · 243 lines

How it starts

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

Tailwind CSS Usage in Angular + Vite

Tailwind v4 Integration

This Angular + Vite application uses Tailwind CSS v4 with Modus Design System integration.

Configuration: Tailwind v4 reads CSS variables directly from src/styles.css. No separate tailwind.config.js is required for basic color mapping.

FORBIDDEN: Generic Tailwind Colors

Never Use Generic Tailwind Color Classes

<!-- WRONG: Generic Tailwind color classes -->
<div class="bg-blue-500 text-white border-gray-300"></div>
<div class="bg-red-400 text-yellow-200 border-green-500"></div>
<div class="bg-gray-100 text-black border-purple-300"></div>

Never Use Hardcoded Colors

<!-- WRONG: Hardcoded colors -->
<div class="bg-[#ffffff] text-[#000000] border-[#e5e5e5]"></div>
<div [style.background-color]="'#ffffff'"></div>

Never Use Raw Modus Variables

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

CORRECT: Design System Colors

Use Design System Tailwind Classes

<!-- 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>
<div class="bg-secondary text-secondary-foreground"></div>
<div class="bg-muted text-muted-foreground"></div>
<div class="bg-destructive text-destructive-foreground"></div>
<div class="bg-warning text-warning-foreground"></div>
<div class="bg-success text-success-foreground"></div>

Available Design System Colors

// Background colors
bg-background, bg-card, bg-muted, bg-secondary

// Text colors
text-foreground, text-card-foreground, text-muted-foreground

// Primary colors
bg-primary, text-primary-foreground

// Status colors
bg-destructive, text-destructive-foreground
bg-warning, text-warning-foreground
bg-success, text-success-foreground

// Border colors
border-border, border-default, border-primary, border-success, border-warning, border-destructive

Read the full file on GitHub · 243 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. 3mo ago First seen · 243 lines · 0 tokens per session scan C 9413ff698fb3

Subscribe to this mod's changes

modus-angular-tailwind-usage is a cursor rule published in the GitHub repository julianoczkowski/create-trimble-app (3 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,616 tokens. 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.

Related

modus-angular-tailwind-usage compared with cursor rules from other repositories

modus-angular-tailwind-usage next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modus-angular-tailwind-usagejulianoczkowski/create-trimble-appCursor rule34mo agoMITC0Cursor
hatch3r-design-system-detectionhatch3r/hatch3rCursor rule262mo agoMITA0Cursor
hatch3r-ux-states-and-flowshatch3r/hatch3rCursor rule262mo agoMITA0Cursor
hatch3r-component-conventionshatch3r/hatch3rCursor rule262mo agoMITA0Cursor
hatch3r-theminghatch3r/hatch3rCursor rule262mo agoMITA0Cursor
design-uxwebhook-co/webhookCursor rule01mo agoApache-2.0A0Cursor
ponytailDietrichGebert/ponytailCursor rule201k8d agoMITA604Cursor