modus-angular-opacity-utilities

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

A set of CSS utility classes for applying opacity to Modus Design System colors in Angular and Vite projects. It uses semantic color names and supports the system's themes.

In plain words
What is it for?
Adding 80%, 60%, 40%, or 20% opacity to text, backgrounds, and borders using colors such as foreground, primary, and destructive.
Why use it?
It provides reliable translucent colors when CSS variables do not work with Tailwind's opacity syntax.

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-opacity-utilities
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-opacity-utilities

README.md
[![agentmods](https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-angular-opacity-utilities.svg)](https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-angular-opacity-utilities)
Your own site
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-angular-opacity-utilities"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-angular-opacity-utilities.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,404 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.01404
Opus 5 $0.00000 $0.00702
Sonnet 5 $0.00000 $0.00281
Haiku 4.5 $0.00000 $0.00140

Measured 4d ago against content hash 9a355991da81, 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-opacity-utilities 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 4d 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: New (works with design system) -->
templates/angular/.cursor/rules/modus-angular-opacity-utilities.mdc · 161 lines

How it starts

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

Modus Opacity Utilities - Angular

Essential opacity utilities for Modus Design System colors in Angular + Vite.

Key Rules

  • Use custom opacity utilities, not Tailwind /80 syntax - text-foreground-80 not text-foreground/80
  • CSS variables don't work with Tailwind opacity modifiers - Tailwind needs actual color values
  • Use color-mix() for opacity variants - Modern CSS function for proper opacity calculation
  • All utilities defined in styles.css - No Tailwind config changes needed
  • Respects theme switching - Works in all 6 Modus themes
  • Use semantic color names - foreground, primary, destructive, etc.

Available Opacity Levels

  • 80% - text-foreground-80, bg-primary-80, border-destructive-80
  • 60% - text-foreground-60, bg-primary-60, border-destructive-60
  • 40% - text-foreground-40, bg-primary-40, border-destructive-40
  • 20% - text-foreground-20, bg-primary-20, border-destructive-20

Available Colors

  • foreground - text-foreground-80, bg-foreground-80, border-foreground-80
  • muted-foreground - text-muted-foreground-80, bg-muted-foreground-80
  • primary - text-primary-80, bg-primary-80, border-primary-80
  • secondary - text-secondary-80, bg-secondary-80
  • destructive - text-destructive-80, bg-destructive-80, border-destructive-80
  • warning - text-warning-80, bg-warning-80, border-warning-80
  • success - text-success-80, bg-success-80, border-success-80

Usage Examples

Text Opacity

<!-- WRONG: Tailwind syntax doesn't work with CSS variables -->
<div class="text-foreground/80">Text with 80% opacity</div>

<!-- CORRECT: Use custom opacity utilities -->
<div class="text-foreground-80">Text with 80% opacity</div>
<div class="text-primary-60">Primary text with 60% opacity</div>
<div class="text-muted-foreground-40">Muted text with 40% opacity</div>

Background Opacity

<!-- CORRECT: Background opacity utilities -->
<div class="bg-primary-80">Primary background with 80% opacity</div>
<div class="bg-destructive-60">Destructive background with 60% opacity</div>
<div class="bg-warning-40">Warning background with 40% opacity</div>

Read the full file on GitHub · 161 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. 4d ago First seen · 161 lines · 0 tokens per session scan C 9a355991da81

Subscribe to this mod's changes

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