Skip to content

Conversation

@jonrohan
Copy link
Member

@jonrohan jonrohan commented Aug 31, 2021

This replaces all of the deprecated variables using the new stylelint plugin https://github.com/primer/stylelint-config-primer/blob/main/plugins/no-deprecated-colors.js

We should ship this with the next major version.

Stats

This replaces 173 CSS variables from v1, with 37 variables from v2! 📉

@jonrohan jonrohan requested a review from a team as a code owner August 31, 2021 23:23
@jonrohan jonrohan requested a review from simurai August 31, 2021 23:23
@changeset-bot
Copy link

changeset-bot bot commented Aug 31, 2021

🦋 Changeset detected

Latest commit: 1285a4c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/css Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@simurai simurai left a comment

Choose a reason for hiding this comment

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

I think --color-bg-overlay should map to --color-canvas-overlay instead of --color-primer-canvas-backdrop? 🤔

@jonrohan
Copy link
Member Author

I think --color-bg-overlay should map to --color-canvas-overlay instead of --color-primer-canvas-backdrop? 🤔

That's happening here, https://github.com/primer/primitives/blob/main/data/colors_v2/deprecations.json#L34 might be good to audit this before we ship everything. cc @colebemis

@jonrohan
Copy link
Member Author

jonrohan commented Sep 2, 2021

Going to re-run this in a new pr

@jonrohan jonrohan closed this Sep 2, 2021
@jonrohan jonrohan deleted the replacing_deprecated_vars branch May 19, 2022 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants