#utility-classes

[ follow ]
fromAlways Twisted
5 months ago

Generating Utility Classes from Design Tokens using Style Dictionary

This article shows a practical pattern for generating utility classes in CSS I've used in one form or another since 2016. Utility classes can give us a fast, consistent way to apply design system values in markup, without sprinkling hard‑coded styles across your project. As I discussed in my article on Creating Design System Friendly Snowflakes with Utility Classes, utility classes can really help offer a middle ground between rigid components and completely custom CSS.
Design
[ Load more ]