robb0wen / synthwave-vscode

Synthwave inspired colour theme for VS Code 🌅🕶
MIT License
5.15k stars 1.18k forks source link

Where is the color defined for tokens with scopes with undefined colors? #250

Open chtenb opened 2 years ago

chtenb commented 2 years ago

They appear grey with #BBBBBB, but no color in the theme definition matches it. Where does it come from?

image

gregdolley commented 1 year ago

Have you tried turning on semantic highlighting and using the rule called "other"? In your settings.json, it would look like this:

{
  "editor.semanticTokenColorCustomizations": {
    "enabled": true,
    "rules": {
      "other": {
        "foreground": "#00FF00",
        "bold": false,
        "italic": false,
        "underline": false,
        "strikethrough": false
      }
    }
  }
}

If that doesn't work, then you have to override the textmate scope of "text.songtxt", which would look like this:

  {
  "editor.tokenColorCustomizations": {
      "textMateRules": [
        {
          "scope": ["text.songtxt"],
          "settings": {
            "foreground": "#00FF00",
            "fontStyle": ""
          }
        }
      ]
    }
  }