Documentation menu

Tailwind IntelliSense

Configure the Tailwind CSS language server to recognize classes passed to htmgo's Go helpers.

JetBrains IDEs

In GoLand, open Settings → Languages & Frameworks → Style Sheets → Tailwind CSS. Merge these options into the existing Tailwind language-server configuration.

Copy
{
  "includeLanguages": {
    "go": "html"
  },
  "experimental": {
    "configFile": null,
    "classRegex": [
      ["Class\\(([^)]*)\\)", "[\"`]([^\"`]*)[\"`]"],
      ["ClassX\\(([^)]*)\\)", "[\"`]([^\"`]*)[\"`]"],
      ["ClassIf\\(([^)]*)\\)", "[\"`]([^\"`]*)[\"`]"]
    ]
  }
}

Visual Studio Code

Merge these options into settings.json.

Copy
{
  "tailwindCSS.includeLanguages": {
    "go": "html"
  },
  "tailwindCSS.experimental.classRegex": [
    ["Class\\(([^)]*)\\)", "[\"`]([^\"`]*)[\"`]"],
    ["ClassX\\(([^)]*)\\)", "[\"`]([^\"`]*)[\"`]"],
    ["ClassIf\\(([^)]*)\\)", "[\"`]([^\"`]*)[\"`]"]
  ]
}