Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
gruvbox.py119 linesDownload Raw Back to styles
1"""2    pygments.styles.gruvbox3    ~~~~~~~~~~~~~~~~~~~~~~~4 5    pygments version of the "gruvbox" vim theme.6    https://github.com/morhetz/gruvbox7 8    :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.9    :license: BSD, see LICENSE for details.10"""11 12from pygments.style import Style13from pygments.token import Token, Keyword, Name, Comment, String, Error, \14     Number, Operator, Generic15 16 17__all__ = ['GruvboxDarkStyle', 'GruvboxLightStyle']18 19 20class GruvboxDarkStyle(Style):21    """22    Pygments version of the "gruvbox" dark vim theme.23    """24    25    name = 'gruvbox-dark'26 27    background_color = '#282828'28    highlight_color = '#ebdbb2'29 30    styles = {31        Token:              '#dddddd',32 33        Comment:            'italic #928374',34        Comment.PreProc:    '#8ec07c',35        Comment.Special:    'bold italic #ebdbb2',36 37        Keyword:            '#fb4934',38        Operator.Word:      '#fb4934',39 40        String:             '#b8bb26',41        String.Escape:      '#fe8019',42 43        Number:             '#d3869b',44 45        Name.Builtin:       '#fe8019',46        Name.Variable:      '#83a598',47        Name.Constant:      '#d3869b',48        Name.Class:         '#8ec07c',49        Name.Function:      '#8ec07c',50        Name.Namespace:     '#8ec07c',51        Name.Exception:     '#fb4934',52        Name.Tag:           '#8ec07c',53        Name.Attribute:     '#fabd2f',54        Name.Decorator:     '#fb4934',55 56        Generic.Heading:    'bold #ebdbb2',57        Generic.Subheading: 'underline #ebdbb2',58        Generic.Deleted:    'bg:#fb4934 #282828',59        Generic.Inserted:   'bg:#b8bb26 #282828',60        Generic.Error:      '#fb4934',61        Generic.Emph:       'italic',62        Generic.Strong:     'bold',63        Generic.EmphStrong: 'bold italic',64        Generic.Prompt:     '#a89984',65        Generic.Output:     '#f2e5bc',66        Generic.Traceback:  '#fb4934',67 68        Error:              'bg:#fb4934 #282828'69    }70 71 72class GruvboxLightStyle(Style):73    """74    Pygments version of the "gruvbox" Light vim theme.75    """76 77    name = 'gruvbox-light'78 79    background_color = '#fbf1c7'80    highlight_color = '#3c3836'81 82    styles = {83        Comment:            'italic #928374',84        Comment.PreProc:    '#427b58',85        Comment.Special:    'bold italic #3c3836',86 87        Keyword:            '#9d0006',88        Operator.Word:      '#9d0006',89 90        String:             '#79740e',91        String.Escape:      '#af3a03',92 93        Number:             '#8f3f71',94 95        Name.Builtin:       '#af3a03',96        Name.Variable:      '#076678',97        Name.Constant:      '#8f3f71',98        Name.Class:         '#427b58',99        Name.Function:      '#427b58',100        Name.Namespace:     '#427b58',101        Name.Exception:     '#9d0006',102        Name.Tag:           '#427b58',103        Name.Attribute:     '#b57614',104        Name.Decorator:     '#9d0006',105 106        Generic.Heading:    'bold #3c3836',107        Generic.Subheading: 'underline #3c3836',108        Generic.Deleted:    'bg:#9d0006 #fbf1c7',109        Generic.Inserted:   'bg:#79740e #fbf1c7',110        Generic.Error:      '#9d0006',111        Generic.Emph:       'italic',112        Generic.Strong:     'bold',113        Generic.Prompt:     '#7c6f64',114        Generic.Output:     '#32302f',115        Generic.Traceback:  '#9d0006',116 117        Error:              'bg:#9d0006 #fbf1c7'118    }119 
codekingpro/portable-devtools · Team Ai