-
In @layer utilities {
.my-class {
background: theme('colors.purple.500/50');
}
} But output this: .my-class {
color: rgb(168 85 247 / 50);
} Excepted behaviour is: .my-class {
color: rgba(168, 85, 247, .5);
} |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
May 29, 2024
Replies: 1 comment 7 replies
-
If you are using a PostCSS build pipeline, you could consider having a PostCSS plugin that runs after Tailwind that converts the |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you are referring to the code in your initial post, you have used incorrect syntax. You may have meant
theme('colors.purple.500/50%')
ortheme('colors.purple.500/0.5')
. As per the documentation: