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"

https://github.com/Vardot/varbase-build/blob/8.x/scripts/varbase/cmd/create-new-vartheme.sh

If you installed Varbase from drupal.org directly or by a drush dl varbase-8 you could follow the following steps:

  1. Copy the VARTHEME_SUBTHEME folder to your custom theme location.

  2. Rename VARTHEME_SUBTHEME.starterkit.yml your_subtheme_name.info.yml

  3. Rename VARTHEME_SUBTHEME.libraries.yml your_subtheme_name.libraries.yml

  4. Rename VARTHEME_SUBTHEME.theme your_subtheme_name.theme

  5. Rename VARTHEME_SUBTHEME.settings.yml

  6. Rename VARTHEME_SUBTHEME.schema.yml

  7. Replace all VARTHEME_SUBTHEME with the machine name of your theme.

  8. Replace the name: 'Vartheme Sub-Theme (LESS)' to the name of your theme.

  9. 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

results matching ""

    No results matching ""