-
Notifications
You must be signed in to change notification settings - Fork 10
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 V1 CSS Variables Issues #208
Comments
@wesdevpro It looks that Bulma v1 no longer provides color variants as SCSS variables (e.g., $colors: fn.mergeColorMaps(
(
"white": (
iv.$white,
iv.$black,
),
"black": (
iv.$black,
iv.$white,
),
"light": (
$light,
$dark,
),
"dark": (
$dark,
$light,
),
"text": $text,
"primary": $primary,
"link": $link,
"info": $info,
"success": $success,
"warning": $warning,
"danger": $danger,
),
$custom-colors
) !default; |
Bulma still supports a lot of these vars. you just need to import the right sass files. I found searching for the $bulma-variable and following where it lives and then either importing or using "use": to bring in the variables you need to work relatively well. (liek 50% of the components are working) Its a bit tedious, so I gave up half way and I am going to chip away at this as I use each component. Example of _datepicker.scss - I just pulled the local scss files from buefy next and included them rather than the css file
|
i've been playing with this a bit more. Better approach is to use |
making reasonable progress with above.
I've got the basic gist of how the scss is working. Pretty amazing stuff in there... The sass function for rendering SVG's is gonna come in handy as |
Sounds positive. Will the changes be propagated to Buefy (for Vue 2) also or should those who are stuck with Buefy/Vue 2 continue to use Bulma v0.9.4? @jaybeecave FYI: your repo link leads to a 404. |
Link fixed. was private buefy vue 2 should stay with 0.9.4 I think even this project should stay with 0.9.4 because it adds yet another thing that needs an upgrade. Imagine in a prod env commiting to updating to vue 3 then suddenly you've also got to worry about styling. It needs to be opt in which is why I figured the seperate repo. Maybe this will change or the maintainer will want to use v1 but personally im trying to figure out a pathway to vue 3 for work and buefy v1 wont be part of that migration |
I agree with you to some extent...at least for now. However, after we finally release V1 (i.e. Buefy-next as Buefy) we should consider, in the next major release, to implement Bulma V1. Maybe in Buefy v1.1.0(or v2.0.0) we could migrate Buefy to typescript then maybe in v1.2.0(or v3.0.0) we could migrate to Bulma v1. Disclaimer: please note I have not discussed these ideas with @kikuomax yet and these events may not occur at all or in this order. |
💯 |
My quick testing with this looks ok. If anyone wants to try it out |
I am closing this issue for now. I will bring it back once we start working on migrating to Bulma v1 |
Hi @wesdevpro Have you guys starting to migrate bulma v1 with vue 3 yet? |
@sukhiboparai not yet but keep an eye out for this Issue to be reopened in the future! See #208 (comment) |
I'm running into these issues now trying to upgrade a Vue2 app to use Vite / Vue 3 / Bulma v1 with Buefy. Just commenting to show my interest in a Buefy version that supports Bulma v1 + Vue 3! |
Glad to hear it! Please continue to send feedback this will greatly help us move Buefy forward to better suit your needs We will get there eventually. Currently working on migrating all the code for Buefy to v3 and TSin |
Same here, did a first try and ran into similar issues! |
The problem lies in the major variable changes/customization made from 0.X.X to v1.0.0 for css variables in Bulma. |
Overview of the problem
Buefy-next version: 0.1.3-53f9b2554051b9007ba4ba5c24a9115cd571cd6e
Vuejs version: 3.3.7"
OS/Browser:
Description
Bulma v1 must have changed the structure to how css/sass variables are named as the following error message states that the
$light-invert
does not exist.Steps to reproduce
buefy-next
npm -w docs run dev
http://localhost:5173/
Expected behavior
No error message
Actual behavior
Error message about no existent variable. See https://bulma.io/documentation/
The text was updated successfully, but these errors were encountered: