Components
Styles cover colors, type, and shadows — but a design system is more than that. You also have spacing scales, corner radii, icons, and images. Figma has no “spacing style” or “icon style” for these, so Figmage reads them from components instead.
There are two things Figmage does with components:
- Measures them — to produce number-based scales like spacing, sizing, and radii.
- Exports them — to pull out the actual graphics for icons and images.
Measured scales: spacing, sizing, radii
Section titled “Measured scales: spacing, sizing, radii”The idea is delightfully simple: you draw one small component for each step of a scale, and Figmage
measures it. A spacing scale becomes a row of boxes — one 4px wide, one 8px, one 16px — and
Figmage reads each width to produce your spacing tokens. The same trick gives you sizing (width or
height) and radii (corner radius).
Setting it up
Section titled “Setting it up”-
Create a dedicated frame for the scale, e.g. named Spacing or Radii.
-
Inside it, draw one element per step.
-
Turn each element into a component.
-
Make the measured dimension equal the value:
Eg. a 16px spacing step should be a 16px-wide component. (For radii, set the component’s corner radius to the value.)
-
Name each component for its step:
Spacing/Xsmall,Spacing/Small,Spacing/Medium. -
Keep one value per component so the meaning stays unambiguous.
What developers read
Section titled “What developers read”Developers point Figmage at your frame (by name or ID) or at a published component set and choose which property to measure:
| What you’re modeling | Property developers read |
|---|---|
| Spacing, widths | Width |
| Vertical sizes | Height |
| Corner radii | Corner radius |
| Good | Avoid |
|---|---|
Frame Spacing containing components named Spacing/Xsmall, Spacing/Small, Spacing/Medium | A group of rectangles that are not components |
| Component width equals the spacing value it represents | A 100px-wide component labeled 16 |
Separate frame Radii for corner radius components | Mixing spacing, radii, and icon components in one source frame |
Icons and images
Section titled “Icons and images”Figmage can export the real graphics from your file — icons as crisp SVGs, artwork as images — so developers get pixel-perfect assets straight from the source. Again, each one must be a component in a clearly named frame.
SVG icons
Section titled “SVG icons”-
Gather your icons in a top-level frame, e.g. Icons.
-
Turn each icon into a component.
-
Keep a consistent container size across a family (for example, everything on a 24×24 grid).
-
Name each icon for how it’ll be used in code —
arrow-left,check-circle— notIcon 23.
Single-color vs. multicolor icons. By default Figmage makes single-color icons inherit their color from code, so one icon can appear in any color the app needs. If you also have multicolor icons that must keep their exact colors, put them in a separate frame — that lets developers export them as their own group with color conversion turned off. Mixing the two in one frame leads to icons that lose their colors unexpectedly.
| Good | Avoid |
|---|---|
Frame Icons with 24x24 single-color components named arrow-left, check-circle | Icons named Icon 23, Vector 5, or mixed with helper layers |
Separate frame Icons Multicolor for fixed-color artwork | Mixing single-color and multicolor icons in the same export frame |
Raster images
Section titled “Raster images”For artwork that isn’t a clean vector — illustrations, logos, photos:
-
Keep exportable images as components in their own top-level frame, e.g. Assets.
-
Name them for code usage, not presentation —
empty-state,logo-full.
A note on sprite sheets
Section titled “A note on sprite sheets”Developers can optionally bundle all your icons into a single sprite sheet for performance. You don’t need to do anything special — just keep icons as clean, consistently named components, and the developer picks the output format on their end.
Readiness checklist
Section titled “Readiness checklist”Before you publish, give your components a quick once-over:
- Every scale step, icon, and image is a component.
- Each measured component’s dimension equals the value it represents.
- Names are unique and code-friendly.
- Single-color and multicolor icons live in separate top-level frames.
- Each scale lives in its own top-level frame.
Next, lock in the names that tie all of this to code in Naming & Grouping.
Before a developer syncs, run the full handoff checklist.