-
Notifications
You must be signed in to change notification settings - Fork 8
/
gruvbox.py
53 lines (49 loc) · 1.99 KB
/
gruvbox.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
50
51
52
53
# -*- coding: utf-8 -*-
"""
Gruvbox Colorscheme
~~~~~~~~~~~~~~~~~
A retro groove color scheme for Vim.
https://github.com/morhetz/gruvbox
© 2012-2015 Pavel Pertsev
Adapted for Pygments by Dave Yarwood
Converted by Vim Colorscheme Converter
https://github.com/honza/vim2pygments
"""
from pygments.style import Style
from pygments.token import Token, Comment, Name, Keyword, Generic, Number, Operator, String
class GruvboxStyle(Style):
""" Retro groove color scheme for Vim by Github: @morhetz """
background_color = '#282828'
styles = {
Comment.Preproc: 'noinherit #8ec07c',
Comment: '#928374 italic',
Generic.Deleted: 'noinherit #282828 bg:#fb4934',
Generic.Emph: '#83a598 underline',
Generic.Error: 'bg:#fb4934 bold',
Generic.Heading: '#b8bb26 bold',
Generic.Inserted: 'noinherit #282828 bg:#b8bb26',
Generic.Output: 'noinherit #504945',
Generic.Prompt: '#ebdbb2',
Generic.Strong: '#ebdbb2',
Generic.Subheading: '#b8bb26 bold',
Generic.Traceback: 'bg:#fb4934 bold',
Generic: '#ebdbb2',
Keyword.Type: 'noinherit #fabd2f',
Keyword: 'noinherit #fe8019',
Name.Attribute: '#b8bb26 bold',
Name.Builtin: '#fabd2f',
Name.Constant: 'noinherit #d3869b',
Name.Entity: 'noinherit #fabd2f',
Name.Exception: 'noinherit #fb4934',
Name.Function: '#fabd2f',
Name.Label: 'noinherit #fb4934',
Name.Tag: 'noinherit #fb4934',
Name.Variable: 'noinherit #ebdbb2',
Name: '#ebdbb2',
Number.Float: 'noinherit #d3869b',
Number: 'noinherit #d3869b',
Operator: '#fe8019',
String.Symbol: '#83a598',
String: 'noinherit #b8bb26',
Token: 'noinherit #ebdbb2 bg:#282828',
}