6 Solarized by Camil Staps |
6 Solarized by Camil Staps |
7 |
7 |
8 A Pygments style for the Solarized themes (licensed under MIT). |
8 A Pygments style for the Solarized themes (licensed under MIT). |
9 See: https://github.com/altercation/solarized |
9 See: https://github.com/altercation/solarized |
10 |
10 |
11 :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. |
11 :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS. |
12 :license: BSD, see LICENSE for details. |
12 :license: BSD, see LICENSE for details. |
13 """ |
13 """ |
14 |
14 |
15 from pygments.style import Style |
15 from pygments.style import Style |
16 from pygments.token import Comment, Error, Generic, Keyword, Name, Number, \ |
16 from pygments.token import Comment, Error, Generic, Keyword, Name, Number, \ |
116 """ |
116 """ |
117 |
117 |
118 styles = make_style(DARK_COLORS) |
118 styles = make_style(DARK_COLORS) |
119 background_color = DARK_COLORS['base03'] |
119 background_color = DARK_COLORS['base03'] |
120 highlight_color = DARK_COLORS['base02'] |
120 highlight_color = DARK_COLORS['base02'] |
|
121 line_number_color = DARK_COLORS['base01'] |
|
122 line_number_background_color = DARK_COLORS['base02'] |
121 |
123 |
122 |
124 |
123 class SolarizedLightStyle(SolarizedDarkStyle): |
125 class SolarizedLightStyle(SolarizedDarkStyle): |
124 """ |
126 """ |
125 The solarized style, light. |
127 The solarized style, light. |
126 """ |
128 """ |
127 |
129 |
128 styles = make_style(LIGHT_COLORS) |
130 styles = make_style(LIGHT_COLORS) |
129 background_color = LIGHT_COLORS['base03'] |
131 background_color = LIGHT_COLORS['base03'] |
130 highlight_color = LIGHT_COLORS['base02'] |
132 highlight_color = LIGHT_COLORS['base02'] |
|
133 line_number_color = LIGHT_COLORS['base01'] |
|
134 line_number_background_color = LIGHT_COLORS['base02'] |