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.

Run:

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

Latest Articles

VSCode Drupal Coding Standards Setup (From Scratch) admin_pixelthi… Mon, 12/22/2025 - 16:01 VSCode Drupal Coding Standards Setup (From Scratch)

VSCode Drupal Coding Standards Setup (From Scratch)

vscode
Using drupal/core-composer-scaffold to prevent rewriting .htaccess or robots.txt file admin_pixelthi… Sun, 12/01/2024 - 16:49 Using drupal/core-composer-scaffold to prevent rewriting .htaccess or robots.txt file

Using drupal/core-composer-scaffold to prevent rewriting .htaccess or robots.txt file

composer
Controlling ckeditor styling options with hook_editor_js_settings_alter admin_pixelthi… Thu, 05/16/2024 - 10:49 Controlling ckeditor styling options with hook_editor_js_settings_alter

Controlling ckeditor styling options with hook_editor_js_settings_alter

php hook hook_editor_js_settings_alter hook_field_widget_single_[WIDGET_TYPE]_form_alter