Move bulma-css-variables to @bulvar/bulma #1064
Labels
No Label
area/internal-code
changes requested
confirmed
dependencies
duplicate
good first issue
help wanted
hosting
invalid
kind/bug
kind/feature
question
wontfix
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/frontend#1064
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From the matrix chat:
@bulvar/bulma looks really nice!
Not sure if it makes sense to priorize this though.
Since our target with moving to bulma-css-variables was mostly to support dark mode and this works now I think we should focus on stuff like finishing the move to vue 3, scoping the styles etc.
Thinking here in the same way as you comment from here:
Also it might make scoping more difficult for now since @bulvar/bulma seems not to support SCSS or at least partly imports. I did not get from the repo why that is the case, seems like they simply bundle the SCSS.
EDIT: Maybe I misunderstood this:
Yup, agreed that this doesn't have a very high priority right now. We should do it in the too far away future if they plan on deprecating bulma-css-variables further.
From digging about in the repo it looks like @bulvar/buefy is very much CSS only. All of Bulma's Sass files still seem to be present in @bulvar/bulma. So I tried swapping.
I can't figure out how to get sass imports to work with monorepo modules. This doesn't work:
From reading around it might need yet another npm module.
So I'll leave this branch https://kolaente.dev/adrinux/frontend/src/branch/bulvar-test but am not putting in any more effort to this.
I think I found the issue: https://github.com/daniil4udo/bulvar/pull/33
@adrinux The pull request got merged. Maybe you can try again if it works now.
If I saw it correctly you also need to add imports to the stuff in that shared folder.
Is there a release with the fix yet?
I asked for it
Is released: https://github.com/daniil4udo/bulvar/releases/tag/v0.9.4
Possible solution for this issue: #1074 (comment)
@adrinux: do you want to update your bulvar branch to try this pull request: https://github.com/daniil4udo/bulvar/pull/42
I've no idea how to properly test a pull request on a released npm module...but I did a crude test - checked out that pull request and replaced @bulva/bulma with it in my node_modules folder.
The errors remain the same as from my previous comment a week ago, and for current bulvar release, example:
As I understand it the (sass?) path parser can't handle the @ used in monorepo modules. What's needed is another js module to handle those...but there seemed to be several options and no clear obvious winner.
But this is straying out of my expertise - I'm not even sure if I've diagnosed the problem correctly never mind the solution :)
This inability to actually read the sass files in @bulvar/bulma needs resolved before we can test with switching to @use helps with othe issues.
(On a tangent - does this mean all the sass @import in vikunja's styles need switched to @use too?).
You can reference git / github urls.
The
_all
files were replaced withindex
files so you can reference the folder.You can simply reference relative to the node_modules folder. In combination with the
index.sass
files that should result in something like:@use "../../node_modules/@bulvar/bulma/sass/utilities";
No, but would be nice =)
I'm also not sure. But it solves some of our problems. Might help to isolate the rest of the issues =)
In theory yes. Also with yarn add, in theory. I've read docs, I've read blogs, I've read issues. Can't get it to work. Almost...but just no.
In retrospect, 'no'. Too much of a time sync already to no productive use.
Tried it myself, but also ran into issues. So I asked the author again: https://github.com/daniil4udo/bulvar/issues/38#issuecomment-985515227
Thanks for giving it a shot - your failure makes me feel better about my failure :)
Shame though.
I'd have another go at just cloning it elsewhere and copying into node_modules to test it but I've been too busy this week.
Yeah I did something similar but had problems even then, because the author of bulvar uses Sass load path and I couldn't figure out how to adjust this in vite.
Then I changed the imports from
@use "utilities[...]
to @use "../utilites[...]`.That makes it build but I have still probs with the result..