-
Notifications
You must be signed in to change notification settings - Fork 99
Add bulma support #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The thing about bulma is that it's just a single JS file! I don't think it needs a bundling setup. Everywhere I've used it, it's just been requiring the 27kb file off a CDN. But maybe we should document that this is so? Could def see someone thinking This Is The Way To Do All CSS Frameworks In Rails and then missing bulma. But really, this is the way to setup CSS frameworks that require node to compile them. |
Thank you for replying! I'm kind of new to all this and English is not my first language. If I understand correctly, you mean bulma is a small CSS file that is better off imported through a CDN, we shouldn't use bundling to add bulma to Rails, and only CSS frameworks that are kind of complex, such as requiring Node to compile, should we use this bundling method to add them to a Rails app, am I correct? I'm not sure if this is the correct way to put it, I actually don't have much knowledge with frontend, but should this count as "require node to compile"? People sometimes customize their theme to a different color to just make the site doesn't look like "another bulma site" by overriding some primary colors. Without Webpacker and cssbundling gem, maybe there is some other way to customize I guess? |
Actually, yes, you're right. If we preconfigured everything under https://bulma.io/documentation/customize/with-node-sass/#6-add-your-own-bulma-styles to show why this warrants being a preprocessor, then I think it's fair game! |
Thank you for replying Mr David! I saw you reopened the PR, this is my first PR for a public project other than fixing some typo, I'm not quite sure what I'm supposed to do next. Are we waiting to see how other engineers are thinking about this PR, or am I supposed to make some edits to this PR according to https://bulma.io/documentation/customize/with-node-sass/#6-add-your-own-bulma-styles? If it's the latter case, am I supposed to copy the example code from section Or am I supposed to simply copy the example code, but comment them out in |
Thanks for working on this! I think a good path would be to show the customization options commented out 👍 |
Thank you for the explanation! I've added the example code from bulma documentation to our Does this look good to you and is this what we have wanted? Is there anything else that is supposed to add to this PR? |
Perfect! Great work 👌 |
Hi! I added Bulma CSS support to cssbundling-rails gem. I'm not sure if this is the correct way to do it, but it works on my machine, I just followed the way how bootstrap was added to it.
And here is a clean "rails 7.0.0.alpha2 new" repo I used to test my implementation.
I don't know why
node_modules
dir is not in the.gitignore
file by default in rails 7, so I also committed it with an additional commit to this repo (6MB dir size) in case someone needs to see it.