-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat(colors)!: prefix all color variables with --post- #361
Conversation
This changes is an overhaul of colors and how they are presented to the developer. Colors defined by the Post now have the prefix --post, variables defined by bootstrap have the prefix --bs. The code has been generally updated to use post variables wherever variables were used already. Many components don't use variables and have yet to be migrated. The idea of contrast colors is, that they always provide the best contrast on their current background - provided the bg-* classes were used to set said background.
🦋 Changeset detectedLatest commit: 5ee031b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
🚀 Preview environment ready: https://preview-361--swisspost-web-frontend.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm done for now, but I will check again if you replaced a fulltone gray with a white/block opaque value. Because meybe I missed one in the beginning...
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
This changes is an overhaul of colors and how they are presented to the developer. Colors defined by the Post now have the prefix --post, variables defined by bootstrap have the prefix --bs. The code has been generally updated to use post variables wherever variables were used already. Many components don't use variables and have yet to be migrated.
The idea of contrast colors is, that they always provide the best contrast on their current background - provided the bg-* classes were used to set said background.