-
Notifications
You must be signed in to change notification settings - Fork 368
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
Bulma V 1.0, Dart Sass and Dark mode #211
Comments
Hey @domw95 , Thank you for looking into this! Maybe we can make this changes incremental step by step? Maybe a PR for each change? I would also say that we ignore dark mode for now. Let's focus on Bulma and the Dart Sass for now. Even if there is kind of primitive support for dark mode, let's ignore those. As long as users won't have a bad user experience it would be fine I guess. |
Bulma has also a prebuild version using css variables to configure such things as colors used in this theme which are supported by all modern browsers. If there is no special usecase for sass in this theme, there should be no need to build it ourselfes. This would reduce the dependencies and maybe also the need of the hugo extended version. |
Hey @passw0rd123 |
Thanks so much for creating this theme, I've been developing a site and its looking great.
I don't know if anyone has looked into updating to Bulma V1.0, but I have had a try myself.
The main issue is that its based on Dart Sass and uses syntax such has @use which isn't supported in LibSass that ships with Hugo (and is deprecated). Hugo can use Dart Sass, as shown in the docs. Basically you have to install the binary, and set transpiler to dartsass in the CSS options. This commit shows the changes.
One of the benefits of this is that it gives you dark mode (issue #156 ), although currently its a bit broken due to the way the colours are configured in this theme.
It is also quite simple to modify Bulma. The sass variables can be overridden by importing the module like this:
And then $primary can be used as a variable in the rest of the sass files (or not if its no longer required because its the default for e.g a button)
I haven't quite figured out how this would play with the rest of the colours in the theme and whether it can work for automatic dark mode. If I managed to get it all working, is this something you would be interested in changing?
The text was updated successfully, but these errors were encountered: