Migration from v3 to v4: Handling border-opacity Issue #16330
-
| 
         Old code: Converted to: Problem: It seems that border-opacity-* is not recognized in the new @Utility layer or context.  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
| 
         Indeed,  @utility divider-t {
  border-top: 1px;
  border-color: --alpha(var(--color-grey-70) / 50%);
  box-shadow: inset 0 1px 0 0 #fff;
}As an aside, Adam Wathan (creator of Tailwind) does seem to advocate avoiding   | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         You can try this:  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         https://tailwindcss.com/docs/upgrade-guide#removed-deprecated-utilities  | 
  
Beta Was this translation helpful? Give feedback.
Indeed,
border-opacity-*classes have been removed. TryAs an aside, Adam Wathan (creator of Tailwind) does seem to advocate avoiding
@apply: