This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Description
This can be documented AND automated (?).
Goal
Input
A JSON Monaco theme
Output
Its CSS variables (from browser)
:root {
--vscode-foreground: #cccccc;
--vscode-errorForeground: #f48771;
--vscode-descriptionForeground: rgba(204, 204, 204, 0.7);
--vscode-icon-foreground: #c5c5c5;
--vscode-focusBorder: #007fd4;
--vscode-textSeparator-foreground: rgba(255, 255, 255, 0.18);
--vscode-textLink-foreground: #3794ff;
--vscode-textLink-activeForeground: #3794ff;
--vscode-textPreformat-foreground: #d7ba7d;
// …
Features
Tasks
{ "base": "vs-dark", "inherit": true, "rules": [ { "background": "282a36", "token": "" }, { "foreground": "6272a4", "token": "comment" }, { "foreground": "f1fa8c", "token": "string" }, { "foreground": "bd93f9", "token": "constant.numeric" }, { "foreground": "bd93f9", "token": "constant.language" }, // …