The new version of hshassets work slightly different to former version. It desolve the dependences to hshassets by generate a css file to the project which includes all information formerly stayed in hshassets. I assume two possible kinds of application. Either you want to base your styles on hshassets without any changes or you want to use hshassets as base style but you have to add your own styles.
You want to base your style on hshassets without any changes?
If you want to base your style on hshassets without any changes you can do so even if no asset directory exists in your project. Just use the management command buildassets
.
In this case the stylesheets will be created on base of scss files saved in hshassets. By default the color scheme of hshassets is based on "service". The compiled css files will be saved in the project. That's it!
You need your own style based on hshassets?
There is a simple support for creating a "_init.scss" file.
initassets [appname] [-e|--empty]
- no appname creates _init.scss for project
- appname creates _init.scss for that app
- -e or --empty creates an empty _init.scss, otherwise bulma stuff is included
- assets and sass directories will be created as well if not existing
How to set color scheme for your project?
The default color style of hshassets is service
which we will use mostly I guess.
If you want to change the color scheme you have to import one of the following styles by adding these snippet to your _init.scss.
@import 'cd/f1';
@import 'cd/f2';
@import 'cd/f3';
@import 'cd/f4';
@import 'cd/f5';
@import 'cd/service';
@import 'cd/zsw';
After that line you have to import bulma files. You do that by adding the line @import '_hshassets_style.scss';
. If you do not so the base style of hshassets will still be used.
@import '_hshassets_style.scss;
This version based on
- Bulma (v0.7.4)
- Bulma accordion
- Fontawesome (5.7.2 free )