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

Light theme #59

Open
zkendall opened this issue May 9, 2019 · 3 comments
Open

Light theme #59

zkendall opened this issue May 9, 2019 · 3 comments

Comments

@zkendall
Copy link

zkendall commented May 9, 2019

Is there a light theme that would work with this?

@jfcherng
Copy link
Collaborator

jfcherng commented Sep 13, 2019

I think it can be done by modifying

  • (background) color in
    {"scope": "", "code": "(?<!\\x1b\\[0;4[01234567]m)(?<!\\x1b\\[4[01234567]m)", "color": "#010000"},
  • background and foreground in
    "GENERAL": {
    "background": "#000000",
    "caret": "#FF5E00",
    "foreground": "#F2F2F2",
    "gutter": "#000000",
    "gutterForeground": "#FFFFFF55",
    "invisibles": "#FFFFFF00",
    "lineHighlight": "#FFFFFF00",
    "selection": "#FFFFFF33"
    },

Example

{
  "ANSI_BG": [
      {"scope": "", "code": "(?<!\\x1b\\[0;4[01234567]m)(?<!\\x1b\\[4[01234567]m)", "color": "#fffffe"},
      // followings are just copied from default settings
      {"scope": "_bg_black", "code": "\\x1b\\[(0{,2};)?40m", "color": "#222222"},
      {"scope": "_bg_black_bright", "code": "\\x1b\\[(0{,2};)?100m", "color": "#686868"},
      {"scope": "_bg_red", "code": "\\x1b\\[(0{,2};)?41m", "color": "#c71e12"},
      {"scope": "_bg_red_bright", "code": "\\x1b\\[(0{,2};)?101m", "color": "#ff6f6b"},
      {"scope": "_bg_green", "code": "\\x1b\\[(0{,2};)?42m", "color": "#00c120"},
      {"scope": "_bg_green_bright", "code": "\\x1b\\[(0{,2};)?102m", "color": "#67f86f"},
      {"scope": "_bg_yellow", "code": "\\x1b\\[(0{,2};)?43m", "color": "#c7c327"},
      {"scope": "_bg_yellow_bright", "code": "\\x1b\\[(0{,2};)?103m", "color": "#fffa72"},
      {"scope": "_bg_blue", "code": "\\x1b\\[(0{,2};)?44m", "color": "#0a2fc4"},
      {"scope": "_bg_blue_bright", "code": "\\x1b\\[(0{,2};)?104m", "color": "#6a76fc"},
      {"scope": "_bg_magenta", "code": "\\x1b\\[(0{,2};)?45m", "color": "#c839c5"},
      {"scope": "_bg_magenta_bright", "code": "\\x1b\\[(0{,2};)?105m", "color": "#ff7cfd"},
      {"scope": "_bg_cyan", "code": "\\x1b\\[(0{,2};)?46m", "color": "#01c5c6"},
      {"scope": "_bg_cyan_bright", "code": "\\x1b\\[(0{,2};)?106m", "color": "#68fdfe"},
      {"scope": "_bg_white", "code": "\\x1b\\[(0{,2};)?47m", "color": "#c7c7c7"},
      {"scope": "_bg_white_bright", "code": "\\x1b\\[(0{,2};)?107m", "color": "#ffffff"},
      {"scope": "_bold", "code": "\\x1b\\[(0{,2};)?1m", "color": "#010000", "font_style": "bold"}
  ],
  "GENERAL":  {
    "background": "#F2F2F2",
    "foreground": "#000000",
  },
}

@jmoraleda
Copy link

I have not been able to get a light theme to work. The issue is that the dark default foreground color is being ignored.

@jfcherng
Copy link
Collaborator

I have not been able to get a light theme to work. The issue is that the dark default foreground color is being ignored.

I would recommend the Terminius plugin nowadays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants