-
Notifications
You must be signed in to change notification settings - Fork 11
[CLOVER-481] Add text-success color token to foundations #463
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
[CLOVER-481] Add text-success color token to foundations #463
Conversation
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.
Pull Request Overview
Adds a new semantic “text-success” color token for both day and night modes across web, iOS, and Android foundations.
- Introduces
$bpk-text-success-day
and$bpk-text-success-night
in SCSS and default SCSS. - Adds corresponding raw JSON entries and JS exports for web, iOS, and Android.
- Updates common tokens (
.json
) and common JS modules to expose the new token.
Reviewed Changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
packages/bpk-foundations-web/tokens/base.scss | Added SCSS variables for text-success tokens (day/night) |
packages/bpk-foundations-web/tokens/base.raw.json | Added raw JSON entries for TEXT_SUCCESS_DAY / TEXT_SUCCESS_NIGHT |
packages/bpk-foundations-web/tokens/base.es6.js | Exported textSuccessDay and textSuccessNight constants |
packages/bpk-foundations-web/tokens/base.default.scss | Added default SCSS tokens for success colors |
packages/bpk-foundations-web/tokens/base.common.js | Included new common JS tokens for success colors |
packages/bpk-foundations-ios/tokens/base.raw.ios.json | Added iOS raw tokens and grouped semantic success color |
packages/bpk-foundations-ios/tokens/base.ios.json | Inserted iOS JSON entries for textSuccessDay and textSuccessNight |
packages/bpk-foundations-common/base/colors/text.json | Added common semantic values TEXT_SUCCESS_DAY / TEXT_SUCCESS_NIGHT |
packages/bpk-foundations-android/tokens/base.raw.android.json | Added Android raw tokens and semantic color grouping |
Comments suppressed due to low confidence (1)
packages/bpk-foundations-web/tokens/base.es6.js:68
- Add unit tests to verify the new
textSuccessNight
andtextSuccessDay
exports are present and match their expected values.
export const textSuccessNight = "rgb(98, 241, 198)";
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.
LGTM. 👍
Invited @design-system-app-gf to review it.
Replied from @EmmanuelBuraimo (design-system-app-gf) in slack: It looks good to me as well, feel free to add me as a reviewer or just use my message here as a confirmation |
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 good to me, well written :)
Context
Add text-success color token to foundations, including
textSuccessDay
andtextSuccessNight
.Adds corresponding raw JSON entries and JS exports for web, iOS, and Android.
Updates common tokens (.json) and common JS modules to expose the new token.
Remember to include the following changes:
README.md