Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CSS Modules: Who, what, where, when and why?!

Chris Pearce
February 25, 2016

CSS Modules: Who, what, where, when and why?!

An exploration into the fundamentals of CSS Modules and how it can allow a rapidly growing product to be built effectively.

As front-end developers we have the tendency to form a love-hate relationship with our CSS. On one hand it can be satisfyingly trivial to piece together some really good looking UI but on the other it can become an unruly beast if not treated with extreme caution. CSS Modules has been born out of problems scaling CSS and provides us with a revolutionary shift in how we are forced to consider writing our styles

Presented at "Frontend London" 25th February 2016.

http://www.frontendlondon.co.uk/

Further reading: http://chrispearce.co/elephants-the-three-code-ilities-two-months-with-css-modules/

Chris Pearce

February 25, 2016
Tweet

More Decks by Chris Pearce

Other Decks in Programming

Transcript

  1. Anytime! • Will require special loading • Can live happily

    alongside existing global CSS • Better templating support soon
  2. Maintainability Strong component encapsulation means it is easy to locate

    where to make changes and doesn’t require external contextual thought.