Replies: 1 comment
-
This is from the docs: Looks like we will be able to use the |
Beta Was this translation helpful? Give feedback.
-
This is from the docs: Looks like we will be able to use the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I see deprecation of classes like
bg-opacity-50
instead to usebg-color/50
but how then I should add opacity to a component that alrady has background specified. For example I have a blue button, I import in to a different place and add opacity on top as a separate classbg-opacity-50
, I will not be able to do so.Another example, I have conditional opacity like this:
If opacity classes are deprecated I need to repeat
bg-gray-900/*
3 times (bg-gray-900/100
,bg-gray-900/0
,bg-gray-900/50
), which is less cleaner code,Also will not allow to overwrite color if I import this button like
!bg-blue-900
for example, it will break all opacity states.What is the point of deprecating opacity classes? This just makes more problems that solves anything.
Beta Was this translation helpful? Give feedback.
All reactions