How to do it...

  1. For this recipe, create a new custom theme named mytheme using Classy as a base theme. This way, you can reuse some existing styling. If you are unfamiliar with creating a base theme, refer to the Creating a custom theme based on Classy recipe of Chapter 5, Frontend for the Win.
  2. Using your terminal, navigate to your theme's directory. Run bower init to create a bower project:
$ bower init ? name mytheme ? description Example theme with Semantic UI ? main file ? what types of modules does this package expose? ? keywords ? authors Matt Glaman <nmd.matt@gmail.com> ? license GPL ? homepage ? set currently installed components as dependencies? Yes ? would you like to mark this package as private which prevents it from being accidentally ...

Get Drupal 8 Development Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.