-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Unable to override default styles for .scss #4759
Comments
@adidahiya any update on this? This is blocking a project. Is there something I can help with? |
Migrating to dart sass and upgrading Node is the next project on my list after shipping v4.0.0 stable... I will get around to it in the next few weeks |
Are you the only developer on this? We're rebuilding our site based on BP components, and it's crucial that we can style the components. We may have to choose another library if this one is effectively crippled. I don't mean to put more pressure on @adidahiya , rather I would hope there were more people working to solve this. Edit: is there anything else we can do to help? |
After upgrade to v4 I am unable to override default colors (e.g. |
@jasonseminara Obviously @adidahiya isn't the only dev on the project. Don't be rude. They don't owe you anything. If you need functionality before it's shipped, consider forking the repo and fixing it yourself. The library isn't "crippled" because it doesn't bend to your use-case. Additionally, they already gave you a timeline for the update. |
Revisiting the issue here, I realized I need a few more specifics @connorokeefe and @jasonseminara -- are you having errors customizing variables using |
@adidahiya I've just confirmed that this is not yet fixed after migrating to dart-sass. // main.scss
@import '~@blueprintjs/core/src/blueprint.scss'; I've done the migration myself, and still get this error when building our widget:
|
@ptgamr How are you running the Sass compiler? We use some custom functions in our Sass source; if you want to compile it, I think you'll need to include them: blueprint/packages/core/package.json Line 30 in c1d7849
our |
Thanks @adidahiya for the references, yeah, I am using webpack sass-loader and seems like I don't have that custom functions. Found a work around in here #2976 (comment) ... not perfect, but got my build working again. To have a fully working solution, I guess I have to find out how to config webpack |
I also struggled with this for a while, thanks for the comments, helped me find a workaround:
|
Is there not a package that includes these? Manually copying them seems a bit tedious. |
Or maybe we could eliminate the |
Wow thanks so much for the steps! I'm upgrading our project from Next11 to Next12 + Blueprint3 to 4, and following this worked on the first try ✨ |
Environment
Question
I'm trying to override the default styles but I am running into an issue not addressed in any of the other answers to this question. I am importing
"~@blueprintjs/core/src/blueprint.scss"
into my react project after the variables are overwritten, but as a result it will not compile, instead sending errors such asIn my file,
variables.scss
I've overwritten each of the variables that I want individually, ie$pt-app-background-color: $red3;
just to see if anything happens. The file itself is almost identical tovariables.scss
in the npm module.I went through the module itself and tried to edit
"~@blueprintjs/core/src/common/_color-aliases.scss"
and"~@blueprintjs/core/src/common/_colors.scss"
directly, but that has not worked either. I am using create-react-app with typescript.Any help is appreciated.
The text was updated successfully, but these errors were encountered: