How i can change the line number color in monaco?

Viewed 68

I want to change line number color in monaco. I don't know how. Can anyone help me? My code for theme.

                monaco.editor.defineTheme('my-dark', {
                base: 'vs-dark',
                inherit: true,
                rules: [
                    { token: 'global', foreground: '84d6f7', fontStyle: "bold" },
                    { token: 'keyword', foreground: 'f86d7c', fontStyle: "bold" },
                    { token: 'comment', foreground: '666666' },
                    { token: 'number', foreground: 'fcc600' },
                    { token: 'string', foreground: 'ffc43a' },
                ],
                colors: {
                    "editor.background": '#191919'
                }
            });
1 Answers

I think you are looking for the editorLineNumber.foreground color key.

Related