-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Variable darken percentage for emphasized links #25575
Conversation
Hi @MartijnCuppens you are right they both should be 15%. I don't think the implementation is correct though.
As you mention the By generating a variable to change the percentage we'd be allowing users to customize how dark the link color can be, but it's not flexible enough to produce the same results they'd get from changing Therefore I suggest a new variable like:
What do you think? |
And how would you implement this |
I've got an idea. We could calculate the difference in lightness between |
@andresgalante, what do you thing of the latest changes? This doesn't require an extra variable and feels more flexible. |
Hi @MartijnCuppens there are other color functions apart from lighten and darken. Let me think about this one and get back to you. @mdo any good idea of how to make this flexible and consistent? |
This one's tough. There's no real way to do what we do elsewhere—a variable for the entire thing like |
dd47473
to
b059c18
Compare
Jup, this was getting too complex indeed. I've reverted my changes to the initial commit. Is |
@mdo: your final call is yours. |
@MartijnCuppens: this needs a rebase. |
b12da60
to
2bee9fe
Compare
@XhmikosR, done. |
Closes #25574.