DrupalCon Vienna 2017: CSS-in-JS: unexpected lessons for Drupal component design
About this talk
This talk explores effective strategies for managing CSS in Drupal, particularly in the context of component-based design. It addresses common challenges such as handling large, unwieldy CSS files, and highlights the lessons that can be drawn from modern CSS-in-JS projects. The speaker examines the benefits of preventing unused CSS, creating accurate component structures, and scoping styles locally to avoid global conflicts. By investigating examples from styled-components, a React-based project, attendees will learn how to achieve similar outcomes using Twig in Drupal, with minimal prior JavaScript and Twig experience required.