Skip to content

Instantly share code, notes, and snippets.

@navin-moorthy
Created June 10, 2022 14:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save navin-moorthy/c22666c5952566b0d51c39ce54b12e0f to your computer and use it in GitHub Desktop.
Save navin-moorthy/c22666c5952566b0d51c39ce54b12e0f to your computer and use it in GitHub Desktop.
Tailwind Intellisense for twrnc
{
// Add the below code to vscode user settings.json
"tailwindCSS.experimental.classRegex": [
["tailwind.style\\(([^)]*)\\)", "\"([^\"]*)\""],
["tailwind.getColor\\(([^)]*)\\)", "\"([^\"]*)\""],
],
"tailwindCSS.experimental.configFile": "your/path/to/tailwind.config.js",
}
@priyanshusaini105
Copy link

your/path/to/tailwind.config.js"
too what should I do replace this if my tailwind.config.js is in root directory of my project

@navin-moorthy
Copy link
Author

your/path/to/tailwind.config.js"
too what should I do replace this if my tailwind.config.js is in root directory of my project

You don’t have to provide that line if it’s in the root, it’s referred by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment