Skip to main content

Create a subtheme with radix 4.x and ^drush 8.x

Quick start for Drupal 8:

Download with consolidation robo dependency with composer

composer require consolidation/robo:^1.0

Download radix (compoments with be downloaded too as a dependency of radix but just in case)

 composer require drupal/components drupal/radix 

Enable Radix

 drush theme:enable -y radix       

Create a subtheme:

drush --include="web/themes/contrib/radix" radix:create SUBTHEME NAME

(do not forget to add /web/ if you are running drush as vendor package from /root folder

Enable your subtheme:

drush config-set system.theme default SUBTHEME_NAME -y.

Install required node js (npm) modules:

cd /path/to/SUBTHEME_NAME; npm install;.

Update proxy in /path/to/SUBTHEME_NAME/webpack.mix.js.


npm run watch

In case popper is missing or getting weird messages in the terminal try this: change the last mix.js of your subtheme.js (in src/js/subtheme.js) from mix.js('src/js/subtheme.script.js', 'js'); to mix.js('src/js/subtheme.script.js', 'js').sourceMaps();

radix subtheme