Skip to content
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

Create migration for replacing v11 color custom properties #10579

Merged
merged 17 commits into from
Oct 3, 2023

Conversation

aaronccasanova
Copy link
Member

@aaronccasanova aaronccasanova commented Sep 19, 2023

WHY are these changes introduced?

Fixes #10416

WHAT is this pull request doing?

This PR creates a migration for deprecated color custom properties in v12.

Important

Color migration needed to be run in 2 sequential steps due to overlapping color-bg and color-bg-app token names.

Step 1 v12-styles-replace-custom-property-color

Deprecated CSS Custom Property Replacement Value
--p-color-avatar-background-experimental --p-color-avatar-bg-fill
--p-color-avatar-color-experimental --p-color-avatar-text-on-bg-fill
--p-color-avatar-style-five-background-experimental --p-color-avatar-five-bg-fill
--p-color-avatar-style-five-color-experimental --p-color-avatar-five-text-on-bg-fill
--p-color-avatar-style-four-background-experimental --p-color-avatar-four-bg-fill
--p-color-avatar-style-four-color-experimental --p-color-avatar-four-text-on-bg-fill
--p-color-avatar-style-one-background-experimental --p-color-avatar-one-bg-fill
--p-color-avatar-style-one-color-experimental --p-color-avatar-one-text-on-bg-fill
--p-color-avatar-style-three-background-experimental --p-color-avatar-three-bg-fill
--p-color-avatar-style-three-color-experimental --p-color-avatar-three-text-on-bg-fill
--p-color-avatar-style-two-background-experimental --p-color-avatar-two-bg-fill
--p-color-avatar-style-two-color-experimental --p-color-avatar-two-text-on-bg-fill
--p-color-bg-active --p-color-bg-surface-active
--p-color-bg-app-active --p-color-bg-surface-active
--p-color-bg-app-hover --p-color-bg-surface-hover
--p-color-bg-app-selected --p-color-bg-surface-selected
--p-color-bg-backdrop-experimental --p-color-backdrop-bg
--p-color-bg-caution-strong --p-color-bg-fill-caution
--p-color-bg-caution-subdued-active --p-color-bg-surface-caution-active
--p-color-bg-caution-subdued-hover --p-color-bg-surface-caution-hover
--p-color-bg-caution-subdued --p-color-bg-surface-caution
--p-color-bg-caution --p-color-bg-fill-caution-secondary
--p-color-bg-critical-strong-active --p-color-bg-fill-critical-active
--p-color-bg-critical-strong-hover --p-color-bg-fill-critical-hover
--p-color-bg-critical-strong --p-color-bg-fill-critical
--p-color-bg-critical-subdued-active --p-color-bg-surface-critical-active
--p-color-bg-critical-subdued-hover --p-color-bg-surface-critical-hover
--p-color-bg-critical-subdued --p-color-bg-surface-critical
--p-color-bg-critical --p-color-bg-fill-critical-secondary
--p-color-bg-disabled --p-color-bg-surface-disabled
--p-color-bg-hover --p-color-bg-surface-hover
--p-color-bg-info-strong --p-color-bg-fill-info
--p-color-bg-info-subdued-active --p-color-bg-surface-info-active
--p-color-bg-info-subdued-hover --p-color-bg-surface-info-hover
--p-color-bg-info-subdued --p-color-bg-surface-info
--p-color-bg-info --p-color-bg-fill-info-secondary
--p-color-bg-input-active-experimental --p-color-input-bg-surface-active
--p-color-bg-input-hover-experimental --p-color-input-bg-surface-hover
--p-color-bg-input --p-color-input-bg-surface
--p-color-bg-inset-strong --p-color-bg-fill-inverse
--p-color-bg-inset --p-color-bg-fill-secondary
--p-color-bg-interactive --p-color-bg-fill-brand
--p-color-bg-interactive-selected --p-color-bg-surface-brand-selected
--p-color-bg-interactive-subdued-active --p-color-bg-surface-brand-active
--p-color-bg-interactive-subdued-hover --p-color-bg-surface-brand-hover
--p-color-bg-inverse-active --p-color-bg-fill-inverse-active
--p-color-bg-inverse-hover --p-color-bg-fill-inverse-hover
--p-color-bg-magic-active --p-color-bg-fill-magic-secondary-active
--p-color-bg-magic-hover --p-color-bg-fill-magic-secondary-hover
--p-color-bg-magic-strong --p-color-bg-fill-magic
--p-color-bg-magic-subdued-hover --p-color-bg-surface-magic-hover
--p-color-bg-magic-subdued --p-color-bg-surface-magic
--p-color-bg-magic --p-color-bg-fill-magic-secondary
--p-color-bg-primary-active --p-color-bg-fill-brand-active
--p-color-bg-primary-disabled-experimental --p-color-bg-fill-brand-disabled
--p-color-bg-primary-hover --p-color-bg-fill-brand-hover
--p-color-bg-primary-subdued-active --p-color-bg-surface-brand-active
--p-color-bg-primary-subdued-hover --p-color-bg-surface-brand-hover
--p-color-bg-primary-subdued-selected --p-color-bg-surface-brand-selected
--p-color-bg-primary-subdued --p-color-bg-surface-brand
--p-color-bg-primary --p-color-bg-fill-brand
--p-color-bg-secondary-experimental --p-color-bg-surface-tertiary
--p-color-bg-strong-active --p-color-bg-fill-tertiary-active
--p-color-bg-strong-hover --p-color-bg-fill-tertiary-hover
--p-color-bg-strong --p-color-bg-fill-tertiary
--p-color-bg-subdued-active --p-color-bg-surface-secondary-active
--p-color-bg-subdued-hover --p-color-bg-surface-secondary-hover
--p-color-bg-subdued --p-color-bg-surface-secondary
--p-color-bg-success-strong-active-experimental --p-color-bg-fill-success-active
--p-color-bg-success-strong-hover-experimental --p-color-bg-fill-success-hover
--p-color-bg-success-strong --p-color-bg-fill-success
--p-color-bg-success-subdued-active --p-color-bg-surface-success-active
--p-color-bg-success-subdued-hover --p-color-bg-surface-success-hover
--p-color-bg-success-subdued --p-color-bg-surface-success
--p-color-bg-success --p-color-bg-fill-success-secondary
--p-color-bg-transparent-active-experimental --p-color-bg-fill-transparent-active
--p-color-bg-transparent-disabled-experimental --p-color-bg-fill-disabled
--p-color-bg-transparent-experimental --p-color-bg-surface-transparent
--p-color-bg-transparent-hover-experimental --p-color-bg-fill-transparent-hover
--p-color-bg-transparent-primary-disabled-experimental --p-color-bg-fill-brand-disabled
--p-color-bg-transparent-subdued-experimental --p-color-bg-fill-transparent-secondary
--p-color-bg-warning-strong-experimental --p-color-bg-fill-warning
--p-color-bg-warning-subdued-experimental --p-color-bg-surface-warning
--p-color-bg-warning --p-color-bg-fill-warning-secondary
--p-color-bg --p-color-bg-surface
--p-color-border-caution-subdued --p-color-border-caution
--p-color-border-critical-active --p-color-border-critical
--p-color-border-critical-hover --p-color-border-critical
--p-color-border-critical-strong-experimental --p-color-border-critical-secondary
--p-color-border-critical-subdued --p-color-border-critical
--p-color-border-info-subdued --p-color-border-info
--p-color-border-input-active-experimental --p-color-input-border-active
--p-color-border-input-hover --p-color-input-border-hover
--p-color-border-input --p-color-input-border
--p-color-border-interactive-active --p-color-border-emphasis-active
--p-color-border-interactive-disabled --p-color-border-disabled
--p-color-border-interactive-focus --p-color-border-focus
--p-color-border-interactive-hover --p-color-border-emphasis-hover
--p-color-border-interactive --p-color-border-emphasis
--p-color-border-magic-strong --p-color-border-magic-secondary
--p-color-border-primary --p-color-border-brand
--p-color-border-strong --p-color-border-tertiary
--p-color-border-subdued --p-color-border-secondary
--p-color-border-success-subdued --p-color-border-success
--p-color-icon-critical-strong-active-experimental --p-color-text-critical-active
--p-color-icon-critical-strong-experimental --p-color-text-critical
--p-color-icon-critical-strong-hover-experimental --p-color-text-critical-hover
--p-color-icon-info-strong-experimental --p-color-text-info
--p-color-icon-interactive-active --p-color-icon-emphasis-active
--p-color-icon-interactive-disabled --p-color-icon-disabled
--p-color-icon-interactive-hover --p-color-icon-emphasis-hover
--p-color-icon-interactive --p-color-icon-emphasis
--p-color-icon-primary --p-color-icon-brand
--p-color-icon-subdued --p-color-icon-secondary
--p-color-icon-success-strong-experimental --p-color-text-success
--p-color-icon-warning-strong-experimental --p-color-text-warning
--p-color-text-caution-strong --p-color-text-caution
--p-color-text-critical-hover-experimental --p-color-text-critical-hover
--p-color-text-critical-strong --p-color-text-critical
--p-color-text-info-strong --p-color-text-info-on-bg-fill
--p-color-text-interactive-active --p-color-text-emphasis-active
--p-color-text-interactive-disabled --p-color-text-disabled
--p-color-text-interactive-hover --p-color-text-emphasis-hover
--p-color-text-interactive-inverse --p-color-text-link-inverse
--p-color-text-interactive --p-color-text-emphasis
--p-color-text-inverse-subdued --p-color-text-inverse-secondary
--p-color-text-magic-strong --p-color-text-magic
--p-color-text-primary-hover --p-color-text-brand-hover
--p-color-text-primary --p-color-text-brand
--p-color-text-subdued --p-color-text-secondary
--p-color-text-success-strong --p-color-text-success
--p-color-text-warning-experimental --p-color-text-warning

