•  

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

A session at DrupalCamp Toronto 2016 (10th Anniversary)

Friday 15th April, 2016

4:45pm to 5:45pm (EST)

Speaker: Suzanne Kennedy Dergacheva

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 speaker

This person is speaking at this event.
Suzanne (Kennedy) Dergacheva

Drupal themer, @evolvingweb co-founder, musician at heart

Coverage of this session

Sign in to add slides, notes or videos to this session

Tell your friends!

When

Time 4:45pm5:45pm EST

Date Fri 15th April 2016

Short URL

lanyrd.com/sdzqhq

Official event site

2016.drupalcamptoronto.org

View the schedule

Share

See something wrong?

Report an issue with this session