Skip to content

Conversation

tykayoshi
Copy link
Contributor

@tykayoshi tykayoshi commented Jul 9, 2025

Ticket: DON-1791

Removing static deprecated tokens

Added new shadowColor token to replace static shadows

image

Remember to include the following changes:

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

@tykayoshi tykayoshi requested review from olliecurtis and Copilot July 9, 2025 13:45
@tykayoshi tykayoshi added the major major label Jul 9, 2025
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

Removes deprecated static tokens (white, sky-blue, black, and deprecated touchable tokens) from Foundation token definitions across web, iOS, Android, and common packages.

  • Deleted hard-coded color token definitions in SCSS, JS, and JSON formats.
  • Cleaned up iOS & Android raw token JSON by removing deprecated color and touchable entries.
  • Updated common alias ordering and removed obsolete props.

Reviewed Changes

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

Show a summary per file
File Description
packages/bpk-foundations-web/tokens/base.scss Removed deprecated $bpk-color-white, -sky-blue, -black
packages/bpk-foundations-web/tokens/base.raw.json Dropped COLOR_WHITE, COLOR_SKY_BLUE, COLOR_BLACK
packages/bpk-foundations-web/tokens/base.es6.js Deleted colorWhite, colorSkyBlue, colorBlack exports
packages/bpk-foundations-web/tokens/base.default.scss Removed default SCSS vars for deprecated colors
packages/bpk-foundations-web/tokens/base.common.js Removed deprecated color entries from Common JS export
packages/bpk-foundations-ios/tokens/base.raw.ios.json Cleaned raw iOS JSON of deprecated color/touchable tokens
packages/bpk-foundations-ios/tokens/base.ios.json Removed deprecated entries from compiled iOS JSON
packages/bpk-foundations-ios/src/base/touchables.json Deleted deprecated touchable props
packages/bpk-foundations-ios/src/base/box-shadows.json Added missing newline
packages/bpk-foundations-common/base/colors/base.json Removed legacy color props
packages/bpk-foundations-common/base/colors/aliases.json Reordered SKY_GRAY alias
packages/bpk-foundations-android/tokens/base.raw.android.json Removed deprecated color props
Comments suppressed due to low confidence (1)

/// @group colors
$bpk-color-sky-blue: rgb(0, 98, 227);
/// @group colors
$bpk-color-black: rgb(1, 9, 19);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a quick look at these 3 colour tokens and noticed they're still used in Backpack Web. It seems you're deprecating these 3 color tokens. Is it a known decision for both web and app?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will look into this, this shouldn't be removed for web

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be good now

Copy link
Member

@olliecurtis olliecurtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might just need to check out those Web changes, you can solve them for web by just copying these removed tokens and placing them in the props part here: https://github.com/Skyscanner/backpack-foundations/blob/main/packages/bpk-foundations-web/src/base/fork/colors.json#L44

This linked file above is a fork of the colours which can remain whilst plans are put together to eventually remove them but doesn't block apps from removing them

@olliecurtis olliecurtis self-requested a review July 11, 2025 09:10
Copy link
Member

@olliecurtis olliecurtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! LGTM :D (won't mark as approved as I was part of helping with this overall change 😆 )

@tykayoshi tykayoshi changed the title Donburi/don 1791 remove deprecated static tokens Donburi/don 1791 remove deprecated static tokens add shadowColor Jul 11, 2025
@tykayoshi tykayoshi merged commit 3b97d84 into main Jul 11, 2025
4 checks passed
@tykayoshi tykayoshi deleted the donburi/DON-1791-Remove-Deprecated-Static-Tokens branch July 11, 2025 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major major
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants