maud icon indicating copy to clipboard operation
maud copied to clipboard

not an issue, just a tip for working with tailwind + maud

Open vidhanio opened this issue 1 year ago • 4 comments

i apologize for creating an issue if it is inappropriate, but i couldn't find a better place to put this tip. if you are working with tailwind + maud and are using the tailwind vscode extension, you can set the following configuration options in your settings.json to get the tailwind autocompletion and hover docs in your maud code:

{
  "tailwindCSS.includeLanguages": {
    "rust": "html"
  },
  "tailwindCSS.experimental.classRegex": [
    ["\\w+((?:\\.\\s*\\S+\\s*)*)", "\\.\"?([^.\"]+)\"?"]
  ]
}
preview screenshot

thank you for the wonderful library! :)

vidhanio avatar Nov 24 '23 20:11 vidhanio

I didn't get this to work. Are there any other settings you changed?

SenojLuap avatar Dec 06 '23 18:12 SenojLuap

I didn't get this to work. Are there any other settings you changed?

ah yes, i forgot to mention this, i just realized.

{
  "tailwindCSS.includeLanguages": {
    "rust": "html"
  }
}

vidhanio avatar Dec 06 '23 20:12 vidhanio

This was extremely helpful. Perhaps it would make sense to include this in official docs?

hadamove avatar Jan 04 '24 11:01 hadamove

For neovim users if using lspconfig:

require('lspconfig').tailwindcss.setup({ filetypes = { ..., 'rust' }, init_options = { userLanguages = { ..., rust = "html" } }, })

Wragdan avatar Jun 17 '24 07:06 Wragdan