Skip to content

Instantly share code, notes, and snippets.

@jakewtaylor
Created November 3, 2023 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakewtaylor/2fefc1453307d137d6c77314dd4374d0 to your computer and use it in GitHub Desktop.
Save jakewtaylor/2fefc1453307d137d6c77314dd4374d0 to your computer and use it in GitHub Desktop.
// Ensures tailwind intellisense works in non-standard places that we want
"tailwindCSS.experimental.classRegex": [
// for usages like: clsx('bg-accent')
["clsx\\(([^)]*)\\)", "(?:'|\")([^'\"]*)(?:'|\")"],
// within our Theme definition objects
[": Theme<[^>]*>([^;]*)", ":\\s*?[\"'`]([^\"'`]*).*?,?"]
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment