Skip to content

Migration from v3 to v4: Handling border-opacity Issue #16330

Answered by wongjn
ocherkashchenko asked this question in Help
Discussion options

You must be logged in to vote

Indeed, border-opacity-* classes have been removed. Try

@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 @apply:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ocherkashchenko
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants