Skip to content

Commit 3500df1

Browse files
authored
add tailwind class sorting on cn() (#249)
This change adds tailwind class sorting for classes used inline with the cn() function. It's an improvement, but a more complex regex is required for multiline cn() and cva() - those aren't sorted yet.
1 parent 7ed7eb8 commit 3500df1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@
33
"@remix-run/server-runtime",
44
"@remix-run/router",
55
"react-router"
6-
]
6+
],
7+
"tailwindCSS.experimental.classRegex": [
8+
[
9+
"cn\\(([^)]*)\\)"
10+
]
11+
]
712
}

0 commit comments

Comments
 (0)