Subtheme: Using Classy as a Base Theme
Classy is a core theme in Drupal 8 and the base theme used by Bartik and Seven. The HTML markup found in Classy (and its subthemes) includes CSS classes structured similarly to the BEM and SMACSS naming conventions.
Although the BEM/SMACSS-style naming conventions developed in Classy are very effective and offer many conveniences, they may not suit every project. Those not interested in Classy’s CSS classes can choose a different base theme.
Choose Classy when |
You want a theme with well-structured CSS classes already present in the HTML. The Classy base theme reduces (and sometimes eliminates) the need to add classes to your HTML. |
Choose Stable when |
You prefer a theme with minimal CSS. For example, Stable can be used if you don’t want Drupal’s classes to conflict with the CSS/JS frameworks used in your theme. Stable is the base theme used when no base theme is specified in your subtheme. Choosing Stable means you are fully responsible for naming and structuring your own classes. |
Once you've chosen your base theme, you can read more about implementing it here: Creating a Drupal 8 subtheme.
More information
Drupal’s online documentation is © 2000-2020 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.