brijeshb42 / monaco-themes

Themes to be used and generated with monaco-editor in web browser
https://editor.bitwiser.in/
MIT License
435 stars 65 forks source link

[Question] Is the VSCode Dark+ theme compatible with the Monaco Themes? #4

Closed dnmd closed 4 years ago

dnmd commented 4 years ago

First of, thanks for providing these themes! Great job! I've got a question though, whether or not;

a) it is possible to "port" VSCode its Dark+ theme? b) if so, do you have any recommendations / pointers in doing so?

Thanks in advance, and again, thanks!

brijeshb42 commented 4 years ago

It won't be directly compatible. You'll have to create a function to transform one theme to the other. vscode theme json has 2 main attributes - tokenColors and colors. monaco's theme has rules and colors. So the function will have to convert data in tokenColors to rules. colors attributes can be used directly without any tranformation.

Reference - vscode them json - https://github.com/microsoft/vscode/blob/master/extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json monaco theme json - https://github.com/brijeshb42/monaco-themes/blob/master/themes/Blackboard.json

schickling commented 3 years ago

You'll have to create a function to transform one theme to the other.

@brijeshb42 are you aware of someone already having written this function? (Also see my question on SO.)