Skip to content

Commit 07e982a

Browse files
committed
compatibility with TailwindCSS 1.4.x
added form classes from Taiwind UI removed cases where prefixes were having the prefix incorrectly applied to them
1 parent b3513d4 commit 07e982a

File tree

4 files changed

+28136
-3056
lines changed

4 files changed

+28136
-3056
lines changed

extractClassNames.php

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ function extractClasses($file)
3636
'.lg:',
3737
'.xl:',
3838

39-
'.form',
39+
'.active:',
40+
'.focus:',
41+
'.focus-within:',
42+
'.hover:',
4043

4144
'.group:hover',
4245
'.group:focus',
@@ -55,18 +58,22 @@ function extractClasses($file)
5558
$stripThese = [
5659
'.',
5760
' {}',
58-
':focus:-ms-input-placeholder',
59-
':focus::-ms-input-placeholder',
60-
':focus::placeholder',
61-
'::placeholder',
62-
'::-ms-input-placeholder',
63-
':-ms-input-placeholder',
61+
' > :not(template) ~ :not(template)',
62+
6463
'::-moz-placeholder',
64+
'::-ms-check',
65+
'::-ms-expand',
66+
'::-ms-input-placeholder',
6567
'::-webkit-input-placeholder',
68+
'::placeholder',
69+
70+
':-ms-input-placeholder',
71+
':active',
72+
':after',
73+
':checked',
6674
':focus-within',
6775
':focus',
6876
':hover',
69-
' > :not(template) ~ :not(template)',
7077
];
7178

7279
foreach ($stripThese as $strip) {

0 commit comments

Comments
 (0)