File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,11 @@ const supportedUtilities = [
90
90
] ;
91
91
92
92
const isUtilitySupported = utility => {
93
+ // Skip utilities with `currentColor` values
94
+ if ( [ 'border-current' , 'text-current' ] . includes ( utility ) ) {
95
+ return false ;
96
+ }
97
+
93
98
for ( const supportedUtility of supportedUtilities ) {
94
99
if ( typeof supportedUtility === 'string' && supportedUtility === utility ) {
95
100
return true ;
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ tailwind('pt-12 items-center');
89
89
- [ Letter Spacing] ( https://tailwindcss.com/docs/letter-spacing )
90
90
- [ Line Height] ( https://tailwindcss.com/docs/line-height ) (only fixed line-heights)
91
91
- [ Text Align] ( https://tailwindcss.com/docs/text-align )
92
- - [ Text Color] ( https://tailwindcss.com/docs/text-color )
92
+ - [ Text Color] ( https://tailwindcss.com/docs/text-color ) (all except ` text-current ` )
93
93
- [ Text Decoration] ( https://tailwindcss.com/docs/text-decoration )
94
94
- [ Text Transform] ( https://tailwindcss.com/docs/text-transform )
95
95
@@ -100,7 +100,7 @@ tailwind('pt-12 items-center');
100
100
### Borders
101
101
102
102
- [ Border Color] ( https://tailwindcss.com/docs/border-color )
103
- - [ Border Style] ( https://tailwindcss.com/docs/border-style )
103
+ - [ Border Style] ( https://tailwindcss.com/docs/border-style ) (all except ` border-current ` )
104
104
- [ Border Width] ( https://tailwindcss.com/docs/border-width )
105
105
- [ Border Radius] ( https://tailwindcss.com/docs/border-radius )
106
106
You can’t perform that action at this time.
0 commit comments