modus-angular-opacity-utilities-short

modus-angular-opacity-utilities-short is a cursor rule for Cursor from julianoczkowski/create-trimble-app. It costs 434 tokens per session, scanned A, original, MIT.

A set of CSS classes for applying different transparency levels to Modus Design System colors in Angular and Vite applications.

In plain words
What is it for?
Use it to create 80%, 60%, 40%, or 20% versions of text, background, and border colors such as foreground, primary, and destructive.
Why use it?
It avoids Tailwind’s opacity syntax, which does not work correctly with the color variables used by Modus. It also keeps colors working when the application theme changes.

Cursor rule for Cursor

Written for Cursor: installed under .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-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-opacity-utilities-short

README.md
[![agentmods](https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-angular-opacity-utilities-short.svg)](https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-angular-opacity-utilities-short)
Your own site
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-angular-opacity-utilities-short"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-angular-opacity-utilities-short.svg" alt="Measured on agentmods" height="20"></a>
Per session 434 This file is loaded in full into every session.
When invoked 434 The same file — it is already loaded in full.
Security scan A 0 findings. 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.1 $0.00434 $0.00434
Opus 5 $0.00217 $0.00217
Sonnet 5 $0.00087 $0.00087
Haiku 4.5 $0.00043 $0.00043

Measured 5d ago against content hash ba91ed1cbb02, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

modus-angular-opacity-utilities-short 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 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.

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.

templates/angular/.cursor/rules/modus-angular-opacity-utilities-short.mdc · 44 lines

What it actually says

Modus Opacity Utilities - Short

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 Utilities

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

Usage Examples

<!-- WRONG: Tailwind syntax doesn't work -->
<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="bg-primary-60">Primary background with 60% opacity</div>
<div class="border border-destructive-40">Destructive border with 40% opacity</div>

Reference

For detailed implementation patterns and advanced techniques, fetch the full rule: modus-angular-opacity-utilities

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 · 44 lines · 434 tokens per session scan A ba91ed1cbb02

Subscribe to this mod's changes

modus-angular-opacity-utilities-short is a cursor rule published in the GitHub repository julianoczkowski/create-trimble-app (3 stars, last pushed 2mo ago), licensed MIT. It adds 434 tokens to every session, about $0.0022 per session on Opus 5. 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-31.