agentleFS
roedyrustamroedyrustam/vibes-plug/.cursor/rules/vibes-plug-frontend.mdc

vibes-plug / rules

Cursor rule129 starsChanged 10 days agoMITView on GitHub

Vibes-Plug Frontend & UI Craftsmanship — React 19.2+, Next.js 16+ (latest), Tailwind v4, 5-state UI contract, tabular-nums, and WCAG 2.2

The file

We split this vibes-plug-frontend.mdc into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When editing frontend components, user interfaces, or styling files, Cursor AI MUST enforce these non-negotiable standards:

    line 9
  2. Distinctive:

    Every button, form control, navigation link, and interactive widget MUST define 5 explicit visual states:

    line 12
  3. Distinctive:

    Banned Clichés: No generic blue-purple neon gradients, no blurred neon glow balls, no stacked translucent glassmorphism cards.

    line 20
  4. Very specific:

    Tabular Numerals: MUST apply tabular-nums on all currencies, statistics, tables, and counters to eliminate layout jitter.

    line 22
  5. Very specific:

    Micro-Interactions: Use CSS native transitions (transition-colors duration-150 ease-out).

    line 23
  6. Very specific:

    React 19: Use useActionState, useOptimistic, use, Server Actions.

    line 26

≈ “Common” is an estimate: at least 1 in 5 of the 7,324 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
vibes-plug-frontend.mdc
---
alwaysApply: false
description: "Vibes-Plug Frontend & UI Craftsmanship — React 19.2+, Next.js 16+ (latest), Tailwind v4, 5-state UI contract, tabular-nums, and WCAG 2.2"
globs: "**/*.{tsx,jsx,vue,svelte,css,scss,html}"
---

# Vibes-Plug Frontend & UI Craftsmanship (2026 Edition)

When editing frontend components, user interfaces, or styling files, Cursor AI MUST enforce these non-negotiable standards:

## 1. 5-State Interactive Contract
Every button, form control, navigation link, and interactive widget MUST define 5 explicit visual states:
1. `default`: Crisp 1px border (`border-border/50`), subtle background, legible contrast.
2. `hover`: Subtle brightness/surface shift (`hover:bg-muted/80`), immediate feedback.
3. `focus-visible`: High-contrast keyboard accessibility ring (`focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none`).
4. `active`: Pressed-down scale or elevation (`active:scale-[0.98]` or `active:bg-muted`).
5. `disabled`: Unmistakable disabled visual (`disabled:opacity-50 disabled:pointer-events-none`).

## 2. Professional Visual Craft (Anti-Slop Pillar 7)
- **Banned Clichés**: No generic blue-purple neon gradients, no blurred neon glow balls, no stacked translucent glassmorphism cards.
- **Pill Button Ban**: Banned `rounded-full` on standard rectangular text buttons. Use intentional radius scale (`rounded-lg` or `rounded-md`).
- **Tabular Numerals**: MUST apply `tabular-nums` on all currencies, statistics, tables, and counters to eliminate layout jitter.
- **Micro-Interactions**: Use CSS native transitions (`transition-colors duration-150 ease-out`).

## 3. Tech Stack Conventions
- **React 19**: Use `useActionState`, `useOptimistic`, `use`, Server Actions. No unnecessary `useEffect`.
- **All Frontend Frameworks at `@latest`**: Let the user choose their framework if unspecified, and ALWAYS scaffold with the latest stable release: **Next.js 16+** (`create-next-app@latest`, Turbopack, Cache Components, `proxy.ts`), **Vite 8 + React 19.2+** (`create-vite@latest`), **Nuxt 4+ / Vue 3.5+** (`nuxi@latest init`), **SvelteKit 3+ / Svelte 5** (`sv create`), **Astro 7+** (`create-astro@latest`), **Angular 22+** (`@angular/cli@latest`), **SolidStart / SolidJS 2+** (`init solid@latest`), or **HTMX 2.x** (`htmx.org@latest`).
- **Tailwind CSS v4**: CSS-first configuration via `@theme`, OKLCH color spaces.
- **Accessibility**: Semantic HTML (`<main>`, `<nav>`, `<article>`), WCAG 2.2 AA contrast, proper ARIA labels.

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.