Step 2 v12-styles-replace-custom-property-color

Deprecated CSS Custom Property Replacement Value
--p-color-bg-app --p-color-bg

Manual updates NOT included in this migration

Deprecated CSS Custom Property Replacement Value
--p-color-icon-on-color rgba(255, 255, 255, 1)
--p-color-text-on-color rgba(255, 255, 255, 1)
--p-color-bg-transparent-primary-experimental rgba(0, 0, 0, 0.62)
--p-color-bg-transparent-secondary-disabled-experimental rgba(0, 0, 0, 0.08)

@aaronccasanova
Copy link
Member Author

/snapit

@github-actions
Copy link
Contributor

🫰✨ Thanks @aaronccasanova! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20230919225232
yarn add @shopify/polaris@0.0.0-snapshot-release-20230919225232
yarn add @shopify/polaris-tokens@0.0.0-snapshot-release-20230919225232
yarn add @shopify/stylelint-polaris@0.0.0-snapshot-release-20230919225232

@aaronccasanova aaronccasanova changed the base branch from main to replace-custom-property-color September 20, 2023 22:38
@aaronccasanova
Copy link
Member Author

/snapit

@github-actions
Copy link
Contributor

🫰✨ Thanks @aaronccasanova! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20230920224230
yarn add @shopify/polaris@0.0.0-snapshot-release-20230920224230
yarn add @shopify/polaris-tokens@0.0.0-snapshot-release-20230920224230
yarn add @shopify/stylelint-polaris@0.0.0-snapshot-release-20230920224230

@aaronccasanova
Copy link
Member Author

/snapit

@github-actions
Copy link
Contributor

🫰✨ Thanks @aaronccasanova! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20230929014029
yarn add @shopify/polaris@0.0.0-snapshot-release-20230929014029
yarn add @shopify/polaris-tokens@0.0.0-snapshot-release-20230929014029
yarn add @shopify/stylelint-polaris@0.0.0-snapshot-release-20230929014029

@aaronccasanova
Copy link
Member Author

/snapit

@github-actions
Copy link
Contributor

🫰✨ Thanks @aaronccasanova! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20230929171751
yarn add @shopify/polaris@0.0.0-snapshot-release-20230929171751
yarn add @shopify/polaris-tokens@0.0.0-snapshot-release-20230929171751
yarn add @shopify/stylelint-polaris@0.0.0-snapshot-release-20230929171751

@aaronccasanova aaronccasanova changed the title Experimental replace custom property color 2 Create migration for replacing v11 color custom properties Oct 3, 2023
aaronccasanova and others added 2 commits October 3, 2023 14:03
…erty-color/transform.ts

Co-authored-by: Lo Kim <lo.kim@shopify.com>
…erty-color/transform.ts

Co-authored-by: Lo Kim <lo.kim@shopify.com>
…erty-color/transform.ts

Co-authored-by: Lo Kim <lo.kim@shopify.com>
@aaronccasanova aaronccasanova marked this pull request as ready for review October 3, 2023 21:05
@aaronccasanova aaronccasanova self-assigned this Oct 3, 2023
@github-actions github-actions bot added the cla-needed Added by a bot. Contributor needs to sign the CLA Agreement. label Oct 3, 2023
@aaronccasanova aaronccasanova changed the base branch from replace-custom-property-color to main October 3, 2023 21:09
@aaronccasanova aaronccasanova requested review from a team as code owners October 3, 2023 21:09
@aaronccasanova aaronccasanova added 🤖Skip Changelog Causes CI to ignore changelog update check. 🤖Skip Comment Check Skip the migrator comment CI check labels Oct 3, 2023
@github-actions github-actions bot removed the cla-needed Added by a bot. Contributor needs to sign the CLA Agreement. label Oct 3, 2023
@aaronccasanova aaronccasanova merged commit b5a3622 into main Oct 3, 2023
10 checks passed
@aaronccasanova aaronccasanova deleted the replace-custom-property-color-2 branch October 3, 2023 21:56
laurkim pushed a commit that referenced this pull request Oct 4, 2023
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @shopify/polaris-migrator@0.23.0

### Minor Changes

