Skip to content

Conversation

crswll
Copy link
Contributor

@crswll crswll commented Aug 10, 2025

Summary

In Tailwind 3 the border colors were able to be used with divide utilities. I made it so that's true for Tailwind 4.

Test plan

Just used pnpm run tdd and making it fails then making sure it passes.

@crswll crswll requested a review from a team as a code owner August 10, 2025 20:18
@rozsazoltan
Copy link
Contributor

Until then, you can implement the custom namespace for your own projects:

@theme {
  --border-color-mybordercolor: #6495ED;
}

@utility divide-* {
  :where(& > :not(:last-child)) {
    border-color: --value(--border-color-*);
  }
}

@crswll crswll force-pushed the include-border-color-with-divide-color branch from 968b6de to 24b2303 Compare August 12, 2025 23:44
@RobinMalfait RobinMalfait enabled auto-merge (squash) August 13, 2025 14:34
Copy link
Member

@RobinMalfait RobinMalfait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@RobinMalfait RobinMalfait merged commit 1855d68 into tailwindlabs:main Aug 13, 2025
7 checks passed
@crswll
Copy link
Contributor Author

crswll commented Aug 13, 2025

NO PROB ROB(IN).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants