Create new Vartheme subtheme for a project
If you created your project with Varbase Build, you could use the ready create-new-vartheme command.
composer create-new-vartheme "THEME_NAME" "ltr" "docroot/sites/default/themes/custom"
For right to left themes.
composer create-new-vartheme "THEME_NAME" "rtl" "docroot/sites/default/themes/custom"
or to create a new theme in the docroot/themes/custom
composer create-new-vartheme "THEME_NAME" "ltr"
List of steps to create new vartheme subtheme are listed in this link bash file.
If you installed Varbase from drupal.org directly or by a drush dl varbase-8 you could follow the following steps:
Copy the VARTHEME_SUBTHEME folder to your custom theme location.
Rename VARTHEME_SUBTHEME.starterkit.yml your_subtheme_name.info.yml
Rename VARTHEME_SUBTHEME.libraries.yml your_subtheme_name.libraries.yml
Rename VARTHEME_SUBTHEME.theme your_subtheme_name.theme
Replace all VARTHEME_SUBTHEME with the machine name of your theme.
Replace the name: 'Vartheme Sub-Theme (LESS)' to the name of your theme.
We do our changes in the theme to make it our own for the current project :)
11 If we want to use the bootstrap library in the subtheme.
- 11.1 Delete the template folder bootstrap.
- 11.2 Download the bootstrap library. change the version as you need.
- 11.3 Extract the bootstrap library.
11.4 Delete the archived bootstrap library.
we want to use the RTL (right to left) bootstrap.
12.1. Delete the template folder bootstrap-rtl.
- 12.2. Download the bootstrap library. change the version as you need.
- 12.3. Extract the bootstrap library.
- 12.4. Delete the archived bootstrap library.
All command for steps are in this link