forked from esc/best-practices-talk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
solarized.py
49 lines (46 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
48
49
# solarized.py
# https://bitbucket.org/john2x/solarized-pygment/src/b9455fbdc902/solarized.py
# John Louis del Rosario
from pygments.style import Style
from pygments.token import *
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):
background_color = BASE3
styles = {
Text : 'bg: %s %s' % (BASE3, BASE01),
Keyword : GREEN,
Keyword.Constant : 'bold',
#Keyword.Declaration :
Keyword.Namespace : RED + ' bold',
#Keyword.Pseudo :
#Keyword.Reserved :
Keyword.Type : 'bold',
Name : BLUE,
#Name.Attribute :
Name.Builtin : ORANGE,
#Name.Builtin.Pseudo :
Name.Class : ORANGE,
Name.Tag : 'bold',
Literal : CYAN,
#String :
Number : 'bold',
#Operator :
Operator.Word : GREEN,
Comment : BASE1 + ' italic',
Generic : MAGENTA,
}