Building color stacks in
@figma
is time-consuming.
To reduce repetition and save myself *hours* of work, I made a simple, stackable color swatch component.
Here's how:
Swatch component:
- Swatch is an auto-layout container
- Rectangle for color display
- Color name in bold font
- Hex in monospace
- 1px border outside
- # symbol is separate from hex value as I don't need it when copy/pasting hex into Figma style panel
Swatch Stack:
- The stack is an auto-layout container
- Zero container padding or space between items
- Strokes are excluded so that they appear as one when stacked
- Horizontal or vertical orientation
If you got some value from this post, you might like Better by Design, where I share ideas and lessons from my decade as a brand strategist, UI developer, and product designer every week.