-
Notifications
You must be signed in to change notification settings - Fork 1
/
solarized.py
47 lines (45 loc) · 1.44 KB
/
solarized.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from pygments.style import Style
from pygments.token import Keyword, Name, Comment, String, Error, \
Number, Operator, Generic, Whitespace, Punctuation, Other, Literal, Text
BASE0 = '#839496'
BASE1 = '#93a1a1'
BASE2 = '#eee8d5'
BASE3 = '#fdf6e3'
BASE00 = '#657b83'
BASE01 = '#586e75'
BASE02 = '#073642'
BASE03 = '#002b36'
YELLOW = '#b58900'
ORANGE = '#cb4b16'
RED = '#dc322f'
MAGENTA = '#d33682'
VIOLET = '#6c71c4'
BLUE = '#268bd2'
CYAN = '#2aa198'
GREEN = '#859900'
class SolarizedStyle(Style):
""" Pygments version of the solarized theme. """
background_color = BASE2
styles = {
Text : 'bg: %s %s' % (BASE2, BASE01),
Keyword : GREEN,
Keyword.Constant : 'bold',
#Keyword.Declaration :
Keyword.Namespace : RED + ' bold',
#Keyword.Pseudo :
#Keyword.Reserved :
Keyword.Type : 'bold',
Name : BASE01,
#Name.Attribute :
Name.Builtin : ORANGE,
#Name.Builtin.Pseudo :
Name.Class : ORANGE,
Name.Tag : 'bold',
Literal : CYAN,
#String :
Number : 'bold',
#Operator :
Operator.Word : GREEN,
Comment : YELLOW + ' italic',
Generic : MAGENTA,
}