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

Custom Colours #34

Open
chrishumphrey1985 opened this issue Nov 21, 2020 · 2 comments
Open

Custom Colours #34

chrishumphrey1985 opened this issue Nov 21, 2020 · 2 comments

Comments

@chrishumphrey1985
Copy link

Hi again,

I'm currently trying to build an app with a dynamic customisable theme. Currently, it has a three colours, two of which I have added to Bulma via scss (i.e. $secondary & $tertiary), which allows me to use the classes 'is-secondary', 'is-tertiary', etc

I'd like to include these 'custom' colours in the "generated-vars.scss" file, but I can't get my head around your source code.

Could you direct me to which areas I should be looking at?

@berry807
Copy link

berry807 commented Apr 22, 2021

@chrishumphrey1985 I am also looking for this, but can't figure it out. Did you already found a solution?

@wtho
Copy link
Owner

wtho commented Apr 22, 2021

@chrishumphrey1985 Oh I'm sorry, I somehow missed your issue.
You should be able to just declare the variables in bulma-css-vars.config.js. You then have to use this variable in a scss file imported by main.scss in a class.

You guys can try it out and tell me if this worked. If not I can take another look and prepare an example.

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

3 participants