Utility of Inline Styles
We used to avoid inline styles, considering them a “bad practice”. But what if most of the known pitfalls could be avoided by using modern CSS features like custom properties?
We used to avoid inline styles, considering them a “bad practice”. But what if most of the known pitfalls could be avoided by using modern CSS features like custom properties? Roman shows how we can use CSS variables to recreate a utility-first approach by using them as an API from our HTML style attributes.