Incorporate Style Guide Stubs into the Theme

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:00
    Incorporate Style Guide Stubs into the Theme
  • 0:00
    with Emma Jane Westby
  • 0:07
    Our main focus for the domicile theme
  • 0:09
    is going to be mostly working with cascading style sheets.
  • 0:13
    Even though it's a small theme and really tempting to put all
  • 0:15
    of our CSS into a single file, we don't want to do this because it
  • 0:19
    will very quickly get out of control and unmaintainable.
  • 0:23
    The way that we're going to deal with this
  • 0:25
    is by creating stub files for each of the different kinds of CSS rules
  • 0:30
    that we're going to be writing.
Loading ...

Incorporate Style Guide Stubs into the Theme

Loading...

Our main focus for the Domicile theme is restyling Drupal's markup with CSS. Although it is tempting to put all of your CSS into a single file, things can quickly grow out of control. In our theme we'll break our CSS into smaller stub files to make the theme easier to maintain using the file naming conventions for Drupal 8.By the end of this lesson you will be able to incorporate CSS files into your theme via the theme's .info file.

Downloads: 
Log in or sign up to download companion files.
Additional resources: