Skip to content

Conversation

Supremeyh
Copy link
Contributor

@Supremeyh Supremeyh commented Jul 17, 2025

Context

Add text-success color token to foundations, including textSuccessDay and textSuccessNight.

  • 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.

Semantic: text-success
Day mode primitive
Green spot #0C838A
Night mode primitive
Night Green spot #62F1C6

image

Remember to include the following changes:

  • README.md
  • Tests
  • Storybook examples created/updated for changes to tokens and icons

@Supremeyh Supremeyh self-assigned this Jul 17, 2025
@Supremeyh Supremeyh added the minor minor label Jul 17, 2025
@Supremeyh Supremeyh marked this pull request as ready for review July 17, 2025 07:13
@Copilot Copilot AI review requested due to automatic review settings July 17, 2025 07:13
Copy link

@Copilot Copilot AI left a 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 and textSuccessDay exports are present and match their expected values.
export const textSuccessNight = "rgb(98, 241, 198)";

Copy link
Contributor

@Faye-Xiao Faye-Xiao left a 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.

@Supremeyh
Copy link
Contributor Author

Supremeyh commented Jul 17, 2025

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

@Supremeyh Supremeyh merged commit fc6918c into main Jul 17, 2025
4 of 5 checks passed
@Supremeyh Supremeyh deleted the ez/clover-481_add_text_success_color_token_to_foundation branch July 17, 2025 08:44
Copy link
Contributor

@EmmanuelBuraimo EmmanuelBuraimo left a 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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants