Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSX-tags are white and textMateRules doesn't apply #231

Closed
Jose-DallAsta-008 opened this issue Jan 3, 2023 · 3 comments
Closed

JSX-tags are white and textMateRules doesn't apply #231

Jose-DallAsta-008 opened this issue Jan 3, 2023 · 3 comments

Comments

@Jose-DallAsta-008
Copy link

Custom created JSX-TAGS are not with color
the problem is: they are white

Already tried changing the textmate scopes detailed in the printscreen
The language is typescript with react, on nextjs framework.

image

What i already tried:

  "editor.tokenColorCustomizations": {
    "[Dracula At Night]": {
      "textMateRules": [
        {
          "name": "React component name colorization",
          "scope": [
            "support.class.component.tsx",
            "entity.name.tag.tsx",
            "meta.tag.tsx",
            "meta.jsx.children.tsx",
            "meta.tag.without-attributes.tsx",
            "meta.block.tsx",
            "meta.function.expression.tsx",
            "meta.export.default.tsx",
            "source.tsx",
            "entity.name.tag",
            "support.class.component.tsx"
          ],
          "settings": {
            "foreground": "#991818"
            // "foreground": "#ff0000"
          }
        }
      ]
    },
    "comments": "#21cc69"
  },

Output of code above:
image

Other themes work fine and the tag has color, but dracula at night is just better, could someone help me out into adding color to it?
Thanks in advance

@annetters
Copy link

Bump for this. Also saw that "const" was pink in the theme preview image but white in real life.

@dsifford
Copy link
Member

dsifford commented Oct 4, 2023

@Jose-DallAsta-008 I'm sorry for the delay here. But did you say the theme you are using is "Dracula at night"? If so, this is not that theme.

@luxonauta
Copy link
Member

(#253)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants