-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
@use "bulma/sass" with (); may conflict with Modularity #3729
Comments
Hi, a similar problem maybe occour when you want to set a variable inside the "use with" syntax with another variable of Bulma: $site-green-color: #14552b;
$site-red-color: #c00000;
$site-orange-color: #f9b700;
@use "bulma/sass/utilities/initial-variables" as iv;
@use "bulma/sass" with (
$red: $site-red-color,
$green: $site-green-color,
$orange: $site-orange-color,
$box-radius: iv.$radius, // default is radius-large
); Output:
|
I'm facing the exact same problem ... This is really frustrating... |
So this happens because if you import The solutions it to not import everything with Here is an example: @use "sass:color";
// Set your brand colors
$purple: #8a4d76;
$pink: #fa7c91;
$brown: #757763;
$beige-light: #d0d1cd;
$beige-lighter: #eff0eb;
// Override global Sass variables from the /utilities folder
@use "bulma/sass/utilities" with (
$family-primary: '"Nunito", sans-serif',
$grey-dark: $brown,
$grey-light: $beige-light,
$primary: $purple,
$link: $pink,
$control-border-width: 2px
);
// Override Sass variables from the /form folder
@use "bulma/sass/form" with (
$input-shadow: none
);
// Import the components you need
@forward "bulma/sass/base";
@forward "bulma/sass/components/card";
@forward "bulma/sass/components/modal";
@forward "bulma/sass/components/navbar";
@forward "bulma/sass/elements/button";
@forward "bulma/sass/elements/button";
@forward "bulma/sass/elements/icon";
@forward "bulma/sass/elements/content";
@forward "bulma/sass/elements/notification";
@forward "bulma/sass/elements/progress";
@forward "bulma/sass/elements/tag";
@forward "bulma/sass/layout/footer";
// Import the themes so that all CSS variables have a value
@forward "bulma/sass/themes";
// Import the Google Font
@import url("https://fonts.googleapis.com/css?family=Nunito:400,700"); If you are not overriding Sass variables with the keyword |
This is about Bulma, and it is a question.
Overview of the problem
This is about the Bulma CSS Framework, version 1.0. I am sure this issue is not a duplicate.
Description
I manually imported sass file of bulma, but seems like it was conflict with this:
I don't have an idea for that. Now I need to configure the color of
$link
.Steps to Reproduce
Like the description.
Expected behavior
No
Actual behavior
I need to configure
$link
withderived-variables.scss
, but if I write:Console will print:
The text was updated successfully, but these errors were encountered: