tokyo-night / tokyo-night-vscode-theme

A clean, dark Visual Studio Code theme that celebrates the lights of Downtown Tokyo at night.
MIT License
1.74k stars 119 forks source link

Colour from custom component is the same as regular HTML tags #66

Closed Rem0ld closed 1 year ago

Rem0ld commented 1 year ago
image

As you can see on the picture when we use Login and Register components there're exactly the same colour as other html tags. It can be difficult to see what is what.

image

With this theme we can see the difference.

Could it be possible to add the same behaviour?

denys-petryniak commented 1 year ago

The following only works for React, doesn't work for Vue templates unfortunately

directly in settings.json file:


  "editor.tokenColorCustomizations": {
    "[Tokyo Night]": {
      "textMateRules": [
        {
          "name": "JSX/TSX Component tags",
          "scope": ["entity.name.tag support.class.component"],
          "settings": { "foreground": "#00fab5" }
        }
      ]
    }
  },
triplecasquette commented 1 year ago

Is it a way for punctuation.definition.tag too? I already get tags differenciated but not for begin or end closing tag color difference.

Capture d’écran 2022-12-23 à 15 14 59

As you can see the components are greenish and the html tag are blueish but the opening and closing tag stay blue...

enkia commented 1 year ago

The latest version fixes the issue with Volar.