figma-polychrom
figma-polychrom copied to clipboard
Move to CSS Custom Properties for dynamic styles
Reasons:
- Inline CSS has worse performance (because their changes re-build CSSOM)
- A better separation. All styles will be in Tailwind (I think you could use CSS Custom Properties colors in Tailwind config)
- Often you use the same color in two places (like
topandbottomuselabelcolor). With CSS Custom Properties they both can share the same token. - Very likely that you will be able to remove
<ColorMetrics>