A comprehensive collection of Figma best practices, conventions, and rules optimized for both human designers and AI agents (Claude, Cursor, MCP).
These rules ensure every screen is built with proper auto-layout, naming, responsiveness, componentization, and token architecture — ready for handoff and automation.
Read the docs in order. Each rule builds on the previous:
- Start with File Organization to structure your project
- Apply Layer Naming to everything you create
- Use Auto-Layout on every frame (no exceptions)
- Test Responsiveness at multiple screen sizes
- Build Components following the architecture guide
- Set up Variables & Tokens for theming
Read docs/07-figma-api-patterns.md first — it contains the critical order of operations and error-prone patterns specific to programmatic design.
| # | Rule | Description | Key Takeaway |
|---|---|---|---|
| 01 | File Organization | Page structure, naming, multi-file strategy, cover pages | Every file needs Cover, Screens, Components, Archive |
| 02 | Layer Naming | Semantic naming, grouping, searchability, dev handoff | Name by purpose, not appearance: Section/Header not Frame 42 |
| 03 | Auto-Layout | FILL/HUG/FIXED sizing, spacing, alignment, nesting | EVERYTHING uses auto-layout. No exceptions. |
| 04 | Constraints & Responsiveness | Pin & scale, min/max, responsive patterns, scroll | Content area = FILL × FILL to absorb remaining space |
| 05 | Component Architecture | Variants, properties, slots, hierarchy, lifecycle | Atoms → Molecules → Organisms. Never detach instances. |
| 06 | Variables & Tokens | Three-tier tokens, modes, theming, contrast | Primitives → Semantic → Component. No hard-coded values. |
| 07 | Figma API Patterns | Plugin API, MCP patterns, error prevention | Append child FIRST, then set FILL. Always. |
- Everything uses auto-layout — No manually positioned elements
- Every layer has a semantic name —
Section/Header, notFrame 237 - Screen = FIXED, Content = FILL × FILL — The responsive skeleton
- No hard-coded colors — Use variables/tokens everywhere
- Never detach instances — Override properties instead
- Space between groups ≥ 2× space within — Visual hierarchy through proximity
- Append to parent BEFORE setting FILL — The #1 API error prevention rule
These docs can be used as Cursor Rules (.mdc files) for AI-assisted design:
- Copy the relevant
.mdfiles to your project's.cursor/rules/folder - Rename them with
.mdcextension - Add the Cursor Rules metadata header:
---
description: "Auto-layout rules for Figma screen construction"
globs: []
alwaysApply: true
---
- The AI assistant will automatically reference these rules when building screens
- Figma Help Center
- Figma Best Practices
- Figma Plugin API Documentation
- Figma Developer Documentation
- Figma MCP Server Docs
- W3C Design Tokens Community Group
- WCAG 2.2 Guidelines
- Material Design 3
These rules are maintained by @saralobo. Feel free to open issues or PRs for improvements.
MIT — Use freely, attribution appreciated.