SOLVED: How to duplicate variable-based text styles at scale?
- I manage a large-scale multi-brand design system
- The setup is pretty large - albeit standard IMHO
- 1000+ text styles - where all text style properties are variable-based.
Duplicating styles individually/manually is straightforward, however, at this scale, it is prohibitive.
There are a few methods (cut/paste to another file) and plugins to help workflow in duplicating text styles without variables, but they don’t support/maintain variables.
Any thoughts on how to do this with Variable-based text styles?
Use case:
We already have 3 font variables per brand: “Body”, “Brand”, “Marketing”.
We want to add a “Serif” font (in variables) for each brand, by cloning (for example) the “Brand” version/tree of the text styles across all sizes/styles and applying “Serif” font variables.
Any thoughts/help appreciated.
Thanks.
Pierre
For anyone wondering about the sanity/validity of 1000+ text styles, I’d love to hear how to address the following requirements without such an approach.
Architecture of text-styles:
- 4 style types addressing 15 sizes ranging from 60px down to 9px (in variables)
- 3x display (Large, medium, small)
- 6x headings (h1, h2, h3, h4, h5, h6)
- 6x Paragraph (LG, MD, SM, XS, MI, NA)
- 3x overline (LG, MD, SM)
- Each brand (mode) has 3 fonts (Body, Brand, Marketing) (declared in variables)
- Each font has 5 Font weights available (Light, regular, medium, semi-bold, bold) (in variables)
- It therefore has over 1000+ styles

