Skip to content

Conversation

darioroa
Copy link
Contributor

@darioroa darioroa commented Jul 3, 2025

Adds Black (900) font weight for the Hero 5 text token in apps

Remember to include the following changes:

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

@darioroa darioroa self-assigned this Jul 3, 2025
@darioroa darioroa added the minor minor label Jul 3, 2025
@Faye-Xiao Faye-Xiao requested a review from Copilot July 4, 2025 03:36
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

This PR introduces a new FONT_WEIGHT_BLACK (900) font weight and applies it to the Hero 5 text token across platforms.

  • Defines FONT_WEIGHT_BLACK in raw token files and removes the duplicate entry.
  • Updates TEXT_HERO-5_FONT_WEIGHT to use the new black weight in iOS, Android, and the common app typography.
  • Adds FONT_WEIGHT_BLACK to the common typography.json.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/bpk-foundations-ios/tokens/base.raw.ios.json Adds new FONT_WEIGHT_BLACK and removes duplicate entry
packages/bpk-foundations-ios/tokens/base.ios.json Updates textHero5FontWeight to use black (900)
packages/bpk-foundations-common/app/typography.json Adds FONT_WEIGHT_BLACK and updates TEXT_HERO-5_FONT_WEIGHT
packages/bpk-foundations-android/tokens/base.raw.android.json Adds new FONT_WEIGHT_BLACK and removes duplicate entry
Comments suppressed due to low confidence (3)

packages/bpk-foundations-common/app/typography.json:33

  • Please update the project README (e.g., token reference section) to include the new FONT_WEIGHT_BLACK token.
    "FONT_WEIGHT_BLACK": "900"

packages/bpk-foundations-common/app/typography.json:377

  • Add or update unit tests to verify that TEXT_HERO-5_FONT_WEIGHT correctly resolves to 900.
      "value": "{!FONT_WEIGHT_BLACK}",

packages/bpk-foundations-common/app/typography.json:377

  • [nitpick] Update or create Storybook examples to show the Hero 5 text rendered with the new black font weight.
      "value": "{!FONT_WEIGHT_BLACK}",

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.

@darioroa
Copy link
Contributor Author

darioroa commented Jul 4, 2025

Tanks for the review @Faye-Xiao , who can support for merging this PR?

@GCpigsic GCpigsic merged commit 7f2a635 into main Jul 7, 2025
4 of 5 checks passed
@GCpigsic GCpigsic deleted the muon/MUON-1044_hero5_font_weight branch July 7, 2025 08:10
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