modus-opacity-utilities-solidjs-short

modus-opacity-utilities-solidjs-short is a cursor rule for Cursor from julianoczkowski/create-trimble-app. It costs 704 tokens per session, scanned A, a copy of modus-opacity-utilities-react-short, MIT.

A set of CSS utility rules for applying partial opacity to Modus design-system colors in SolidJS and Vite.

In plain words
What is it for?
Use it for transparent text, backgrounds, and borders using semantic Modus colors and predefined opacity levels.
Why use it?
Tailwind's slash opacity syntax cannot reliably modify Modus CSS variables. Custom utilities use color-mix and continue to work when themes change.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it for transparent text, backgrounds, and borders using semantic Modus colors and predefined opacity levels.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/julianoczkowski/create-trimble-app/modus-opacity-utilities-solidjs-short
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-opacity-utilities-solidjs-short

README.md
[![agentmods](https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-opacity-utilities-solidjs-short.svg)](https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-opacity-utilities-solidjs-short)
Your own site
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-opacity-utilities-solidjs-short"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-opacity-utilities-solidjs-short.svg" alt="Measured on agentmods" height="20"></a>
Per session 704 This file is loaded in full into every session.
When invoked 704 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% copy Near-identical to another mod 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.00704 $0.00704
Opus 5 $0.00352 $0.00352
Sonnet 5 $0.00141 $0.00141
Haiku 4.5 $0.00070 $0.00070

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

Security

Grade A, and why

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

Origin

This is a copy

95% identical to modus-opacity-utilities-react-short — 24 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

templates/solidjs/.cursor/rules/modus-opacity-utilities-solidjs-short.mdc · 71 lines

How it starts

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

Modus Opacity Utilities - Short

Essential opacity utilities for Modus Design System colors in SolidJS + 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 index.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

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

// ❌ This doesn't work with CSS variables
<div class="text-foreground/80">Text with 80% opacity</div>

// ✅ 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>

Common Patterns

// Text hierarchy
<div class="text-foreground">Main heading (100%)</div>
<div class="text-foreground-80">Subheading (80%)</div>
<div class="text-muted-foreground-60">Description (60%)</div>

// Interactive states
<button class="bg-primary hover:bg-primary-80 transition-colors">
  Hover with opacity
</button>

// Overlay effects
<div class="bg-foreground-20 absolute inset-0 rounded-lg"></div>

Read the full file on GitHub · 71 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. 5d ago First seen · 71 lines · 704 tokens per session scan A 798039504bbc

Subscribe to this mod's changes

modus-opacity-utilities-solidjs-short is a cursor rule published in the GitHub repository julianoczkowski/create-trimble-app (3 stars, last pushed 2mo ago), licensed MIT. It adds 704 tokens to every session, about $0.0035 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to modus-opacity-utilities-react-short, differing in 24 lines, and is treated as a copy.