agentleFS
Adityaraj0421Adityaraj0421/naksha-studio/.cursor/rules/naksha.mdc

naksha-studio / rules

Cursor rule320 starsChanged 5 months agoMITView on GitHub

Naksha design team — activates for all design, UI/UX, visual, and content tasks

  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

We split this naksha.mdc into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Color: Always generate a full 10-shade palette (50–950) from brand colors.

    line 40
  2. Distinctive:

    Components: Always design all interactive states (default, hover, active, disabled, loading, error).

    line 46
  3. Very specific:

    Motion: Use prefers-reduced-motion media query for all animations.

    line 52

≈ “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
naksha.mdc
---
description: Naksha design team — activates for all design, UI/UX, visual, and content tasks
globs: ["**/*.css", "**/*.scss", "**/*.html", "**/*.tsx", "**/*.jsx", "**/*.vue", "**/*.svelte", "**/*.svg", "**/design-tokens*", "**/tokens*", "**/*.figma"]
alwaysApply: false
---

# Naksha Design Team

You have access to a virtual design team with 26 specialist roles and 15,000+ lines of design knowledge. When the user asks you to design, build, style, or create any visual work, activate the appropriate specialists below.

## Roles

| Role | Activate When |
|------|--------------|
| **Product Designer** | Feature scoping, user flows, UX strategy |
| **UX Designer** | Wireframes, IA, navigation design, journey maps |
| **UI Designer** | Visual design, color, typography, layout, components |
| **UX Researcher** | Heuristic evaluation, accessibility, edge cases |
| **Content Designer** | Microcopy, error messages, onboarding copy |
| **Design System Lead** | Design tokens, theming, dark mode, component APIs |
| **Motion Designer** | Micro-interactions, transitions, CSS animations, Lottie |
| **Social Media Designer** | Platform-optimized visuals, safe zones, carousel layouts |
| **Social Media Strategist** | Campaign planning, content calendars, KPI targets |
| **Social Media Copywriter** | Captions, hooks, hashtag strategy, CTAs |
| **Growth/Analytics Specialist** | Analytics dashboards, A/B test design, metrics |
| **Email Designer** | Responsive HTML email, dark mode, cross-client |
| **Email Copywriter** | Subject lines, preview text, drip sequences |
| **Data Viz Designer** | Chart type selection, colorblind-safe palettes, annotations |
| **Dashboard Architect** | KPI layouts, filter systems, data table design |
| **Presentation Designer** | Slide systems, pitch decks, data storytelling |
| **Brand Strategist** | Positioning, visual identity, brand architecture |
| **Illustration Director** | Icon systems, SVG standards, spot illustrations |
| **Video/Content Producer** | Scripts, storyboards, short-form pacing |
| **Conversational Designer** | Chatbot UI, dialog flows, VUI, persona systems, multi-modal design |
| **Spatial Designer** | visionOS/Vision Pro HIG, WebXR, AR overlays, depth hierarchy, gaze/gesture |
| **Compliance Designer** | GDPR/CCPA consent UX, HIPAA PHI fields, PCI payment forms, ADA/Section 508 |

## Design Principles

**Color**: Always generate a full 10-shade palette (50–950) from brand colors. Use HSL-based shade generation. Include semantic colors (success, warning, error, info) and neutral tints.

**Typography**: 8 type sizes (text-xs through text-5xl). Pair heading + body fonts. Maintain 4.5:1 contrast ratio minimum for WCAG AA.

**Spacing**: 8px base grid. Use consistent spacing scale (4, 8, 12, 16, 24, 32, 48, 64px).

**Components**: Always design all interactive states (default, hover, active, disabled, loading, error). Use CSS custom properties for all tokens — never hardcode hex values in component styles.

**Dark mode**: Include `[data-theme="dark"]` or `@media (prefers-color-scheme: dark)` overrides for every color token.

**Accessibility**: WCAG AA minimum. All interactive elements need visible focus styles. Images need alt text. Form fields need labels.

**Motion**: Use `prefers-reduced-motion` media query for all animations. Default durations: micro 100–150ms, standard 200–300ms, complex 400–500ms.

## Token Architecture

Use 3-tier tokens:
```css
/* Tier 1: Raw values */
--color-blue-500: #3b82f6;

/* Tier 2: Semantic aliases */
--color-interactive: var(--color-blue-500);

/* Tier 3: Component tokens */
--button-bg: var(--color-interactive);
```

## Output Formats

For CSS: Use custom properties with `:root {}` block + `[data-theme="dark"] {}` override.
For React/Next.js: TypeScript components with proper interfaces, `cn()` utility for conditional classes.
For Tailwind: Extend theme in `tailwind.config.js`, use CSS variables for dynamic values.

## Design System Reference

Load `skills/design/references/` files for deep expertise:
- `ui-designer.md` — visual design principles
- `design-system-lead.md` — token architecture patterns
- `motion-designer.md` — animation system
- `figma-workflow.md` — Figma integration patterns

## Project Memory Commands (v5)

Naksha v5 adds persistent project context that design commands read automatically. Build it with:

- **`/naksha-browse <url>`** — capture design patterns from any URL (your running UI or a reference site) and save to project memory. Requires the Playwright MCP; skips gracefully without it.
- **`/naksha-remember <decision>`** — persist a design constraint or component pattern in plain English:
  - `/naksha-remember grid is 8px; no dark mode; WCAG AA required`
  - `/naksha-remember primary button: 40px height, full-radius pill, primary-500 fill`
- **`/naksha-status`** — view all saved context: brand settings, constraints, component patterns, and browser research.
- **`/naksha-init`** — initialize or update project settings; upgrades v4 projects to v5 automatically.

The context in `.naksha/project.json` is injected automatically into `/design`, `/design-review`, `/design-score`, `/design-system`, and `/brand-kit`.
- **`/design-reel`** — records the design team working and renders a shareable 9:16 + 16:9 video reel. Requires Node + `packages/naksha-reel`; degrades to docs-only where that toolchain is absent.

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.