Skip to content

Q: How to edit Svelte for VS Code to refine CSS diagnostic messages for tailwind support? #461

@paul42

Description

@paul42

I'm using tailwind with svelte, and I'd like to improve how it handles css error messages. How can I make a pull request to vs-code extension Svelte for VS Code to suppress this error, or allow for tailwind-style multiple class entries like below?
Is this eslint based?

Example CSS causing error is last line with @apply

h1 {
    color: #ff3e00;
    text-transform: uppercase;
    font-size: 4em;
    font-weight: 100;
    @apply bg-black text-white;
  }

current workaround to avoid red squiggly lines is to go into the extension settings and set:

{
    "svelte.plugin.css.diagnostics.enable": true
}

Thanks in advance. I love the plugin so I'd love to be able to help out if possible :D

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationquestionA user question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions