design-system

design-system is a cursor rule for Cursor from docs-plus/docs.plus. It costs 0 tokens per session (681 once invoked), scanned A, original, MIT.

A set of binding rules for the Massing web application's visual design system, including colors, spacing, shapes, shadows, panels, and motion.

In plain words
What is it for?
Use it before changing UI, themes, or styling to choose approved design tokens, surface treatments, panel patterns, and behavior for light and dark modes.
Why use it?
It keeps new interface work consistent and avoids styling choices that conflict with the project's shared visual and interaction rules.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it before changing UI, themes, or styling to choose approved design tokens, surface treatments, panel patterns, and behavior for light and dark modes.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/docs-plus/docs.plus/design-system
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/docs-plus/docs.plus

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 design-system

README.md
[![agentmods](https://agentmods.dev/badge/rules/docs-plus/docs.plus/design-system/github.svg)](https://agentmods.dev/rules/docs-plus/docs.plus/design-system)
Your own site
<a href="https://agentmods.dev/rules/docs-plus/docs.plus/design-system"><img src="https://agentmods.dev/badge/rules/docs-plus/docs.plus/design-system/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design-system

Your own site · 80×15
<a href="https://agentmods.dev/rules/docs-plus/docs.plus/design-system"><img src="https://agentmods.dev/badge/rules/docs-plus/docs.plus/design-system.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 681 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.00681
Opus 5.5 $0.00000 $0.00272
Sonnet 5.5 $0.00000 $0.00136
Haiku 4.5 $0.00000 $0.00068

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

Security

Grade A, and why

design-system 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 10d 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.

.cursor/rules/design-system.mdc · 40 lines

How it starts

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

Design System

Authoritative source: .cursor/docs/design-system.md. Read it before any UI/theme/styling work; the design-system skill in .cursor/skills/ is the working protocol. Behavioral invariants (pad geometry, motion wiring, scrims, sheet systems) live in apps/webapp/CLAUDE.md, which loads automatically under apps/webapp/. AGENTS.md keeps only §UI And Theme.

Cardinal rules

  • The design system is locked and mandatory. Follow .cursor/docs/design-system.md as written, including §House language (direction C). Never add or change a token, species, size, radius, shadow, ink step or house-language rule unless the maintainer asked for that exact change in this chat. Updating a catalog row to match approved code is the only routine edit. Never edit globals.scss theme blocks or tokens on your own. See §Change protocol (locked).
  • Tokens only. daisyUI semantic classes (base-*, primary, *-content, status colors) or var(--…) tokens — never raw Tailwind palette classes or hex outside globals.scss and the brand allowlist (social/platform/logo colors; media-anchored overlays stay black/white).
  • One floating language. Anchored surfaces = rounded-box border-base-300 bg-base-100 shadow-xl via the canonical exports (popoverPanelClassName, contextMenuPanelClassName, modalPanelClassName); SCSS panels use border-radius: var(--radius-box) + var(--shadow-overlay).
  • Docked surfaces are flat in light (borders, no shadows); dark lift comes from tokens only. The workspace floor is --pad-well, never bg-base-200 directly.
  • Shape scale = the daisyUI tokens (--radius-selector 8px · --radius-field 8px · --radius-box 10px — maintainer taste is 8–10px, tuned ONLY in the theme blocks). Surfaces consume rounded-selector|field|box/rounded-full, never Tailwind literal radius classes; micro px radii (2–4px) live only in prose/editor decorations.
  • States follow the recipes in the doc (is-active = primary-10% bg + primary ink; hover = base-200; focus = focus-visible:ring-2 ring-primary; unread = error badge).
  • Verify in the browser, light + dark, desktop + mobile, before calling visual work done.

Read the full file on GitHub · 40 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. 10d ago Changed · +5 lines bc7acd5b8142
  2. 1mo ago First seen · 35 lines · 0 tokens per session scan A be4e80002b04

Subscribe to this mod's changes

design-system is a cursor rule published in the GitHub repository docs-plus/docs.plus (95 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 681 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-08-30.