How to create a Bulma sub-theme

Last updated on
11 May 2021

Bulma CSS theme provide integration with Drush. To create sub-theme you need to run this Drush (Drush version 8.* only) command, where "My Subtheme" is name for your sub-theme which you want to generate:

drush bulma "My Subtheme".

Create sub-theme manually:


(Please note this procedure is no longer accurate, see #3206886: Create Subtheme without drush.)

If you are not familiar with Drush, you could create sub-theme step by step manually, altough recommended way is with Drush.

  1. Copy default folder (located inside bulma/starterkit folder) to themes folder
  2. Rename copied folder to "your sub-theme name".
  3. Make search replace BULMA_SUBTHEME_MACHINE_NAME with "your sub-theme name".
  4. After this also you need to rename all files named/prefixed with default to "your subtheme name":
    - default.info.yml rename to your-subtheme-name.info.yml
    - default.libraries.yml rename to your-subtheme-name.libraries.yml
    - etc..
  5. And final step is that you unhide this theme, under your-subtheme-name.info.yml remove line 7 (hidden: true).

Help improve this page

Page status: No known problems

You can: