01
01
Text styles aren’t associated with color
The first difference I encountered early on was how Figma handled text styles. The text styles we had in Sketch required all text properties, including text color. While this ensured the correct colors were being paired with certain text styles, we ended up with a large list of text styles, since multiple colors were valid for multiple text styles.
In Figma, text and color styles are stored separately. The benefit of this logic is that we could eliminate duplicate text styles that only varied in color, so that we are left with the main styles of varying font sizes and weights. We kept documentation of all the valid color and text pairings, and created text components with both styles applied for common text usages.
Sketch
Text styles are defined including font size, font weight, line height, and color.
Pros:
- When creating new text fields, designers don’t have to set the color style separately, saving them an extra step, and less incorrect pairings.
- Color and other font properties can be overridden if needed.
Cons:
- A lot more text styles needed to be created in the design system, in order to cover all valid combinations of text styles and text colors.
Figma
Text styles are defined with only include text properties (font size, font weight, line height, text casing, etc.), without color.
Pros:
- Less text styles needed, because text styles can be paired with any text color available.
- Text components can have the text style and color already applied to it, and designers can still override styles when needed.
Cons:
- When creating new text boxes, designers need to set the text color themselves. The correct text and color pairings is knowledge they must know or need to reference, making incorrect text and color pairings more likely.