zed icon indicating copy to clipboard operation
zed copied to clipboard

Tailwind classes not getting recognized in scss files

Open sameer1612 opened this issue 1 year ago • 3 comments

Summary:

Description

No syntax highlighting and LSP support while using tailwind in css/scss files using @apply. They do work fine in vscode or neovim.

Screenshots/ExamplesNo syntax highlighting and LSP support while using tailwind in css/scss files using @apply. image

They do work fine in vscode or neovim. image

For reference this is an angular project and tailwind completions work fine in html files. image

Not working in stylesheet: image

Works in html files: image

sameer1612 avatar Jul 05 '24 03:07 sameer1612

Any news on this? This is a pretty big stopper for many of us to switch to fantastic Zed editor completely.

micobarac avatar Dec 14 '24 14:12 micobarac

@sameer1612 or @micobarac Can you provide a self-contained set of steps necessary to reproduce the issue. I have an empty folder open in Zed and get me to seeing the issues you are seeing.

notpeter avatar Jan 30 '25 17:01 notpeter

@sameer1612

  "file_types": {
    "CSS": ["scss"]
  },

add this to settings.json

r8bywork avatar May 14 '25 08:05 r8bywork

@sameer1612

  "file_types": {
    "CSS": ["scss"]
  },

add this to settings.json

This works! Thanks @r8bywork! I can finally enjoy using zed now 😁

MiggyJ avatar Jun 10 '25 08:06 MiggyJ

There is also a community extension which adds syntax highlighting for scss:

  • https://github.com/bajrangCoder/zed-scss

notpeter avatar Jun 10 '25 13:06 notpeter