Talk: From global styles to CSS modules and Custom Properties.

One of the biggest problems of CSS is the absence of proper style scopes.

In large codebases, we use naming techniques or workarounds to localize styles and Custom Properties.

CSS was built to easily apply global styles from everywhere.

To solve this and many other problems (styles scaling, compositions, testability) CSS Modules were invented.

In this talk, we will see how to start using CSS Modules and Custom Properties, what problems they solve and how to migrate to them.DESCRIPTION: Leakage of the styles outside of components is one of the main CSS problems (which is unavoidable by its design).