Created
June 2, 2021 12:22
-
-
Save dac09/b91460de84490bab11e83524d33c0d44 to your computer and use it in GitHub Desktop.
Tailwind Classname Autocompletion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
"tailwindCSS.experimental.classRegex": [ | |
"tw`([^`]*)", // tw`...` | |
"tw=\"([^\"]*)", // <div tw="..." /> | |
"tw={\"([^\"}]*)", // <div tw={"..."} /> | |
"tw\\.\\w+`([^`]*)", // tw.xxx`...` | |
"tw\\(.*?\\)`([^`]*)", // tw(Component)`...` | |
".*ClassName=\"([^\"]*)", // <div activeClassName="..." /> | |
["class[nN]ames\\(([^)]*)\\)", "'([^']*)'"] // classNames('..', '..') | |
], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment