I’m using the Bulma CDN, but I want to get instead Bulma as a package.
I have installed the package with npm install bulma, but I don’t know what I should do next to get Bulma to work exactly as the CDN links.
My goal -> I want to customize some default variables of Bulma and to achieve that I have seen that I need to install the package, have a working Sass setup or create my own.scssor.sassfile, so I went with the first option.
What is the right way of using and customize a package like Bulma in this situation?
The CDN way
I have added this three links inside the css.html file:
The last site I implemented with bulma was before Hugo Pipes, so I pulled it all down with bower from within Codekit. When I do work on that site, I will redo it using yarn to pull the files to assets, and then use Hugo to compile a main.scss.
You’re talking about just using the dist files, so I would check the html source of the site, and make sure those files are getting loaded properly. What paths are you seeing in the source, and does that reflect reality?
I think they are getting loaded correctly because when I go to localhost:1313/css/bulma.css I can see the file, and I can also see the other two files bulma.min.css and bulma.css.map.
But now, what would be an optimal workflow for using Bulma?
I just want to be able to change some Bulma variables and have the smallest css size footprint for performance.
The 1st line is importing via @import "tachyons-sass/tachyons.scss"; and that tachyons-sass is in my assets folder but is also in my .gitignore so it does not get committed. I just did git clone to get it from github, and can easily update. I’m using some sass variables in there and standard css too.
You are aware that bulma.min.css is the same as bulma.css? you need only one of these links. that is probably the reason for the changed formatting. It’s either bulma.css without bulma.css.mapORbulma.min.css with bulma.css.map.
Hey! We made a generic content builder for Bulma and other frameworks (Bootstrap, Foundation, Material Design Lite, …) as well. You can play with the builder here ( http://innovademo.com/contentbuilder/example1-bootstrap.html ) It’s a jQuery plugin, so you can use it on your website. Let me know what you think