You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do not know if it's a Feature request or a Question, but I would like to be able to override the Sass variables by CSS variables. The final goal is to offer the end user to be able to customize the theme of the site by updating some CSS variables using Javacript.
Right now, I'm pretty sure it's not possible, but I am ok do discuss the subject, offer solutions and even implement them.
Steps to Reproduce
Set CSS variables, for instance: :root { --primary: red; }
Using SCSS, override Bulma variables. For instance: $primary:var(--primary, blue) !default;
`
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This is about Bulma.
Overview of the problem
This is about the Bulma CSS framework
I'm using Bulma 0.7.5.
My browser is: Chrome
Description
I do not know if it's a Feature request or a Question, but I would like to be able to override the Sass variables by CSS variables. The final goal is to offer the end user to be able to customize the theme of the site by updating some CSS variables using Javacript.
Right now, I'm pretty sure it's not possible, but I am ok do discuss the subject, offer solutions and even implement them.
Steps to Reproduce
:root { --primary: red; }
$primary:var(--primary, blue) !default;
`
@import "~bulma/sass/utilities/_all";
Expected behavior
Be able to compile and update CSS variables using Javascript syntax:
document.documentElement.style .setProperty('--primary', 'pink');
Actual behavior
Compile and see a Sass-loader error.
The text was updated successfully, but these errors were encountered: