-
Notifications
You must be signed in to change notification settings - Fork 293
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
[REFACTORING] Updating the Tailwind configuration file with a new dynamic opacity placeholder for colors #851
[REFACTORING] Updating the Tailwind configuration file with a new dynamic opacity placeholder for colors #851
Conversation
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.
Hi, thanks for this update! I like this format more than the previous one 👍
Can you add a changeset to this PR (make sure the project is set to "demo-store") and check the change request comment below?
primary: 'rgba(var(--color-primary), <alpha-value>)', | ||
contrast: 'rgba(var(--color-contrast), <alpha-value>)', | ||
notice: 'rgba(var(--color-accent), <alpha-value>)', | ||
shopPay: 'rgba(var(--color-shop-pay), <alpha-value>)', |
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.
rgba
seems to be considered legacy and it doesn't work for me in the current version of Tailwind. It works with the modern rgb
, though.
primary: 'rgba(var(--color-primary), <alpha-value>)', | |
contrast: 'rgba(var(--color-contrast), <alpha-value>)', | |
notice: 'rgba(var(--color-accent), <alpha-value>)', | |
shopPay: 'rgba(var(--color-shop-pay), <alpha-value>)', | |
primary: 'rgb(var(--color-primary) / <alpha-value>)', | |
contrast: 'rgb(var(--color-contrast) / <alpha-value>)', | |
notice: 'rgb(var(--color-accent) / <alpha-value>)', | |
shopPay: 'rgb(var(--color-shop-pay) / <alpha-value>)', |
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.
Great, and thanks just made the requested changes.
WHY are these changes introduced?
These changes are being implemented to update the Tailwind configuration to include the new opacity color modifier, the special
<alpha-value>
placeholder. This will involve removing the old implementation with thewithOpacity
function. The new implementation will allow for greater customization and flexibility in the config. Additionally, this change will ensure that the project remains up-to-date with the latest tailwind standards.WHAT is this pull request doing?
This PR remove the old implementation with the
withOpacity
function in thetailwind.config.js
file and replaces it with the the new<alpha-value>
placeholder.HOW to test your changes?
tailwind.config.js
is valid during development in the demo store template.Post-merge steps
Checklist