1. React
  2. dotCSS
  3. 2019
  4. Utility of Inline Styles

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?

Roman Komarov at dotCSS 2019

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.