Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
nord.py157 linesDownload Raw Back to styles
1"""2    pygments.styles.nord3    ~~~~~~~~~~~~~~~~~~~~4 5    pygments version of the "nord" theme by Arctic Ice Studio6    https://www.nordtheme.com/7 8    :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.9    :license: BSD, see LICENSE for details.10"""11 12from pygments.style import Style13from pygments.token import Keyword, Name, Comment, String, Error, Number, \14    Operator, Generic, Whitespace, Punctuation, Text, Token15 16 17__all__ = ['NordStyle', 'NordDarkerStyle']18 19 20class NordStyle(Style):21    """22    Pygments version of the "nord" theme by Arctic Ice Studio.23    """24    name = 'nord'25    26    line_number_color = "#D8DEE9"27    line_number_background_color = "#242933"28    line_number_special_color = "#242933"29    line_number_special_background_color = "#D8DEE9"30 31    background_color = "#2E3440"32    highlight_color = "#3B4252"33 34    styles = {35        Token:                      "#d8dee9",36 37        Whitespace:                 '#d8dee9',38        Punctuation:                '#eceff4',39 40        Comment:                    'italic #616e87',41        Comment.Preproc:            '#5e81ac',42 43        Keyword:                    'bold #81a1c1',44        Keyword.Pseudo:             'nobold #81a1c1',45        Keyword.Type:               'nobold #81a1c1',46 47        Operator:                   'bold #81a1c1',48        Operator.Word:              'bold #81a1c1',49 50        Name:                       '#d8dee9',51        Name.Builtin:               '#81a1c1',52        Name.Function:              '#88c0d0',53        Name.Class:                 '#8fbcbb',54        Name.Namespace:             '#8fbcbb',55        Name.Exception:             '#bf616a',56        Name.Variable:              '#d8dee9',57        Name.Constant:              '#8fbcbb',58        Name.Entity:                '#d08770',59        Name.Attribute:             '#8fbcbb',60        Name.Tag:                   '#81a1c1',61        Name.Decorator:             '#d08770',62 63        String:                     '#a3be8c',64        String.Doc:                 '#616e87',65        String.Interpol:            '#a3be8c',66        String.Escape:              '#ebcb8b',67        String.Regex:               '#ebcb8b',68        String.Symbol:              '#a3be8c',69        String.Other:               '#a3be8c',70 71        Number:                     '#b48ead',72 73        Generic.Heading:            'bold #88c0d0',74        Generic.Subheading:         'bold #88c0d0',75        Generic.Deleted:            '#bf616a',76        Generic.Inserted:           '#a3be8c',77        Generic.Error:              '#bf616a',78        Generic.Emph:               'italic',79        Generic.Strong:             'bold',80        Generic.EmphStrong:         'bold italic',81        Generic.Prompt:             'bold #616e88',82        Generic.Output:             '#d8dee9',83        Generic.Traceback:          '#bf616a',84 85        Error:                      '#bf616a',86        Text:                       '#d8dee9',87    }88 89 90class NordDarkerStyle(Style):91    """92    Pygments version of a darker "nord" theme by Arctic Ice Studio93    """94    name = 'nord-darker'95    96    line_number_color = "#D8DEE9"97    line_number_background_color = "#242933"98    line_number_special_color = "#242933"99    line_number_special_background_color = "#D8DEE9"100 101    background_color = "#242933"102    highlight_color = "#3B4252"103 104    styles = {105        Token:                      "#d8dee9",106 107        Whitespace:                 '#d8dee9',108        Punctuation:                '#eceff4',109 110        Comment:                    'italic #616e87',111        Comment.Preproc:            '#5e81ac',112 113        Keyword:                    'bold #81a1c1',114        Keyword.Pseudo:             'nobold #81a1c1',115        Keyword.Type:               'nobold #81a1c1',116 117        Operator:                   'bold #81a1c1',118        Operator.Word:              'bold #81a1c1',119 120        Name:                       '#d8dee9',121        Name.Builtin:               '#81a1c1',122        Name.Function:              '#88c0d0',123        Name.Class:                 '#8fbcbb',124        Name.Namespace:             '#8fbcbb',125        Name.Exception:             '#bf616a',126        Name.Variable:              '#d8dee9',127        Name.Constant:              '#8fbcbb',128        Name.Entity:                '#d08770',129        Name.Attribute:             '#8fbcbb',130        Name.Tag:                   '#81a1c1',131        Name.Decorator:             '#d08770',132 133        String:                     '#a3be8c',134        String.Doc:                 '#616e87',135        String.Interpol:            '#a3be8c',136        String.Escape:              '#ebcb8b',137        String.Regex:               '#ebcb8b',138        String.Symbol:              '#a3be8c',139        String.Other:               '#a3be8c',140 141        Number:                     '#b48ead',142 143        Generic.Heading:            'bold #88c0d0',144        Generic.Subheading:         'bold #88c0d0',145        Generic.Deleted:            '#bf616a',146        Generic.Inserted:           '#a3be8c',147        Generic.Error:              '#bf616a',148        Generic.Emph:               'italic',149        Generic.Strong:             'bold',150        Generic.Prompt:             'bold #616e88',151        Generic.Output:             '#d8dee9',152        Generic.Traceback:          '#bf616a',153 154        Error:                      '#bf616a',155        Text:                       '#d8dee9',156    }157 
codekingpro/portable-devtools · Team Ai