prototype
MAmattpocock/skills336k5,004 new stars in the last 7 days
Design inside Figma the way this designer does: real variables, text styles, auto layout and components, on a fixed visual system (Tailwind type and radius scale, spacing tokens, two-layer color tokens, button and state rules). Use this skill whenever you create, edit or review anything in a Figma file through the Figma MCP: screens, landing pages, components, mockups, design systems, tokens, or any UI. Use it even when the user doesn't name the skill and only says things like 'design a page in Figma', 'make a button component', 'mock this up' or shares a figma.com link. Load it before writing any use_figma code.
These are the designer's own rules for working in Figma. They sit on top of the official Figma skills and don't replace them.
figma-use before any use_figma call. It holds the Plugin API rules (color ranges, font loading, layout sizing). This skill only adds design rules.figma-generate-design. For component libraries and tokens, also load figma-generate-library.Check the file first. List local variable collections and text styles, and search the file's libraries (search_design_system) for variables, styles and components. Reuse what exists before creating anything.
Set up foundations if missing. Create everything below before you build any screen:
spacing and radius variablesCore Colors, then Color System with Light and Dark modes)Light and dark are variable modes, never two sets of hardcoded colors.
Foundations frame on the Foundations page, the same way components sit in their own frame. Inside it, add one auto layout section for each collection:
Core Colors: one row per palette, one swatch per shadeColor System: one row per group, with the Light and Dark modes side by side using explicit variable modes on two columnsspacing: a bar per token, sized to its valueradius: a square per token, with that radiusSurface/Primary → Grayscale/870). Text can't bind to a color value, so hex labels don't update by themselves. Re-sync the labels whenever you create, rename or change tokens.Build section by section. Do the hero first, then one section per step. Never build a whole page in one pass. Screenshot after each section and fix it before moving on.
Use auto layout everywhere. Every frame with children uses auto layout. Padding and gap are bound to spacing variables, never typed numbers.
Bind, don't type.
Color System tokens only, never to Core Colors directly.Self check before finishing. Run the checklist at the end of this file, fix every failure, then report what was built and what was skipped.
figma.listAvailableFontsAsync() before loading.Heading / Heading 1, Body / Body 4, Button / Button-md.See the slop / Decide what to fix, not See the slop. Decide what to fix.spacing/* number variables: 0, 2, 4, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96. Nothing in between.paddingTop/Right/Bottom/Left and itemSpacing to them with setBoundVariable. Give spacing variables the GAP scope, which covers both padding and gap.spacing/75) and 12 horizontal (spacing/100).radius/* variables with the CORNER_RADIUS scope. Bind each corner (topLeftRadius…).inner radius = outer radius − gap
Apply it only when the result is greater than 2. Example: a card at 16 with 8 padding gives inner elements 8.radius/* variable.The names and structure are fixed. The hex values follow the user's brand. Full name list: Token reference → Color.
Core Colors collection: raw palettes. Primary, Secondary, Accent, Grayscale, and semantic palettes Red (error), Green (success) and Yellow (warning).
00 (near white) to 1000 (near black). 500 is the base hue.Grayscale-Alpha palette (700-16 … 700-80) with the opacity stored in the variable. An alias can't add opacity, so Overlay/* aliases these.Color System collection: semantic tokens with Light and Dark modes. Every value is an alias to a Core Color, never a raw hex.
Border/, Surface/, Action/, Text/, Icon/, Overlay/.-Hover, -Click or -Selected, -Disabled, -Subtle, -Inverted.Color System tokens. A rebrand then changes only Core Colors.Surface/Blue 500).FRAME_FILL/SHAPE_FILL for surfaces, TEXT_FILL for text, STROKE_COLOR for borders. Never leave ALL_SCOPES.Dark mode backgrounds, only these: #000000 · #181818 · #1F1F1F · #272727 · #313131 · #131209
No background gradients. Surfaces are flat. This includes buttons and fade overlays.
Hero heading is the one gradient exception, on the text only, left to right:
#FFFFFF → #9B9B9B#000000 → #666666Bind both gradient stops to color variables (boundVariables.color on each stop) so the gradient switches with the mode.
One accent color, kept below 80% saturation.
Borders go all the way around or not at all. Never a single-side border on a card. To divide rows, use a 1px rectangle filled with a Border/* token, not a one-side stroke.
Action/* token rather than changing the text.● Design QA, not a redesign) by default. Add one only when the user asks for it, or when an inspiration image the user uploaded shows one.createNodeFromSvg) and recolor them with a bound Icon/* token. Never redraw an icon from primitives.Anything used more than once is a component. Expose its text as component properties.
Interactive components get variants for Default, Hover, Pressed, Focus, Disabled. Inputs also get Error and Filled.
Buttons are one component set with these two properties, every combination present (25 variants per size):
Type = Primary | Secondary | Tertiary | Error | WarningState = Default | Hover | Pressed | Focus | DisabledBind fills to Action/* (for example Action/Primary, Action/Primary-Hover, Action/Primary-Click, Action/Primary-Disabled), borders to Border/* and labels to Text/*. Focus adds a visible ring (2px outside stroke at 3:1 or better), not just a color change.
Data views get Loading (a skeleton shaped like the real layout), Empty (a composed getting-started view) and Error states.
0.22, 1, 0.36, 1:
When the task is a landing page, also follow the user's landing-page-design skill for page structure and copy (intake questions, section order, CTA rules). That includes the mandatory large tagline section with a word-by-word reveal, shown as a prototype interaction. If that skill isn't available, ask the user for it before planning sections.
Pricing / Card / Pro). Never leave Frame 427, Group 3, Vector or Rectangle 1.spacing, radius, Core Colors and Color System, with Light and Dark modes on Color System.Foundations, Components, Screens.Color System token (never a raw hex or a Core Color), and Light and Dark modes both workFoundations frame shows every token and text style, with samples bound to their variables and labels in syncFrame or GroupThe names are fixed. Color hex values follow the user's brand; spacing, radius and type values are fixed.
Collection spacing, one mode, FLOAT, scope GAP.
| Token | Value |
|---|---|
| spacing/0 | 0 |
| spacing/25 | 2 |
| spacing/50 | 4 |
| spacing/75 | 8 |
| spacing/100 | 12 |
| spacing/200 | 16 |
| spacing/300 | 24 |
| spacing/400 | 32 |
| spacing/500 | 40 |
| spacing/600 | 48 |
| spacing/700 | 64 |
| spacing/800 | 80 |
| spacing/900 | 96 |
Collection radius, one mode, FLOAT, scope CORNER_RADIUS.
| Token | Value |
|---|---|
| radius/0 | 0 |
| radius/2 | 2 |
| radius/4 | 4 |
| radius/6 | 6 |
| radius/8 | 8 |
| radius/12 | 12 |
| radius/16 | 16 |
| radius/24 | 24 |
| radius/full | 9999 |
The font is the file's one typeface (any font). Style names go in folders (Heading / Heading 1). Letter spacing is 0 unless the user sets it.
| Folder / Style | Scale step | Size / line height | Weight |
|---|---|---|---|
| Heading / Heading 1 | text-6xl | 60 / 60 | Regular |
| Heading / Heading 2 | text-5xl | 48 / 48 | Regular |
| Heading / Heading 3 | text-4xl | 36 / 40 | Regular |
| Heading / Heading 4 | text-3xl | 30 / 36 | Regular |
| Heading / Heading 5 | text-2xl | 24 / 32 | Regular |
| Heading / Heading 6 | text-xl | 20 / 28 | Regular |
| Title / Title 1 | text-xl | 20 / 28 | Medium |
| Title / Title 2 | text-lg | 18 / 28 | Medium |
| Title / Title 3 | text-base | 16 / 24 | Medium |
| Title / Title 4 | text-sm | 14 / 20 | Medium |
| Title / Title 5 | text-xs | 12 / 16 | Medium |
| Body / Body 1 | text-base | 16 / 24 | Semibold |
| Body / Body 2 | text-base | 16 / 24 | Medium |
| Body / Body 3 | text-base | 16 / 24 | Regular |
| Body / Body 4 | text-sm | 14 / 20 | Semibold |
| Body / Body 5 | text-sm | 14 / 20 | Medium |
| Body / Body 6 | text-sm | 14 / 20 | Regular |
| Button / Button-lg | text-lg | 18 / 28 | Semibold |
| Button / Button-md | text-base | 16 / 24 | Semibold |
| Button / Button-sm | text-sm | 14 / 20 | Semibold |
| Button / Button-Xsm | text-xs | 12 / 16 | Semibold |
| Caption / Caption 1 | text-sm | 14 / 20 | Medium |
| Caption / Caption 2 | text-sm | 14 / 20 | Regular |
| Caption / Caption 3 | text-xs | 12 / 16 | Semibold |
| Caption / Caption 4 | text-xs | 12 / 16 | Medium |
| Caption / Caption 5 | text-xs | 12 / 16 | Regular |
Font style strings differ by family. Check them with figma.listAvailableFontsAsync() before loading (for example Geist uses SemiBold, Inter-style families use Semi Bold).
Core ColorsOne mode. Raw hex values from the brand.
| Palette | Role | Shades |
|---|---|---|
Primary | main brand hue | 00, 50, 100, 150, 200, 300, 350, 400, 450, 500, 600, 700, 800, 850, 900, 950, 1000 |
Secondary | second brand hue | 00, 50, 100, 150, 200, 300, 400, 500, 600, 700, 800, 850, 900, 950, 1000 |
Accent | accent hue | 00, 50, 100, 150, 200, 300, 400, 500, 600, 700, 800, 850, 900, 950, 1000 |
Grayscale | neutrals | 00, 50, 100, 150, 200, 250, 300, 400, 450, 500, 600, 700, 750, 800, 850, 870, 900, 950, 1000 |
Red | error | 00, 50, 100, 150, 200, 300, 400, 500, 600, 700, 800, 850, 900, 950, 1000 |
Green | success | 00, 50, 100, 150, 200, 300, 400, 500, 600, 700, 800, 850, 900, 950, 1000 |
Yellow | warning | 00, 50, 100, 150, 200, 300, 400, 500, 600, 700, 800, 850, 900, 950, 1000 |
Grayscale-Alpha | see-through neutrals for overlays | 700-16, 700-24, 700-40, 700-64, 700-80 (the Grayscale/700 hex at 16%, 24%, 40%, 64%, 80% opacity, stored in the variable's own opacity field) |
00 is near white, 500 is the base hue and 1000 is near black.1000 = #000000, 870 = #181818, 850 = #1F1F1F, 800 = #272727, 750 = #313131.Color SystemModes Light and Dark. Every value is an alias to a Core Color. The Dark column is the user's reference mapping. Build the Light column by mirroring the shade (a dark surface at Grayscale 870 becomes a light surface near Grayscale 00/50), then check contrast.
Border
| Token | Dark alias |
|---|---|
| Border/Primary | Grayscale/750 |
| Border/Primary-Disabled | Grayscale/800 |
| Border/Primary-light | Grayscale/700 |
| Border/Secondary | Grayscale/750 |
| Border/Tertiary | Grayscale/600 |
| Border/Action-Primary | Primary/400 |
| Border/Action-Disabled | Primary/600 |
| Border/Action-Secondary | Grayscale/500 |
| Border/Error | Red/400 |
| Border/Error-disabled | Red/700 |
| Border/Success | Green/400 |
| Border/Warning | Yellow/300 |
| Border/Warning - Disabled | Yellow/700 |
Surface
| Token | Dark alias |
|---|---|
| Surface/Primary | Grayscale/870 |
| Surface/Primary-Hover | Grayscale/800 |
| Surface/Primary-Selected | Grayscale/700 |
| Surface/Primary-subtle | Grayscale/850 |
| Surface/Secondary | Grayscale/800 |
| Surface/Secondary-Hover | Grayscale/700 |
| Surface/Secondary-Selected | Grayscale/700 |
| Surface/Secondary-Subtle | Grayscale/750 |
| Surface/Tertiary | Grayscale/600 |
| Surface/Tertiary-Hover | Grayscale/450 |
| Surface/Accent | Accent/500 |
| Surface/Accent-subtle | Accent/200 |
| Surface/Info | Primary/400 |
| Surface/Info-subtle | Primary/150 |
| Surface/Error | Red/500 |
| Surface/Error-subtle | Red/100 |
| Surface/Error - Darker | Red/700 |
| Surface/Inverted | Grayscale/00 |
| Surface/Inverted-Hover | Grayscale/250 |
| Surface/Inverted-Disabled | Grayscale/450 |
| Surface/Warning | Yellow/500 |
| Surface/Warning-subtle | Yellow/100 |
| Surface/Warning - Hover | Yellow/700 |
| Surface/Success | Green/500 |
| Surface/Success-Subtle | Green/100 |
Action (button and control fills)
| Token | Dark alias |
|---|---|
| Action/Primary | Primary/500 |
| Action/Primary-Hover | Primary/700 |
| Action/Primary-Click | Primary/600 |
| Action/Primary-Disabled | Primary/700 |
| Action/Secondary | Grayscale/600 |
| Action/Secondary-Hover | Grayscale/750 |
| Action/Secondary-Click | Grayscale/700 |
| Action/Error | Red/700 |
| Action/Error-Hover | Red/800 |
| Action/Error-Disabled | Red/800 |
| Action/Error-Subtle | Red/150 |
| Action/Warning | Yellow/500 |
| Action/Warning - Hover | Yellow/700 |
| Action/Warning - Disabled | Yellow/800 |
| Action/Warning - Subtle | Yellow/100 |
Text
| Token | Dark alias |
|---|---|
| Text/Primary | Grayscale/50 |
| Text/Primary-Disabled | Grayscale/750 |
| Text/Primary-Subtle | Grayscale/500 |
| Text/Secondary | Grayscale/200 |
| Text/Secondary-Disabled | Grayscale/500 |
| Text/Tertiary | Grayscale/400 |
| Text/Inverted | Grayscale/850 |
| Text/Error | Red/500 |
| Text/Error-Disabled | Red/800 |
| Text/Error-Inverted | Red/800 |
| Text/Error-Inverted-Disabled | Red/200 |
| Text/Success | Green/600 |
| Text/Success-Inverted | Green/700 |
| Text/Success-Inverted-Disabled | Green/300 |
| Text/Info | Primary/350 |
| Text/Info-Inverted | Primary/700 |
| Text/Info-Inverted-Disabled | Primary/200 |
| Text/Warning | Yellow/500 |
| Text/Warning - Disabled | Yellow/800 |
| Text/Warning-Inverted | Yellow/800 |
| Text/Warning-Inverted-Disabled | Yellow/300 |
Icon
| Token | Dark alias |
|---|---|
| Icon/Default | Grayscale/50 |
| Icon/Secondary | Grayscale/200 |
| Icon/Subtle | Grayscale/500 |
| Icon/Inverted | Grayscale/850 |
| Icon/Disabled | Grayscale/750 |
| Icon/Error | Red/500 |
| Icon/Error-Disabled | Red/800 |
| Icon/Error-Inverted-Disabled | Red/200 |
| Icon/Info | Primary/350 |
| Icon/Info-Disabled | Primary/200 |
| Icon/Warning | Yellow/500 |
| Icon/Warning-Inverted | Yellow/700 |
| Icon/Warning - Disabled | Yellow/800 |
| Icon/Warning-Inverted-Disabled | Yellow/300 |
| Icon/Success | Green/400 |
| Icon/Success-Inverted-Disabled | Green/300 |
Overlay
| Token | Value |
|---|---|
| Overlay/xs | Grayscale-Alpha/700-16 |
| Overlay/sm | Grayscale-Alpha/700-24 |
| Overlay/md | Grayscale-Alpha/700-40 |
| Overlay/lg | Grayscale-Alpha/700-64 |
| Overlay/xlg | Grayscale-Alpha/700-80 |
An alias can't add opacity; it takes the target as it is. So the transparency lives in Core Colors (Grayscale-Alpha) and Overlay aliases it. Never put opacity on an overlay layer by hand.
MAmattpocock/skills336k5,004 new stars in the last 7 days
AFaffaan-m/ECC314k4,125 new stars in the last 7 days
FIfirecrawl/firecrawl214k5,821 new stars in the last 7 days
ANanthropics/skills203k3,333 new stars in the last 7 days
Set visual direction and typography for UI, avoiding templated defaults.
ANanthropics/skills203k3,333 new stars in the last 7 days
Build complex HTML artifacts with React, Tailwind CSS, state management and routing.
ANanthropics/skills203k3,333 new stars in the last 7 days