Advertising sustains the DA. Ads are hidden for members. Join today

Theme Development

How to create a new child theme, develop SASS code and explaining update workflow and maintenance.

Interested to find out which version of SASS you are using? Just execute the next command from your custom theme:

npx node -e 'console.log(require("node-sass").info)'
node-sass	4.11.0	(Wrapper)	[JavaScript]
libsass  	3.5.4	(Sass Compiler)	[C/C++]

You do not need a running Drupal instance (with a database) in order to use drush create and update commands. However if you do not have a running Drupal instance then you will need to add next symbolic link to your .drush home folder:

ln -s /path/to/project/web/themes/contrib/bs_base/bs_base.drush.inc ~/.drush/bs_base.drush.inc

Creating a new child theme

Explains the creation of a new child theme and all important workflow concepts

Updating existing child theme

Explains how to update existing child theme and additional update workflow concepts

SASS Variables & Options

Overview of how SASS can be configured: Variables & compilation options

Theme update hooks

Explaining custom update hook API

Guide maintainers

pivica's picture