Skip to content
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

Add my own variable? #3947

Open
bartrylant opened this issue Dec 9, 2024 · 0 comments
Open

Add my own variable? #3947

bartrylant opened this issue Dec 9, 2024 · 0 comments

Comments

@bartrylant
Copy link

I can't find this anywhere in the docs. I have lots of ecperience with old school css and I just wanted to add a new variable myself. So I went to utilities/initial-variables.scss, added my new variable family-trim (with a value).

Added

.#{iv.$helpers-prefix}family-trim {
  font-family: iv.$family-trim !important;
}

to helpers/typography.scss

And used

h1 {
   font-family: cv.getVar("family-trim");
}

in elements/content.scss
and compiled with dartsass.

However, the css inspector for my h1 element says

.content h1  {
    font-family: var(--bulma-family-trim);
}

but --bulma-family-trim is not defined. What did I forget or what did I do wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant