SublimeANSI icon indicating copy to clipboard operation
SublimeANSI copied to clipboard

Light theme

Open zkendall opened this issue 6 years ago • 3 comments

Is there a light theme that would work with this?

zkendall avatar May 09 '19 21:05 zkendall

I think it can be done by modifying

  • (background) color in https://github.com/aziz/SublimeANSI/blob/645bd39406b9c1be393d750b3911beb6951658fc/ansi.sublime-settings#L30
  • background and foreground in https://github.com/aziz/SublimeANSI/blob/645bd39406b9c1be393d750b3911beb6951658fc/ansi.sublime-settings#L49-L58

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

jfcherng avatar Sep 13 '19 09:09 jfcherng

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

jmoraleda avatar Sep 23 '22 18:09 jmoraleda

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.

jfcherng avatar Sep 23 '22 18:09 jfcherng