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

How to convert vscode theme json file to monaco editor theme #675

Closed
powerumc opened this issue Dec 20, 2017 · 2 comments
Closed

How to convert vscode theme json file to monaco editor theme #675

powerumc opened this issue Dec 20, 2017 · 2 comments

Comments

@powerumc
Copy link

monaco-editor version: 0.10.
Browser: Chrome lastest
OS: Sierra

VSCode theme file is json file type.
Json file content format is not equals json format of monaco editor.

How to convert to monaco editor theme?

@alexdima
Copy link
Member

alexdima commented Feb 5, 2018

They are not compatible. VSCode themes work with TM grammars. The monaco editor does not execute TM grammars, so the tokens produced by the standalone editor are not the same as the ones produced by a TM grammar. Therefore, there is no automatic way to transform one to another, short of picking colors from one, and adopting to the other....

@brijeshb42
Copy link
Contributor

@powerumc You can use https://bitwiser.in/monaco-themes/ to generate theme for monaco from tmTheme files that picks colors from theme files and generates a json to be used directly with monaco.editor.defineTheme

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants