-
Notifications
You must be signed in to change notification settings - Fork 81
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
Add $darken_ Utility Functions for Darkening Palette Colors #728
Add $darken_ Utility Functions for Darkening Palette Colors #728
Conversation
Hi @MisRob, Please review the PR. |
Thanks @shivam-daksh, the approach looks well to me overall! And very helpful PR description. I will loop in my colleagues for a full review - @ozer550 and/or @AllanOXDi, would you please have a look and also tried to test these utilities on a few colors, here from KDS or even Kolibri? The linked issue contains all the expectations. Thank you :) |
HI @shivam-daksh Thanks for your work here. I am taking look by testing it in few places |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @shivam-daksh , LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fine
8bb37ae
to
92401f1
Compare
Hey, @AllanOXDi and @MisRob , There was a issue persisting |
Hi @shivam-daksh All you need is to add this to the changelog. Something like
|
Hey @AllanOXDi , I've changed the changelog file. Please review this again. |
Thanks! look better. But you still need to add the description. Here is an example https://github.com/learningequality/kolibri-design-system/pull/722/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4edR8. I am sorry I was not clear. |
@AllanOXDi , Do I've to change other files in documentation as given in this example or I've to change just |
No! What you did was good. just supposed to add the description of your work under the description |
Looks good! lets now just resolve the merge conflicts |
@AllanOXDi, It's done. |
Thanks! |
Thanks both @shivam-daksh and @AllanOXDi, and @shivam-daksh thanks for you first contribution. We appreciate it. I will merge soon. FYI, I made use of one of my better screens and tweaked the values to correspond a bit more closely to resulting hex values mentioned in the issue. Important part of acceptance criteria is documentation, however we typically do not require volunteers to write documentation, so I jotted it down and am pushing that as well: |
Opened related issue #740 |
@shivam-daksh if you're still interested in the follow-up issues
now it's the right time :) Just message us in those issues. |
Hi @MisRob, Thanks a lot for the feedback and tweaks! I appreciate you taking the time to document the darken utilities as well. It’s been a great learning experience. Although it was my second contribution (my first contribution was Links leading outside Studio need to have a pop out icon. I would love to working on those issues. |
@shivam-daksh Lovely! You will need to post comment there, otherwise we can't assign. Get some rest too ;) |
Description
This PR introduces utility functions
$darken1
,$darken2
, and$darken3
to darken palette colors for use in button hover states and other components. These utilities are added to theKThemePlugin
and are now available globally across all Vue components.Issue addressed
#726
Before/after screenshots
Details
New Utility Functions:
$darken1(color)
: Slightly darkens the provided color.$darken2(color)
: Moderately darkens the provided color.$darken3(color)
: Heavily darkens the provided color.These functions are defined in a new file,
darkenUtils.js
, which handles the color manipulation logic.Integration:
KThemePlugin.js
:darkenUtils.js
.$darken1
,$darken2
, and$darken3
, making them globally accessible.Example Usage in Vue Components:
(optional) Implementation notes
At a high level, how did you implement this?
Does this introduce any tech-debt items?
Testing checklist
Reviewer guidance
After review
CHANGELOG.md
Comments