modus-angular-color-usage-short

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

Color rules for an Angular application built with Vite that uses the Modus design system and Tailwind CSS. They define which named colors to use for pages, text, actions, warnings, and errors.

In plain words
What is it for?
Use them when styling Angular components, choosing background and text colors, and checking that colors follow the required hierarchy across themes.
Why use it?
They prevent inconsistent colors, hardcoded values, and generic Tailwind colors from breaking the design system or looking wrong in light and dark 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-color-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-color-usage-short

README.md
[![agentmods](https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-angular-color-usage-short.svg)](https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-angular-color-usage-short)
Your own site
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-angular-color-usage-short"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-angular-color-usage-short.svg" alt="Measured on agentmods" height="20"></a>
Per session 473 This file is loaded in full into every session.
When invoked 473 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.00473 $0.00473
Opus 5 $0.00236 $0.00236
Sonnet 5 $0.00095 $0.00095
Haiku 4.5 $0.00047 $0.00047

Measured 5d ago against content hash 63ef58abc40d, 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-color-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 5d 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-color-usage-short.mdc · 57 lines

What it actually says

Modus Color Usage - Short

Essential color usage rules for Modus Design System integration.

Key Rules

  • Use design system colors only - bg-background, text-foreground, bg-primary, etc.
  • Never use generic Tailwind colors - No bg-blue-500, text-gray-600, etc.
  • Never use hardcoded values - No hex colors, RGB values, or CSS variables directly
  • Use semantic color names - bg-destructive, text-warning, bg-success
  • Follow color hierarchy - Background > Card > Primary > Secondary > Muted
  • Test in all themes - Ensure colors work in light and dark modes

9 Core Colors

  • background - bg-background (page background)
  • foreground - text-foreground (primary text)
  • card - bg-card (card backgrounds)
  • muted - bg-muted (subtle backgrounds)
  • secondary - bg-secondary (secondary UI)
  • primary - bg-primary (primary actions)
  • success - bg-success (success states)
  • warning - bg-warning (warning states)
  • destructive - bg-destructive (error states)

Correct Patterns

<!-- 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"></div>

<!-- WRONG: Hardcoded colors -->
<div [style.background-color]="'#ffffff'"></div>

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

Reference

For detailed color system guide and patterns, fetch the full rule: modus-angular-color-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. 5d ago First seen · 57 lines · 473 tokens per session scan C 63ef58abc40d

Subscribe to this mod's changes

modus-angular-color-usage-short is a cursor rule published in the GitHub repository julianoczkowski/create-trimble-app (3 stars, last pushed 2mo ago), licensed MIT. It adds 473 tokens to every session, about $0.0024 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.