@itspatmorgan
Patrick Morgan
9 months
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:
Tweet media one
2
14
155

Replies

@itspatmorgan
Patrick Morgan
9 months
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
Tweet media one
Tweet media two
Tweet media three
1
0
3
@itspatmorgan
Patrick Morgan
9 months
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
Tweet media one
Tweet media two
Tweet media three
Tweet media four
1
0
3
@itspatmorgan
Patrick Morgan
9 months
Swatch applied to a full color stack: - Horizontal - Vertical
Tweet media one
Tweet media two
1
0
3
@itspatmorgan
Patrick Morgan
9 months
Easily swap color order: Since the stack is an auto-layout container, you can bump colors around using just your keyboard.
1
0
2
@itspatmorgan
Patrick Morgan
9 months
The pattern scales nicely to hundreds of colors:
1
0
1
@itspatmorgan
Patrick Morgan
9 months
When dealing with a full library, updating styles from a single component saves a lot of time:
1
1
4
@itspatmorgan
Patrick Morgan
9 months
The Stackable Swatch has saved me from a lot of repetitive work. I hope you find it useful too! How do you manage your colors?
4
1
3
@itspatmorgan
Patrick Morgan
9 months
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.
0
0
3