- [#10579](#10579)
[`b5a3622ca`](b5a3622)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Created
migration to replace deprecated `color` custom properties in Polaris
v12.0.0


- [#10304](#10304)
[`eb93b7f1c`](eb93b7f)
Thanks [@lgriffee](https://github.com/lgriffee)! - Created migration to
replace deprecated `font` custom properties in polaris-react v12.0.0


- [#10506](#10506)
[`d901a07a3`](d901a07)
Thanks [@lgriffee](https://github.com/lgriffee)! - Created migration to
replace deprecated `border` custom properties in polaris-react v12.0.0


- [#10305](#10305)
[`1b36b9256`](1b36b92)
Thanks [@lgriffee](https://github.com/lgriffee)! - Created migration to
replace deprecated `space` custom properties in polaris-react v12.0.0


- [#10306](#10306)
[`dbae87e58`](dbae87e)
Thanks [@lgriffee](https://github.com/lgriffee)! - Created migration to
replace deprecated `shadow` custom properties in polaris-react v12.0.0

## @shopify/polaris@11.26.0

### Minor Changes

- [#10788](#10788)
[`82f10e830`](82f10e8)
Thanks [@mrcthms](https://github.com/mrcthms)! - Deprecated the
IndexFiltersManager component

## polaris.shopify.com@0.58.5

### Patch Changes

- Updated dependencies
\[[`82f10e830`](82f10e8)]:
    -   @shopify/polaris@11.26.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
mrcthms pushed a commit that referenced this pull request Oct 12, 2023
### WHY are these changes introduced?

Fixes #10416 

### WHAT is this pull request doing?

This PR creates a migration for deprecated `color` custom properties in
v12.

> [!Important]
> Color migration needed to be run in 2 sequential steps due to
overlapping `color-bg` and `color-bg-app` token names.

#### Step 1 `v12-styles-replace-custom-property-color`

| Deprecated CSS Custom Property | Replacement Value |
| ----------------------------------------- |
---------------------------------- |
| `--p-color-avatar-background-experimental` |
`--p-color-avatar-bg-fill` |
| `--p-color-avatar-color-experimental` |
`--p-color-avatar-text-on-bg-fill` |
| `--p-color-avatar-style-five-background-experimental` |
`--p-color-avatar-five-bg-fill` |
| `--p-color-avatar-style-five-color-experimental` |
`--p-color-avatar-five-text-on-bg-fill` |
| `--p-color-avatar-style-four-background-experimental` |
`--p-color-avatar-four-bg-fill` |
| `--p-color-avatar-style-four-color-experimental` |
`--p-color-avatar-four-text-on-bg-fill` |
| `--p-color-avatar-style-one-background-experimental` |
`--p-color-avatar-one-bg-fill` |
| `--p-color-avatar-style-one-color-experimental` |
`--p-color-avatar-one-text-on-bg-fill` |
| `--p-color-avatar-style-three-background-experimental` |
`--p-color-avatar-three-bg-fill` |
| `--p-color-avatar-style-three-color-experimental` |
`--p-color-avatar-three-text-on-bg-fill` |
| `--p-color-avatar-style-two-background-experimental` |
`--p-color-avatar-two-bg-fill` |
| `--p-color-avatar-style-two-color-experimental` |
`--p-color-avatar-two-text-on-bg-fill` |
| `--p-color-bg-active` | `--p-color-bg-surface-active` |
| `--p-color-bg-app-active` | `--p-color-bg-surface-active` |
| `--p-color-bg-app-hover` | `--p-color-bg-surface-hover` |
| `--p-color-bg-app-selected` | `--p-color-bg-surface-selected` |
| `--p-color-bg-backdrop-experimental` | `--p-color-backdrop-bg` |
| `--p-color-bg-caution-strong` | `--p-color-bg-fill-caution` |
| `--p-color-bg-caution-subdued-active` |
`--p-color-bg-surface-caution-active` |
| `--p-color-bg-caution-subdued-hover` |
`--p-color-bg-surface-caution-hover` |
| `--p-color-bg-caution-subdued` | `--p-color-bg-surface-caution` |
| `--p-color-bg-caution` | `--p-color-bg-fill-caution-secondary` |
| `--p-color-bg-critical-strong-active` |
`--p-color-bg-fill-critical-active` |
| `--p-color-bg-critical-strong-hover` |
`--p-color-bg-fill-critical-hover` |
| `--p-color-bg-critical-strong` | `--p-color-bg-fill-critical` |
| `--p-color-bg-critical-subdued-active` |
`--p-color-bg-surface-critical-active` |
| `--p-color-bg-critical-subdued-hover` |
`--p-color-bg-surface-critical-hover` |
| `--p-color-bg-critical-subdued` | `--p-color-bg-surface-critical` |
| `--p-color-bg-critical` | `--p-color-bg-fill-critical-secondary` |
| `--p-color-bg-disabled` | `--p-color-bg-surface-disabled` |
| `--p-color-bg-hover` | `--p-color-bg-surface-hover` |
| `--p-color-bg-info-strong` | `--p-color-bg-fill-info` |
| `--p-color-bg-info-subdued-active` |
`--p-color-bg-surface-info-active` |
| `--p-color-bg-info-subdued-hover` | `--p-color-bg-surface-info-hover`
|
| `--p-color-bg-info-subdued` | `--p-color-bg-surface-info` |
| `--p-color-bg-info` | `--p-color-bg-fill-info-secondary` |
| `--p-color-bg-input-active-experimental` |
`--p-color-input-bg-surface-active` |
| `--p-color-bg-input-hover-experimental` |
`--p-color-input-bg-surface-hover` |
| `--p-color-bg-input` | `--p-color-input-bg-surface` |
| `--p-color-bg-inset-strong` | `--p-color-bg-fill-inverse` |
| `--p-color-bg-inset` | `--p-color-bg-fill-secondary` |
| `--p-color-bg-interactive` | `--p-color-bg-fill-brand` |
| `--p-color-bg-interactive-selected` |
`--p-color-bg-surface-brand-selected` |
| `--p-color-bg-interactive-subdued-active` |
`--p-color-bg-surface-brand-active` |
| `--p-color-bg-interactive-subdued-hover` |
`--p-color-bg-surface-brand-hover` |
| `--p-color-bg-inverse-active` | `--p-color-bg-fill-inverse-active` |
| `--p-color-bg-inverse-hover` | `--p-color-bg-fill-inverse-hover` |
| `--p-color-bg-magic-active` |
`--p-color-bg-fill-magic-secondary-active` |
| `--p-color-bg-magic-hover` | `--p-color-bg-fill-magic-secondary-hover`
|
| `--p-color-bg-magic-strong` | `--p-color-bg-fill-magic` |
| `--p-color-bg-magic-subdued-hover` |
`--p-color-bg-surface-magic-hover` |
| `--p-color-bg-magic-subdued` | `--p-color-bg-surface-magic` |
| `--p-color-bg-magic` | `--p-color-bg-fill-magic-secondary` |
| `--p-color-bg-primary-active` | `--p-color-bg-fill-brand-active` |
| `--p-color-bg-primary-disabled-experimental` |
`--p-color-bg-fill-brand-disabled` |
| `--p-color-bg-primary-hover` | `--p-color-bg-fill-brand-hover` |
| `--p-color-bg-primary-subdued-active` |
`--p-color-bg-surface-brand-active` |
| `--p-color-bg-primary-subdued-hover` |
`--p-color-bg-surface-brand-hover` |
| `--p-color-bg-primary-subdued-selected` |
`--p-color-bg-surface-brand-selected` |
| `--p-color-bg-primary-subdued` | `--p-color-bg-surface-brand` |
| `--p-color-bg-primary` | `--p-color-bg-fill-brand` |
| `--p-color-bg-secondary-experimental` |
`--p-color-bg-surface-tertiary` |
| `--p-color-bg-strong-active` | `--p-color-bg-fill-tertiary-active` |
| `--p-color-bg-strong-hover` | `--p-color-bg-fill-tertiary-hover` |
| `--p-color-bg-strong` | `--p-color-bg-fill-tertiary` |
| `--p-color-bg-subdued-active` |
`--p-color-bg-surface-secondary-active` |
| `--p-color-bg-subdued-hover` | `--p-color-bg-surface-secondary-hover`
|
| `--p-color-bg-subdued` | `--p-color-bg-surface-secondary` |
| `--p-color-bg-success-strong-active-experimental` |
`--p-color-bg-fill-success-active` |
| `--p-color-bg-success-strong-hover-experimental` |
`--p-color-bg-fill-success-hover` |
| `--p-color-bg-success-strong` | `--p-color-bg-fill-success` |
| `--p-color-bg-success-subdued-active` |
`--p-color-bg-surface-success-active` |
| `--p-color-bg-success-subdued-hover` |
`--p-color-bg-surface-success-hover` |
| `--p-color-bg-success-subdued` | `--p-color-bg-surface-success` |
| `--p-color-bg-success` | `--p-color-bg-fill-success-secondary` |
| `--p-color-bg-transparent-active-experimental` |
`--p-color-bg-fill-transparent-active` |
| `--p-color-bg-transparent-disabled-experimental` |
`--p-color-bg-fill-disabled` |
| `--p-color-bg-transparent-experimental` |
`--p-color-bg-surface-transparent` |
| `--p-color-bg-transparent-hover-experimental` |
`--p-color-bg-fill-transparent-hover` |
| `--p-color-bg-transparent-primary-disabled-experimental` |
`--p-color-bg-fill-brand-disabled` |
| `--p-color-bg-transparent-subdued-experimental` |
`--p-color-bg-fill-transparent-secondary` |
| `--p-color-bg-warning-strong-experimental` |
`--p-color-bg-fill-warning` |
| `--p-color-bg-warning-subdued-experimental` |
`--p-color-bg-surface-warning` |
| `--p-color-bg-warning` | `--p-color-bg-fill-warning-secondary` |
| `--p-color-bg` | `--p-color-bg-surface` |
| `--p-color-border-caution-subdued` | `--p-color-border-caution` |
| `--p-color-border-critical-active` | `--p-color-border-critical` |
| `--p-color-border-critical-hover` | `--p-color-border-critical` |
| `--p-color-border-critical-strong-experimental` |
`--p-color-border-critical-secondary` |
| `--p-color-border-critical-subdued` | `--p-color-border-critical` |
| `--p-color-border-info-subdued` | `--p-color-border-info` |
| `--p-color-border-input-active-experimental` |
`--p-color-input-border-active` |
| `--p-color-border-input-hover` | `--p-color-input-border-hover` |
| `--p-color-border-input` | `--p-color-input-border` |
| `--p-color-border-interactive-active` |
`--p-color-border-emphasis-active` |
| `--p-color-border-interactive-disabled` | `--p-color-border-disabled`
|
| `--p-color-border-interactive-focus` | `--p-color-border-focus` |
| `--p-color-border-interactive-hover` |
`--p-color-border-emphasis-hover` |
| `--p-color-border-interactive` | `--p-color-border-emphasis` |
| `--p-color-border-magic-strong` | `--p-color-border-magic-secondary` |
| `--p-color-border-primary` | `--p-color-border-brand` |
| `--p-color-border-strong` | `--p-color-border-tertiary` |
| `--p-color-border-subdued` | `--p-color-border-secondary` |
| `--p-color-border-success-subdued` | `--p-color-border-success` |
| `--p-color-icon-critical-strong-active-experimental` |
`--p-color-text-critical-active` |
| `--p-color-icon-critical-strong-experimental` |
`--p-color-text-critical` |
| `--p-color-icon-critical-strong-hover-experimental` |
`--p-color-text-critical-hover` |
| `--p-color-icon-info-strong-experimental` | `--p-color-text-info` |
| `--p-color-icon-interactive-active` | `--p-color-icon-emphasis-active`
|
| `--p-color-icon-interactive-disabled` | `--p-color-icon-disabled` |
| `--p-color-icon-interactive-hover` | `--p-color-icon-emphasis-hover` |
| `--p-color-icon-interactive` | `--p-color-icon-emphasis` |
| `--p-color-icon-primary` | `--p-color-icon-brand` |
| `--p-color-icon-subdued` | `--p-color-icon-secondary` |
| `--p-color-icon-success-strong-experimental` |
`--p-color-text-success` |
| `--p-color-icon-warning-strong-experimental` |
`--p-color-text-warning` |
| `--p-color-text-caution-strong` | `--p-color-text-caution` |
| `--p-color-text-critical-hover-experimental` |
`--p-color-text-critical-hover` |
| `--p-color-text-critical-strong` | `--p-color-text-critical` |
| `--p-color-text-info-strong` | `--p-color-text-info-on-bg-fill` |
| `--p-color-text-interactive-active` | `--p-color-text-emphasis-active`
|
| `--p-color-text-interactive-disabled` | `--p-color-text-disabled` |
| `--p-color-text-interactive-hover` | `--p-color-text-emphasis-hover` |
| `--p-color-text-interactive-inverse` | `--p-color-text-link-inverse` |
| `--p-color-text-interactive` | `--p-color-text-emphasis` |
| `--p-color-text-inverse-subdued` | `--p-color-text-inverse-secondary`
|
| `--p-color-text-magic-strong` | `--p-color-text-magic` |
| `--p-color-text-primary-hover` | `--p-color-text-brand-hover` |
| `--p-color-text-primary` | `--p-color-text-brand` |
| `--p-color-text-subdued` | `--p-color-text-secondary` |
| `--p-color-text-success-strong` | `--p-color-text-success` |
| `--p-color-text-warning-experimental` | `--p-color-text-warning` |

#### Step 2 `v12-styles-replace-custom-property-color`

| Deprecated CSS Custom Property | Replacement Value |
| ----------------------------------------- |
---------------------------------- |
| `--p-color-bg-app` | `--p-color-bg` |

#### Manual updates NOT included in this migration

| Deprecated CSS Custom Property   | Replacement Value |
| ---------------- | ----------------- |
| `--p-color-icon-on-color` | `rgba(255, 255, 255, 1)` |
| `--p-color-text-on-color` | `rgba(255, 255, 255, 1)` |
| `--p-color-bg-transparent-primary-experimental` | `rgba(0, 0, 0,
0.62)` |
| `--p-color-bg-transparent-secondary-disabled-experimental` | `rgba(0,
0, 0, 0.08)` |

---------

Co-authored-by: Laura Griffee <laura@mailzone.com>
Co-authored-by: Lo Kim <lo.kim@shopify.com>
mrcthms pushed a commit that referenced this pull request Oct 12, 2023
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.

- [#10579](#10579)
[`b5a3622ca`](b5a3622)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Created
migration to replace deprecated `color` custom properties in Polaris
v12.0.0

- [#10304](#10304)
[`eb93b7f1c`](eb93b7f)
Thanks [@lgriffee](https://github.com/lgriffee)! - Created migration to
replace deprecated `font` custom properties in polaris-react v12.0.0

- [#10506](#10506)
[`d901a07a3`](d901a07)
Thanks [@lgriffee](https://github.com/lgriffee)! - Created migration to
replace deprecated `border` custom properties in polaris-react v12.0.0

- [#10305](#10305)
[`1b36b9256`](1b36b92)
Thanks [@lgriffee](https://github.com/lgriffee)! - Created migration to
replace deprecated `space` custom properties in polaris-react v12.0.0

- [#10306](#10306)
[`dbae87e58`](dbae87e)
Thanks [@lgriffee](https://github.com/lgriffee)! - Created migration to
replace deprecated `shadow` custom properties in polaris-react v12.0.0

- [#10788](#10788)
[`82f10e830`](82f10e8)
Thanks [@mrcthms](https://github.com/mrcthms)! - Deprecated the
IndexFiltersManager component

- Updated dependencies
\[[`82f10e830`](82f10e8)]:
    -   @shopify/polaris@11.26.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
mrcthms pushed a commit that referenced this pull request Oct 12, 2023
### WHY are these changes introduced?

Fixes #10416 

### WHAT is this pull request doing?

This PR creates a migration for deprecated `color` custom properties in
v12.

> [!Important]
> Color migration needed to be run in 2 sequential steps due to
overlapping `color-bg` and `color-bg-app` token names.

#### Step 1 `v12-styles-replace-custom-property-color`

| Deprecated CSS Custom Property | Replacement Value |
| ----------------------------------------- |
---------------------------------- |
| `--p-color-avatar-background-experimental` |
`--p-color-avatar-bg-fill` |
| `--p-color-avatar-color-experimental` |
`--p-color-avatar-text-on-bg-fill` |
| `--p-color-avatar-style-five-background-experimental` |
`--p-color-avatar-five-bg-fill` |
| `--p-color-avatar-style-five-color-experimental` |
`--p-color-avatar-five-text-on-bg-fill` |
| `--p-color-avatar-style-four-background-experimental` |
`--p-color-avatar-four-bg-fill` |
| `--p-color-avatar-style-four-color-experimental` |
`--p-color-avatar-four-text-on-bg-fill` |
| `--p-color-avatar-style-one-background-experimental` |
`--p-color-avatar-one-bg-fill` |
| `--p-color-avatar-style-one-color-experimental` |
`--p-color-avatar-one-text-on-bg-fill` |
| `--p-color-avatar-style-three-background-experimental` |
`--p-color-avatar-three-bg-fill` |
| `--p-color-avatar-style-three-color-experimental` |
`--p-color-avatar-three-text-on-bg-fill` |
| `--p-color-avatar-style-two-background-experimental` |
`--p-color-avatar-two-bg-fill` |
| `--p-color-avatar-style-two-color-experimental` |
`--p-color-avatar-two-text-on-bg-fill` |
| `--p-color-bg-active` | `--p-color-bg-surface-active` |
| `--p-color-bg-app-active` | `--p-color-bg-surface-active` |
| `--p-color-bg-app-hover` | `--p-color-bg-surface-hover` |
| `--p-color-bg-app-selected` | `--p-color-bg-surface-selected` |
| `--p-color-bg-backdrop-experimental` | `--p-color-backdrop-bg` |
| `--p-color-bg-caution-strong` | `--p-color-bg-fill-caution` |
| `--p-color-bg-caution-subdued-active` |
`--p-color-bg-surface-caution-active` |
| `--p-color-bg-caution-subdued-hover` |
`--p-color-bg-surface-caution-hover` |
| `--p-color-bg-caution-subdued` | `--p-color-bg-surface-caution` |
| `--p-color-bg-caution` | `--p-color-bg-fill-caution-secondary` |
| `--p-color-bg-critical-strong-active` |
`--p-color-bg-fill-critical-active` |
| `--p-color-bg-critical-strong-hover` |
`--p-color-bg-fill-critical-hover` |
| `--p-color-bg-critical-strong` | `--p-color-bg-fill-critical` |
| `--p-color-bg-critical-subdued-active` |
`--p-color-bg-surface-critical-active` |
| `--p-color-bg-critical-subdued-hover` |
`--p-color-bg-surface-critical-hover` |
| `--p-color-bg-critical-subdued` | `--p-color-bg-surface-critical` |
| `--p-color-bg-critical` | `--p-color-bg-fill-critical-secondary` |
| `--p-color-bg-disabled` | `--p-color-bg-surface-disabled` |
| `--p-color-bg-hover` | `--p-color-bg-surface-hover` |
| `--p-color-bg-info-strong` | `--p-color-bg-fill-info` |
| `--p-color-bg-info-subdued-active` |
`--p-color-bg-surface-info-active` |
| `--p-color-bg-info-subdued-hover` | `--p-color-bg-surface-info-hover`
|
| `--p-color-bg-info-subdued` | `--p-color-bg-surface-info` |
| `--p-color-bg-info` | `--p-color-bg-fill-info-secondary` |
| `--p-color-bg-input-active-experimental` |
`--p-color-input-bg-surface-active` |
| `--p-color-bg-input-hover-experimental` |
`--p-color-input-bg-surface-hover` |
| `--p-color-bg-input` | `--p-color-input-bg-surface` |
| `--p-color-bg-inset-strong` | `--p-color-bg-fill-inverse` |
| `--p-color-bg-inset` | `--p-color-bg-fill-secondary` |
| `--p-color-bg-interactive` | `--p-color-bg-fill-brand` |
| `--p-color-bg-interactive-selected` |
`--p-color-bg-surface-brand-selected` |
| `--p-color-bg-interactive-subdued-active` |
`--p-color-bg-surface-brand-active` |
| `--p-color-bg-interactive-subdued-hover` |
`--p-color-bg-surface-brand-hover` |
| `--p-color-bg-inverse-active` | `--p-color-bg-fill-inverse-active` |
| `--p-color-bg-inverse-hover` | `--p-color-bg-fill-inverse-hover` |
| `--p-color-bg-magic-active` |
`--p-color-bg-fill-magic-secondary-active` |
| `--p-color-bg-magic-hover` | `--p-color-bg-fill-magic-secondary-hover`
|
| `--p-color-bg-magic-strong` | `--p-color-bg-fill-magic` |
| `--p-color-bg-magic-subdued-hover` |
`--p-color-bg-surface-magic-hover` |
| `--p-color-bg-magic-subdued` | `--p-color-bg-surface-magic` |
| `--p-color-bg-magic` | `--p-color-bg-fill-magic-secondary` |
| `--p-color-bg-primary-active` | `--p-color-bg-fill-brand-active` |
| `--p-color-bg-primary-disabled-experimental` |
`--p-color-bg-fill-brand-disabled` |
| `--p-color-bg-primary-hover` | `--p-color-bg-fill-brand-hover` |
| `--p-color-bg-primary-subdued-active` |
`--p-color-bg-surface-brand-active` |
| `--p-color-bg-primary-subdued-hover` |
`--p-color-bg-surface-brand-hover` |
| `--p-color-bg-primary-subdued-selected` |
`--p-color-bg-surface-brand-selected` |
| `--p-color-bg-primary-subdued` | `--p-color-bg-surface-brand` |
| `--p-color-bg-primary` | `--p-color-bg-fill-brand` |
| `--p-color-bg-secondary-experimental` |
`--p-color-bg-surface-tertiary` |
| `--p-color-bg-strong-active` | `--p-color-bg-fill-tertiary-active` |
| `--p-color-bg-strong-hover` | `--p-color-bg-fill-tertiary-hover` |
| `--p-color-bg-strong` | `--p-color-bg-fill-tertiary` |
| `--p-color-bg-subdued-active` |
`--p-color-bg-surface-secondary-active` |
| `--p-color-bg-subdued-hover` | `--p-color-bg-surface-secondary-hover`
|
| `--p-color-bg-subdued` | `--p-color-bg-surface-secondary` |
| `--p-color-bg-success-strong-active-experimental` |
`--p-color-bg-fill-success-active` |
| `--p-color-bg-success-strong-hover-experimental` |
`--p-color-bg-fill-success-hover` |
| `--p-color-bg-success-strong` | `--p-color-bg-fill-success` |
| `--p-color-bg-success-subdued-active` |
`--p-color-bg-surface-success-active` |
| `--p-color-bg-success-subdued-hover` |
`--p-color-bg-surface-success-hover` |
| `--p-color-bg-success-subdued` | `--p-color-bg-surface-success` |
| `--p-color-bg-success` | `--p-color-bg-fill-success-secondary` |
| `--p-color-bg-transparent-active-experimental` |
`--p-color-bg-fill-transparent-active` |
| `--p-color-bg-transparent-disabled-experimental` |
`--p-color-bg-fill-disabled` |
| `--p-color-bg-transparent-experimental` |
`--p-color-bg-surface-transparent` |
| `--p-color-bg-transparent-hover-experimental` |
`--p-color-bg-fill-transparent-hover` |
| `--p-color-bg-transparent-primary-disabled-experimental` |
`--p-color-bg-fill-brand-disabled` |
| `--p-color-bg-transparent-subdued-experimental` |
`--p-color-bg-fill-transparent-secondary` |
| `--p-color-bg-warning-strong-experimental` |
`--p-color-bg-fill-warning` |
| `--p-color-bg-warning-subdued-experimental` |
`--p-color-bg-surface-warning` |
| `--p-color-bg-warning` | `--p-color-bg-fill-warning-secondary` |
| `--p-color-bg` | `--p-color-bg-surface` |
| `--p-color-border-caution-subdued` | `--p-color-border-caution` |
| `--p-color-border-critical-active` | `--p-color-border-critical` |
| `--p-color-border-critical-hover` | `--p-color-border-critical` |
| `--p-color-border-critical-strong-experimental` |
`--p-color-border-critical-secondary` |
| `--p-color-border-critical-subdued` | `--p-color-border-critical` |
| `--p-color-border-info-subdued` | `--p-color-border-info` |
| `--p-color-border-input-active-experimental` |
`--p-color-input-border-active` |
| `--p-color-border-input-hover` | `--p-color-input-border-hover` |
| `--p-color-border-input` | `--p-color-input-border` |
| `--p-color-border-interactive-active` |
`--p-color-border-emphasis-active` |
| `--p-color-border-interactive-disabled` | `--p-color-border-disabled`
|
| `--p-color-border-interactive-focus` | `--p-color-border-focus` |
| `--p-color-border-interactive-hover` |
`--p-color-border-emphasis-hover` |
| `--p-color-border-interactive` | `--p-color-border-emphasis` |
| `--p-color-border-magic-strong` | `--p-color-border-magic-secondary` |
| `--p-color-border-primary` | `--p-color-border-brand` |
| `--p-color-border-strong` | `--p-color-border-tertiary` |
| `--p-color-border-subdued` | `--p-color-border-secondary` |
| `--p-color-border-success-subdued` | `--p-color-border-success` |
| `--p-color-icon-critical-strong-active-experimental` |
`--p-color-text-critical-active` |
| `--p-color-icon-critical-strong-experimental` |
`--p-color-text-critical` |
| `--p-color-icon-critical-strong-hover-experimental` |
`--p-color-text-critical-hover` |
| `--p-color-icon-info-strong-experimental` | `--p-color-text-info` |
| `--p-color-icon-interactive-active` | `--p-color-icon-emphasis-active`
|
| `--p-color-icon-interactive-disabled` | `--p-color-icon-disabled` |
| `--p-color-icon-interactive-hover` | `--p-color-icon-emphasis-hover` |
| `--p-color-icon-interactive` | `--p-color-icon-emphasis` |
| `--p-color-icon-primary` | `--p-color-icon-brand` |
| `--p-color-icon-subdued` | `--p-color-icon-secondary` |
| `--p-color-icon-success-strong-experimental` |
`--p-color-text-success` |
| `--p-color-icon-warning-strong-experimental` |
`--p-color-text-warning` |
| `--p-color-text-caution-strong` | `--p-color-text-caution` |
| `--p-color-text-critical-hover-experimental` |
`--p-color-text-critical-hover` |
| `--p-color-text-critical-strong` | `--p-color-text-critical` |
| `--p-color-text-info-strong` | `--p-color-text-info-on-bg-fill` |
| `--p-color-text-interactive-active` | `--p-color-text-emphasis-active`
|
| `--p-color-text-interactive-disabled` | `--p-color-text-disabled` |
| `--p-color-text-interactive-hover` | `--p-color-text-emphasis-hover` |
| `--p-color-text-interactive-inverse` | `--p-color-text-link-inverse` |
| `--p-color-text-interactive` | `--p-color-text-emphasis` |
| `--p-color-text-inverse-subdued` | `--p-color-text-inverse-secondary`
|
| `--p-color-text-magic-strong` | `--p-color-text-magic` |
| `--p-color-text-primary-hover` | `--p-color-text-brand-hover` |
| `--p-color-text-primary` | `--p-color-text-brand` |
| `--p-color-text-subdued` | `--p-color-text-secondary` |
| `--p-color-text-success-strong` | `--p-color-text-success` |
| `--p-color-text-warning-experimental` | `--p-color-text-warning` |

#### Step 2 `v12-styles-replace-custom-property-color`

| Deprecated CSS Custom Property | Replacement Value |
| ----------------------------------------- |
---------------------------------- |
| `--p-color-bg-app` | `--p-color-bg` |

#### Manual updates NOT included in this migration

| Deprecated CSS Custom Property   | Replacement Value |
| ---------------- | ----------------- |
| `--p-color-icon-on-color` | `rgba(255, 255, 255, 1)` |
| `--p-color-text-on-color` | `rgba(255, 255, 255, 1)` |
| `--p-color-bg-transparent-primary-experimental` | `rgba(0, 0, 0,
0.62)` |
| `--p-color-bg-transparent-secondary-disabled-experimental` | `rgba(0,
0, 0, 0.08)` |

---------

Co-authored-by: Laura Griffee <laura@mailzone.com>
Co-authored-by: Lo Kim <lo.kim@shopify.com>
mrcthms pushed a commit that referenced this pull request Oct 12, 2023
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.

- [#10579](#10579)
[`b5a3622ca`](b5a3622)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Created
migration to replace deprecated `color` custom properties in Polaris
v12.0.0

- [#10304](#10304)
[`eb93b7f1c`](eb93b7f)
Thanks [@lgriffee](https://github.com/lgriffee)! - Created migration to
replace deprecated `font` custom properties in polaris-react v12.0.0

- [#10506](#10506)
[`d901a07a3`](d901a07)
Thanks [@lgriffee](https://github.com/lgriffee)! - Created migration to
replace deprecated `border` custom properties in polaris-react v12.0.0

- [#10305](#10305)
[`1b36b9256`](1b36b92)
Thanks [@lgriffee](https://github.com/lgriffee)! - Created migration to
replace deprecated `space` custom properties in polaris-react v12.0.0

- [#10306](#10306)
[`dbae87e58`](dbae87e)
Thanks [@lgriffee](https://github.com/lgriffee)! - Created migration to
replace deprecated `shadow` custom properties in polaris-react v12.0.0

- [#10788](#10788)
[`82f10e830`](82f10e8)
Thanks [@mrcthms](https://github.com/mrcthms)! - Deprecated the
IndexFiltersManager component

- Updated dependencies
\[[`82f10e830`](82f10e8)]:
    -   @shopify/polaris@11.26.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AnnaCheba pushed a commit to AnnaCheba/polaris that referenced this pull request Apr 22, 2024
…#10579)

### WHY are these changes introduced?

Fixes Shopify#10416 

### WHAT is this pull request doing?

This PR creates a migration for deprecated `color` custom properties in
v12.

> [!Important]
> Color migration needed to be run in 2 sequential steps due to
overlapping `color-bg` and `color-bg-app` token names.

#### Step 1 `v12-styles-replace-custom-property-color`

| Deprecated CSS Custom Property | Replacement Value |
| ----------------------------------------- |
---------------------------------- |
| `--p-color-avatar-background-experimental` |
`--p-color-avatar-bg-fill` |
| `--p-color-avatar-color-experimental` |
`--p-color-avatar-text-on-bg-fill` |
| `--p-color-avatar-style-five-background-experimental` |
`--p-color-avatar-five-bg-fill` |
| `--p-color-avatar-style-five-color-experimental` |
`--p-color-avatar-five-text-on-bg-fill` |
| `--p-color-avatar-style-four-background-experimental` |
`--p-color-avatar-four-bg-fill` |
| `--p-color-avatar-style-four-color-experimental` |
`--p-color-avatar-four-text-on-bg-fill` |
| `--p-color-avatar-style-one-background-experimental` |
`--p-color-avatar-one-bg-fill` |
| `--p-color-avatar-style-one-color-experimental` |
`--p-color-avatar-one-text-on-bg-fill` |
| `--p-color-avatar-style-three-background-experimental` |
`--p-color-avatar-three-bg-fill` |
| `--p-color-avatar-style-three-color-experimental` |
`--p-color-avatar-three-text-on-bg-fill` |
| `--p-color-avatar-style-two-background-experimental` |
`--p-color-avatar-two-bg-fill` |
| `--p-color-avatar-style-two-color-experimental` |
`--p-color-avatar-two-text-on-bg-fill` |
| `--p-color-bg-active` | `--p-color-bg-surface-active` |
| `--p-color-bg-app-active` | `--p-color-bg-surface-active` |
| `--p-color-bg-app-hover` | `--p-color-bg-surface-hover` |
| `--p-color-bg-app-selected` | `--p-color-bg-surface-selected` |
| `--p-color-bg-backdrop-experimental` | `--p-color-backdrop-bg` |
| `--p-color-bg-caution-strong` | `--p-color-bg-fill-caution` |
| `--p-color-bg-caution-subdued-active` |
`--p-color-bg-surface-caution-active` |
| `--p-color-bg-caution-subdued-hover` |
`--p-color-bg-surface-caution-hover` |
| `--p-color-bg-caution-subdued` | `--p-color-bg-surface-caution` |
| `--p-color-bg-caution` | `--p-color-bg-fill-caution-secondary` |
| `--p-color-bg-critical-strong-active` |
`--p-color-bg-fill-critical-active` |
| `--p-color-bg-critical-strong-hover` |
`--p-color-bg-fill-critical-hover` |
| `--p-color-bg-critical-strong` | `--p-color-bg-fill-critical` |
| `--p-color-bg-critical-subdued-active` |
`--p-color-bg-surface-critical-active` |
| `--p-color-bg-critical-subdued-hover` |
`--p-color-bg-surface-critical-hover` |
| `--p-color-bg-critical-subdued` | `--p-color-bg-surface-critical` |
| `--p-color-bg-critical` | `--p-color-bg-fill-critical-secondary` |
| `--p-color-bg-disabled` | `--p-color-bg-surface-disabled` |
| `--p-color-bg-hover` | `--p-color-bg-surface-hover` |
| `--p-color-bg-info-strong` | `--p-color-bg-fill-info` |
| `--p-color-bg-info-subdued-active` |
`--p-color-bg-surface-info-active` |
| `--p-color-bg-info-subdued-hover` | `--p-color-bg-surface-info-hover`
|
| `--p-color-bg-info-subdued` | `--p-color-bg-surface-info` |
| `--p-color-bg-info` | `--p-color-bg-fill-info-secondary` |
| `--p-color-bg-input-active-experimental` |
`--p-color-input-bg-surface-active` |
| `--p-color-bg-input-hover-experimental` |
`--p-color-input-bg-surface-hover` |
| `--p-color-bg-input` | `--p-color-input-bg-surface` |
| `--p-color-bg-inset-strong` | `--p-color-bg-fill-inverse` |
| `--p-color-bg-inset` | `--p-color-bg-fill-secondary` |
| `--p-color-bg-interactive` | `--p-color-bg-fill-brand` |
| `--p-color-bg-interactive-selected` |
`--p-color-bg-surface-brand-selected` |
| `--p-color-bg-interactive-subdued-active` |
`--p-color-bg-surface-brand-active` |
| `--p-color-bg-interactive-subdued-hover` |
`--p-color-bg-surface-brand-hover` |
| `--p-color-bg-inverse-active` | `--p-color-bg-fill-inverse-active` |
| `--p-color-bg-inverse-hover` | `--p-color-bg-fill-inverse-hover` |
| `--p-color-bg-magic-active` |
`--p-color-bg-fill-magic-secondary-active` |
| `--p-color-bg-magic-hover` | `--p-color-bg-fill-magic-secondary-hover`
|
| `--p-color-bg-magic-strong` | `--p-color-bg-fill-magic` |
| `--p-color-bg-magic-subdued-hover` |
`--p-color-bg-surface-magic-hover` |
| `--p-color-bg-magic-subdued` | `--p-color-bg-surface-magic` |
| `--p-color-bg-magic` | `--p-color-bg-fill-magic-secondary` |
| `--p-color-bg-primary-active` | `--p-color-bg-fill-brand-active` |
| `--p-color-bg-primary-disabled-experimental` |
`--p-color-bg-fill-brand-disabled` |
| `--p-color-bg-primary-hover` | `--p-color-bg-fill-brand-hover` |
| `--p-color-bg-primary-subdued-active` |
`--p-color-bg-surface-brand-active` |
| `--p-color-bg-primary-subdued-hover` |
`--p-color-bg-surface-brand-hover` |
| `--p-color-bg-primary-subdued-selected` |
`--p-color-bg-surface-brand-selected` |
| `--p-color-bg-primary-subdued` | `--p-color-bg-surface-brand` |
| `--p-color-bg-primary` | `--p-color-bg-fill-brand` |
| `--p-color-bg-secondary-experimental` |
`--p-color-bg-surface-tertiary` |
| `--p-color-bg-strong-active` | `--p-color-bg-fill-tertiary-active` |
| `--p-color-bg-strong-hover` | `--p-color-bg-fill-tertiary-hover` |
| `--p-color-bg-strong` | `--p-color-bg-fill-tertiary` |
| `--p-color-bg-subdued-active` |
`--p-color-bg-surface-secondary-active` |
| `--p-color-bg-subdued-hover` | `--p-color-bg-surface-secondary-hover`
|
| `--p-color-bg-subdued` | `--p-color-bg-surface-secondary` |
| `--p-color-bg-success-strong-active-experimental` |
`--p-color-bg-fill-success-active` |
| `--p-color-bg-success-strong-hover-experimental` |
`--p-color-bg-fill-success-hover` |
| `--p-color-bg-success-strong` | `--p-color-bg-fill-success` |
| `--p-color-bg-success-subdued-active` |
`--p-color-bg-surface-success-active` |
| `--p-color-bg-success-subdued-hover` |
`--p-color-bg-surface-success-hover` |
| `--p-color-bg-success-subdued` | `--p-color-bg-surface-success` |
| `--p-color-bg-success` | `--p-color-bg-fill-success-secondary` |
| `--p-color-bg-transparent-active-experimental` |
`--p-color-bg-fill-transparent-active` |
| `--p-color-bg-transparent-disabled-experimental` |
`--p-color-bg-fill-disabled` |
| `--p-color-bg-transparent-experimental` |
`--p-color-bg-surface-transparent` |
| `--p-color-bg-transparent-hover-experimental` |
`--p-color-bg-fill-transparent-hover` |
| `--p-color-bg-transparent-primary-disabled-experimental` |
`--p-color-bg-fill-brand-disabled` |
| `--p-color-bg-transparent-subdued-experimental` |
`--p-color-bg-fill-transparent-secondary` |
| `--p-color-bg-warning-strong-experimental` |
`--p-color-bg-fill-warning` |
| `--p-color-bg-warning-subdued-experimental` |
`--p-color-bg-surface-warning` |
| `--p-color-bg-warning` | `--p-color-bg-fill-warning-secondary` |
| `--p-color-bg` | `--p-color-bg-surface` |
| `--p-color-border-caution-subdued` | `--p-color-border-caution` |
| `--p-color-border-critical-active` | `--p-color-border-critical` |
| `--p-color-border-critical-hover` | `--p-color-border-critical` |
| `--p-color-border-critical-strong-experimental` |
`--p-color-border-critical-secondary` |
| `--p-color-border-critical-subdued` | `--p-color-border-critical` |
| `--p-color-border-info-subdued` | `--p-color-border-info` |
| `--p-color-border-input-active-experimental` |
`--p-color-input-border-active` |
| `--p-color-border-input-hover` | `--p-color-input-border-hover` |
| `--p-color-border-input` | `--p-color-input-border` |
| `--p-color-border-interactive-active` |
`--p-color-border-emphasis-active` |
| `--p-color-border-interactive-disabled` | `--p-color-border-disabled`
|
| `--p-color-border-interactive-focus` | `--p-color-border-focus` |
| `--p-color-border-interactive-hover` |
`--p-color-border-emphasis-hover` |
| `--p-color-border-interactive` | `--p-color-border-emphasis` |
| `--p-color-border-magic-strong` | `--p-color-border-magic-secondary` |
| `--p-color-border-primary` | `--p-color-border-brand` |
| `--p-color-border-strong` | `--p-color-border-tertiary` |
| `--p-color-border-subdued` | `--p-color-border-secondary` |
| `--p-color-border-success-subdued` | `--p-color-border-success` |
| `--p-color-icon-critical-strong-active-experimental` |
`--p-color-text-critical-active` |
| `--p-color-icon-critical-strong-experimental` |
`--p-color-text-critical` |
| `--p-color-icon-critical-strong-hover-experimental` |
`--p-color-text-critical-hover` |
| `--p-color-icon-info-strong-experimental` | `--p-color-text-info` |
| `--p-color-icon-interactive-active` | `--p-color-icon-emphasis-active`
|
| `--p-color-icon-interactive-disabled` | `--p-color-icon-disabled` |
| `--p-color-icon-interactive-hover` | `--p-color-icon-emphasis-hover` |
| `--p-color-icon-interactive` | `--p-color-icon-emphasis` |
| `--p-color-icon-primary` | `--p-color-icon-brand` |
| `--p-color-icon-subdued` | `--p-color-icon-secondary` |
| `--p-color-icon-success-strong-experimental` |
`--p-color-text-success` |
| `--p-color-icon-warning-strong-experimental` |
`--p-color-text-warning` |
| `--p-color-text-caution-strong` | `--p-color-text-caution` |
| `--p-color-text-critical-hover-experimental` |
`--p-color-text-critical-hover` |
| `--p-color-text-critical-strong` | `--p-color-text-critical` |
| `--p-color-text-info-strong` | `--p-color-text-info-on-bg-fill` |
| `--p-color-text-interactive-active` | `--p-color-text-emphasis-active`
|
| `--p-color-text-interactive-disabled` | `--p-color-text-disabled` |
| `--p-color-text-interactive-hover` | `--p-color-text-emphasis-hover` |
| `--p-color-text-interactive-inverse` | `--p-color-text-link-inverse` |
| `--p-color-text-interactive` | `--p-color-text-emphasis` |
| `--p-color-text-inverse-subdued` | `--p-color-text-inverse-secondary`
|
| `--p-color-text-magic-strong` | `--p-color-text-magic` |
| `--p-color-text-primary-hover` | `--p-color-text-brand-hover` |
| `--p-color-text-primary` | `--p-color-text-brand` |
| `--p-color-text-subdued` | `--p-color-text-secondary` |
| `--p-color-text-success-strong` | `--p-color-text-success` |
| `--p-color-text-warning-experimental` | `--p-color-text-warning` |

#### Step 2 `v12-styles-replace-custom-property-color`

| Deprecated CSS Custom Property | Replacement Value |
| ----------------------------------------- |
---------------------------------- |
| `--p-color-bg-app` | `--p-color-bg` |

#### Manual updates NOT included in this migration

| Deprecated CSS Custom Property   | Replacement Value |
| ---------------- | ----------------- |
| `--p-color-icon-on-color` | `rgba(255, 255, 255, 1)` |
| `--p-color-text-on-color` | `rgba(255, 255, 255, 1)` |
| `--p-color-bg-transparent-primary-experimental` | `rgba(0, 0, 0,
0.62)` |
| `--p-color-bg-transparent-secondary-disabled-experimental` | `rgba(0,
0, 0, 0.08)` |

---------

Co-authored-by: Laura Griffee <laura@mailzone.com>
Co-authored-by: Lo Kim <lo.kim@shopify.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖Skip Changelog Causes CI to ignore changelog update check. 🤖Skip Comment Check Skip the migrator comment CI check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create color migration
3 participants