How to create a Bulma sub-theme
Last updated on
11 May 2021
Create sub-theme with Drush (recommended):
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.
- Copy default folder (located inside bulma/starterkit folder) to themes folder
- Rename copied folder to "your sub-theme name".
- Make search replace BULMA_SUBTHEME_MACHINE_NAME with "your sub-theme name".
- 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.. - 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:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion