-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
It is not possible to properly set $link-color variable in user-land config. #27338
Comments
@MartijnCuppens can you confirm? |
The |
In my opinion we can deprecate the @mdo, what do you think? |
We could potentially remove those come v5? The maps are primarily meant for looping over, but I'm unsure how much we rely on the functions we introduced with them. |
Using $primary here is not an option either.
Throws an error: |
I define $primary in my own variables.scss, and it is not dirty. |
Of course typically you would define your own value for |
I dont like to see these functions to disappear. Because then we need to make a separate variable for each color. We dont use the theme-color function.... I mapped the theme-colors with the colors. So we just use color() and gray(). I found this discussion because I wanted to ask if gray() could be changed so it would accept integers and strings both. Like: gray('100') and gray(100). At the moment gray(100) returns null :-( So please keep gray() and color(). Although if they are removed, I will add them via our own sass-functions. Greetz, flexjoly |
In your
_variables.scss
Your docs (https://getbootstrap.com/docs/4.1/getting-started/theming/#variable-defaults) says
But it is impossible to just change
$key
fortheme-color()
function, before import_variables.scss
, because theme-color expects$theme-colors
that declared in_variables.scss
.It turns out a vicious circle.
I know i can just use a variable instead of function call, but it is a bit confusing. Why you use
theme-color("primary")
instead of just$primary
?The text was updated successfully, but these errors were encountered: