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
override common bulma variables #30
Conversation
✅ Deploy Preview for fermyon-styleguide ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
It looks like newer versions of |
Okay, I think I've fixed things up. Importing fermyon.css now properly styles the page. https://design.fermyon.dev/ (prior to this change): https://deploy-preview-30--fermyon-styleguide.netlify.app/ (proposed changes): Do note that in both versions, switching to Dark mode does not update the color scheme for things like |
Looks good to me @bacongobbler, nice work! Bulma Variable Mapping in Dark ModeRegarding the Bulma overrides and dark mode, class mapping you're doing in I.e. a second set of rules, scoped to
Change to webfont embeds?The only question I have in this PR is about the webfont CDN call being removed from the page Switching embed methods may not have an impact, but there are CDN optimizations in the
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My comment isn't a blocker if this PR is urgent for Hippo work - as it stands this PR will improve the default appearance of Bulma UI elements, without the need for localized CSS work.
The Dark Mode color mapping can be further improved, but can be followed up on.
I’m currently working on fixing the dark mode issues. This is not urgent. I’ll have a closer look at your comment RE: embedding in a bit - most of this comes from Bulma’s documentation when using node-sass as the bundling mechanism |
2d7349c
to
9d18667
Compare
So I did some research into light/dark mode themes with Bulma. It looks like this has been a long-standing feature request, and it seems the maintainer(s) are unlikely going to provide support for it. jgthms/bulma#2342 has been open for 3 years. Long-term we may want to consider switching over to TailwindCSS as it has dark mode support, and it appears to be a much more active project. But I managed to merge all of the prior work and make it work for now. The downside is that you can't remap Bulma variables in a global class like
But things like this work:
This of course makes it very difficult to maintain a light/dark color scheme. |
9d18667
to
0d5a056
Compare
reverted. We still need to embed Bulma if we want to override those variables though. |
c51bb87
to
44dcca0
Compare
Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
44dcca0
to
580603e
Compare
Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
I believe I've nailed down all of the styling issues, both in light and dark modes. @flynnduism are you okay with me merging this, or would you like to hold off until after next week? I'm fine either way :) |
Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
I’m going to close this for now. Not because I don’t think this work wasn’t worthwhile (quite the opposite!), but I’m concerned I’m not familiar enough how my changes will impact other sites like fermyon.com and spin.fermyon.dev. So I’m going to spike out a separate project strictly for hippo theming. Once that’s nailed down I’ll see about porting those changes over here. |
This change remaps many of Bulma's default colors such that buttons styles with the
is-primary
class are now styled correctly. It is used as the basis for the Fermyon Theme for Hippo.It also fixes the styling for error messages displayed using Bulma's message types. See the "Panels & Sections" section for a comparison.