design

design is a cursor rule for Cursor from blockmatic/basilic. It costs 0 tokens per session (621 once invoked), scanned A, original, MIT.

A rule for choosing between CSS animations and the Motion library, which helps animate user interfaces. It prefers CSS transitions or animations when HTML data attributes are enough.

In plain words
What is it for?
Deciding how to implement interface animations and transitions when working with elements that use data attributes.
Why use it?
It prevents adding a larger animation tool when a simpler built-in browser solution can handle the effect.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Deciding how to implement interface animations and transitions when working with elements that use data attributes.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/blockmatic/basilic/design
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/blockmatic/basilic

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/blockmatic/basilic/design/github.svg)](https://agentmods.dev/rules/blockmatic/basilic/design)
Your own site
<a href="https://agentmods.dev/rules/blockmatic/basilic/design"><img src="https://agentmods.dev/badge/rules/blockmatic/basilic/design/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

Your own site · 80×15
<a href="https://agentmods.dev/rules/blockmatic/basilic/design"><img src="https://agentmods.dev/badge/rules/blockmatic/basilic/design.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 621 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.00621
Opus 5.5 $0.00000 $0.00248
Sonnet 5.5 $0.00000 $0.00124
Haiku 4.5 $0.00000 $0.00062

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

Security

Grade A, and why

design 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 24d 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/frontend/design.mdc · 29 lines

What it actually says

Animation Stack

  1. CSS + data attributes: tw-animate-css with Base UI / shadcn attrs (data-open, data-closed, data-slot, animate-in, fade-in-0, zoom-in-95, slide-in-from-*)
  2. Shadcn built-in Dialog/Popover/Sheet/Dropdown animations
  3. Custom data-* + Tailwind data-open:* / data-closed:* (not Radix data-[state=*] on new wrappers)
  4. Motion library only for drag, scroll-linked, layout, gestures, shared-element — see @.agents/skills/animate If transition-* or animate-* works, do not add Motion.

Spacing (8pt)

xs gap-1 p-1 · sm gap-2 p-2 space-y-2 · md gap-3 gap-4 p-4 space-y-4 · lg gap-6 p-6 · xl gap-8 p-8 · 2xl p-10 Layout: p-4 md:p-6. Forms: space-y-2 / space-y-4 / space-y-6. Avoid p-3, p-5, px-5 except micro-adjustments.

Typography

xs captions · sm secondary/labels · base body · lg card titles · xl page titles · 2xl hero Page titles: text-lg md:text-xl font-heading font-semibold. Card: text-lg font-heading font-semibold. Secondary: text-sm text-muted-foreground.

Design

  • Distinctive fonts; dashboard exception Inter + Poppins. font-sans UI, font-heading titles, tabular-nums prices, font-mono code. Brand and palette: root DESIGN.md (overrides craft skills).
  • UI code review: @.agents/skills/web-design-guidelines. Do not invent a WCAG level.
  • Semantic tokens (bg-primary, text-muted-foreground). Tailwind v4 @theme tokens in app CSS — do not invent a parallel design system.
  • Motion: feedback, orientation, focus—never decorate. 100–150ms micro, 200–300ms transitions, 500ms drawers. ease-out default. Animate transform/opacity only. Never scale(0)—min 0.95. See @.agents/skills/emilkowal-animations and @.agents/skills/animate
  • Loading: skeleton that preserves layout; toasts for async success/failure; hover/focus states before extra animation
  • Respect prefers-reduced-motion. Opacity fallback. Motion: MotionConfig reducedMotion="user"
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. 24d ago Changed 71528410c20a
  2. 1mo ago Changed aa152a969172
  3. 1mo ago Changed a6cd6d72bfd6
  4. 1mo ago Changed · +1 lines 896fa2991468
  5. 1mo ago Changed · -38 lines · -1,149 tokens per session ec7b203528a1
  6. 1mo ago First seen · 66 lines · 1,149 tokens per session scan A 8ffc8262f1ce

Subscribe to this mod's changes

design is a cursor rule published in the GitHub repository blockmatic/basilic (90 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 621 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.