modus-react-essentials

modus-react-essentials is a cursor rule for Cursor from julianoczkowski/create-trimble-app. It costs 0 tokens per session (2,604 once invoked), scanned A, original, MIT.

A broad set of development rules for React and Vite projects using the Modus Design System. It covers component structure, semantic colors, opacity, themes, events, and performance.

In plain words
What is it for?
Use it as a general reference while building or reviewing Modus-based React interfaces.
Why use it?
It gives the project one consistent approach, reducing styling inconsistencies, duplicated components, theme failures, and common integration mistakes.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it as a general reference while building or reviewing Modus-based React interfaces.

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-react-essentials.svg)](https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-react-essentials)
Your own site
<a href="https://agentmods.dev/rules/julianoczkowski/create-trimble-app/modus-react-essentials"><img src="https://agentmods.dev/badge/rules/julianoczkowski/create-trimble-app/modus-react-essentials.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 2,604 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.02604
Opus 5 $0.00000 $0.01302
Sonnet 5 $0.00000 $0.00521
Haiku 4.5 $0.00000 $0.00260

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

Security

Grade A, and why

modus-react-essentials 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 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.

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/react/.cursor/rules/modus-react-essentials.mdc · 210 lines

How it starts

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

Modus React Essentials

Comprehensive essential rules for React + Vite development with Modus Design System.

Design System Integration

Color Usage

  • 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
  • Use semantic color names - bg-destructive, text-warning, bg-success
  • Follow color hierarchy - Background → Card → Primary → Secondary → Muted → Accent
  • Use hover states - hover:bg-primary/90 for interactive elements
  • Test in all themes - Ensure colors work in light and dark modes

Opacity Usage

  • 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 opacity levels - 80, 60, 40, 20 (e.g., text-foreground-80, bg-primary-60)
  • Available utilities - text-*, bg-*, border-* with opacity variants

Border Usage

  • Use design system border utilities only - border-default, border-success, border-warning, border-destructive, border-primary
  • Never use Tailwind color classes in borders - No border-blue-500, border-gray-300, etc.
  • Use border-thick for emphasis - For important borders and separators
  • Use directional borders - border-t, border-b, border-l, border-r with design system colors
  • No inline styles for borders - Use Tailwind classes exclusively
  • Context-specific usage - Cards use border-default, alerts use semantic colors, forms use border-input

Read the full file on GitHub · 210 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 · 210 lines · 0 tokens per session scan A b9286d3e5404

Subscribe to this mod's changes

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