agentleFS
Kevin-Liu-01Kevin-Liu-01/Loop/.cursor/rules/frontend-10x-system.mdc

Loop / rules

Cursor rule18 starsChanged 8 months agoMITView on GitHub

High-signal frontend art direction, system design, and anti-generic guardrails.

The file

Show its rules and text

We split this frontend-10x-system.mdc into the rules it gives an agent

18 rules. About 0 are common, 13 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When generating or editing frontend code:

    line 9
  2. Distinctive:

    Start by choosing an explicit art direction.

    line 11
  3. Very specific:

    Default to Tailwind CSS v4 @theme plus runtime CSS variables for token transport.

    line 15
  4. Distinctive:

    Use tokens for color, spacing, radii, shadows, blur, z-index, and motion.

    line 16
  5. Distinctive:

    Prefer OKLCH when authoring custom color scales.

    line 17
  6. Distinctive:

    Prefer a type triad: display, sans, mono.

    line 19
  7. Distinctive:

    Avoid Inter, Roboto, default shadcn aesthetics, and generic purple gradients unless the existing product already uses them or the user …

    line 20
  8. Distinctive:

    Keep the primary UI to 3 active colors or fewer plus neutrals.

    line 21
  9. Distinctive:

    Use authored line breaks in headlines.

    line 22
  10. Very specific:

    Use text-wrap: balance for headings and important short copy when helpful.

    line 23
  11. Very specific:

    Use antialiased at the app layout level when it improves the chosen fonts.

    line 24
  12. Very specific:

    Use tabular-nums for metrics, dates, prices, and changing numeric UI.

    line 25
  13. Distinctive:

    Keep navigation, CTA hierarchy, and proof blocks simple and obvious.

    line 27
  14. Distinctive:

    Default to bold but coherent decisions, not safe average ones.

    line 29
  15. Very specific:

    When the problem is craft quality, learn from manual-grade references like userinterface.wiki, Rauno, Devouring Details, Interface Craft, …

    line 30
  16. Distinctive:

    Prefer subtle layered shadows over hard borders when the goal is depth.

    line 32
  17. Distinctive:

    do not cargo-cult patterns because they were trendy on one reference site

    line 48
  18. Distinctive:

    If the task is docs-heavy, preserve docs usability first and add taste second.

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
frontend-10x-system.mdc
---
description: High-signal frontend art direction, system design, and anti-generic guardrails.
globs: ["**/*.{ts,tsx,js,jsx,css,scss,md,mdx}"]
alwaysApply: true
---

# High-Signal Frontend System

When generating or editing frontend code:

- Start by choosing an explicit art direction. Do not default to generic SaaS.
- Choose a methodology lens before choosing tactics: discovery, system, and evaluation.
- Pick one primary visual thesis: editorial technical, premium AI SaaS, cinematic 3D, architectural blueprint, neo-brutalist, or experimental.
- Build or extend a real design system before adding one-off styling.
- Default to Tailwind CSS v4 `@theme` plus runtime CSS variables for token transport.
- Use tokens for color, spacing, radii, shadows, blur, z-index, and motion.
- Prefer OKLCH when authoring custom color scales.
- Reject raw hex colors, arbitrary spacing, and accidental radius/shadow drift.
- Prefer a type triad: display, sans, mono.
- Avoid Inter, Roboto, default shadcn aesthetics, and generic purple gradients unless the existing product already uses them or the user explicitly asks for them.
- Keep the primary UI to 3 active colors or fewer plus neutrals.
- Use authored line breaks in headlines.
- Use `text-wrap: balance` for headings and important short copy when helpful.
- Use `antialiased` at the app layout level when it improves the chosen fonts.
- Use `tabular-nums` for metrics, dates, prices, and changing numeric UI.
- Make the product shot, dashboard mock, or diagram obey the same token system as the rest of the page.
- Keep navigation, CTA hierarchy, and proof blocks simple and obvious.
- Favor optical alignment over perfect geometry when they conflict.
- Default to bold but coherent decisions, not safe average ones.
- When the problem is craft quality, learn from manual-grade references like `userinterface.wiki`, Rauno, Devouring Details, Interface Craft, and UI Playbook, not only from spectacle-heavy marketing sites.
- Preserve concentric radii on nested surfaces: outer radius = inner radius + padding.
- Prefer subtle layered shadows over hard borders when the goal is depth.
- Give images and screenshots a low-opacity outline when they need a cleaner edge.
- CSS is the substrate for layout, tokens, and fallbacks. Do not default to raw CSS as the primary motion architecture.
- For React frontends, prefer Motion, GSAP, Lenis, R3F/drei, OGL, and React transitions where appropriate.
- If the product touches auth, user data, or public forms, include trust checks in the implementation: Supabase RLS where relevant, tested auth flows, rate limits, server-side validation, locked-down env vars, CAPTCHA on public forms when needed, CORS restrictions, and error handling that does not leak internals.

Composition rules:

- One hero focal point.
- One dominant CTA.
- One proof pattern near the claim.
- One repeated motif across the page.

Tactic rules:

- choose tactics intentionally: shell, density, motion, 3D/shaders, forms, data display, wait UX, resilience, search, AI, or docs
- do not cargo-cult patterns because they were trendy on one reference site

Ban these by default:

- centered-everything landing pages
- blur blobs with no material logic
- glassmorphism on white for no reason
- several competing accents
- five unrelated section styles on one page
- mismatched nested border radii
- important headlines left to accidental wrapping
- JS-only token systems when Tailwind v4 runtime vars would do the job better

If the task is docs-heavy, preserve docs usability first and add taste second.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.