Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Doc. for Monaco themes implementation + make a theme loader + user control #28

Open
3 tasks
JulianCataldo opened this issue Sep 11, 2022 · 0 comments
Open
3 tasks
Labels
documentation Improvements or additions to documentation draft enhancement New feature or request gui

Comments

@JulianCataldo
Copy link
Owner

This can be documented AND automated (?).

Goal

Input

A JSON Monaco theme

{
  "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"
    },

// …

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

  • Integration process (for dev's)
  • Generic loader (for app)
  • User control
@JulianCataldo JulianCataldo added documentation Improvements or additions to documentation enhancement New feature or request gui draft labels Sep 11, 2022
@JulianCataldo JulianCataldo changed the title Document Monaco themes implementation + make a theme loader + user control Doc. for Monaco themes implementation + make a theme loader + user control Sep 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation draft enhancement New feature or request gui
Projects
None yet
Development

No branches or pull requests

1 participant