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

is there any way to change basic color intent (primary, success, danger, etc) with choosing color in variables.scss ? #3673

Closed
renjiza opened this issue Jul 25, 2019 · 6 comments

Comments

@renjiza
Copy link

renjiza commented Jul 25, 2019

i used version 3.*
for example intent color primary i see intent "success" color put on $green3 color from variable

i want to change this intent color with $forest3,

is any way to do that ?

thanks before

@adidahiya
Copy link
Contributor

You can build blueprint.css yourself using the Blueprint Sass sources distributed in the /src folder in the NPM package. All the variables are set as !default values which you can override. For example, you can change intent color aliases:

$pt-intent-primary: $blue3 !default;

Instead of using @import "~@blueprintjs/core/lib/css/blueprint.css", you would import "~@blueprintjs/core/src/blueprint.scss" after changing the relevant variables.

@renjiza
Copy link
Author

renjiza commented Jul 30, 2019

its work , but when i hover the button its still take blue color

@adidahiya
Copy link
Contributor

@renjiza you'll have to adjust more variables, like this one:

There's no first-class support for doing this kind of theming, so you'll have to dig through the Sass source to figure out all the necessary adjustments.

@renjiza
Copy link
Author

renjiza commented Jul 30, 2019

okay, thank you so much

@renjiza renjiza closed this as completed Jul 30, 2019
@jufemaiz
Copy link

jufemaiz commented Nov 7, 2019

no first-class support for doing this kind of theming

Damn. There goes where I was headed.

@dapte
Copy link

dapte commented May 11, 2020

me too

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

No branches or pull requests

4 participants