Skip to content

Prettier Plugin Tailwind within :ui={...} #776

@UfukUstali

Description

@UfukUstali

Description

Does the prettier-plugin-tailwindcss (which sorts the tailwind classes for a consistent look) work within the :ui={...} props?

I did follow the installation guide in the NuxtUI website this is what my .vscode/settings.json looks like

{
  "files.associations": {
    "*.css": "tailwindcss"
  },
  "editor.quickSuggestions": {
    "strings": true
  },
  "tailwindCSS.experimental.configFile": "tailwind.config.ts",
  "tailwindCSS.experimental.classRegex": [
    ["ui:\\s*{([^)]*)\\s*}", "[\"'`]([^\"'`]*).*?[\"'`]"],
    ["/\\*ui\\*/\\s*{([^;]*)}", ":\\s*[\"'`]([^\"'`]*).*?[\"'`]"]
  ],
  "tailwindCSS.classAttributes": ["class", "className", "ngClass", "ui"]
}

If so it might be issue with my setup.

If not feel free to change this to a feature request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions