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

Customizing tag colours #67

Closed jamesthomsondev closed 1 year ago

jamesthomsondev commented 1 year ago

I notice the element tag colours have changed. I'm not a fan and would like to revert it back to the original. I see here is the change: https://github.com/enkia/tokyo-night-vscode-theme/blob/ab23a44d8984583727943d1c3637924da6eab66c/themes/tokyo-night-storm-color-theme.json#L693

How can I customise this myself?

jamesthomsondev commented 1 year ago

If anyone comes across this, figured it out as adding this to your settings.json

"editor.tokenColorCustomizations": {
    "[Tokyo Night Storm]": {
      "textMateRules": [
        {
          "name": "Tag - Custom",
          "scope": [
            "entity.name.tag support.class.component",
            "meta.tag.custom entity.name.tag",
            "meta.tag"
          ],
          "settings": {
            "foreground": "#de5971"
          }
        }
      ]
    }
  },
enkia commented 1 year ago

Hey all, I reverted this color change I made to the dark themes. I had temporary insanity!

@jamesthomsondev Thanks, people who want them more obvious will appreciate that snippet.

AshConnolly commented 1 year ago

Thank you @enkia for reverting! Releasing your revert whilst I was implementing my own revert (same as @jamesthomsondev code above) really had my confused! 😄

jamesthomsondev commented 1 year ago

@enkia Didn't mean to make you doubt your decision, I just found it jarring when my element tags were very bright all of a sudden 😄 Really appreciate the work you've put into this theme, it's by far my favourite 🙏

enkia commented 1 year ago

Haha, I was already doubting my decision because the change started to annoy me too.

AshConnolly commented 1 year ago

Yeh echoing @jamesthomsondev, thanks so much @enkia, this Storm variant is the best theme I've seen in years! 😄