MiniCamp Atlanta 2016: Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme

Back in the Drupal 7 days (aka last year), we came across some pretty large, hard-to-maintain Drupal 7 sites. The theme was often responsible for a lot of the cruft. We saw themes with excess code, too many template files, and not enough documentation.

The Drupal 8 theme layer provides new features like libraries and Twig blocks that can help us to build cleaner, better-organized themes. So now is a good time for themers to re-visit which theming techniques to use to create themes that are smaller, maintainable, and well organized.

In this session, we’ll cover some of these features and look at specific examples of how to apply them in real-world themes:

Creating libraries to load CSS and JS in different contexts
Extending existing libraries
Using breakpoints consistently
When to use view modes
How to use Twig blocks to reduce template code
When to use templates vs. preprocess functions
Why/how to use theme settings
About the Presenter
Suzanne Dergacheva - Co-founder

As co-founder and front-end lead at Evolving Web, Suzanne is responsible for defining and implementing both the information architecture and the visual elements of websites and web applications. She manages the creation of Drupal sites from module selection and configuration to integration and custom development.

During her time at Evolving Web, Suzanne has implemented websites for the Linux Foundation, Travelocity, McGill University, A&E Television, and the Government of Canada. She is also a Drupal trainer and develops Drupal training materials on a wide range of topics.

http://twitter.com/suzanne_kennedy
https://www.linkedin.com/in/suzannedergacheva
https://github.com/pixelite
http://evolvingweb.ca

Drupal is a registered trademark of Dries Buytaert.