Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
material.py125 linesDownload Raw Back to styles
1"""2    pygments.styles.material3    ~~~~~~~~~~~~~~~~~~~~~~~~4 5    Mimic the Material theme color scheme.6 7    https://github.com/material-theme/vsc-material-theme8 9    :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.10    :license: BSD, see LICENSE for details.11"""12 13from pygments.style import Style14from pygments.token import Keyword, Name, Comment, String, Escape, \15    Error, Text, Number, Operator, Generic, Punctuation, Literal16 17 18__all__ = ['MaterialStyle']19 20 21class MaterialStyle(Style):22    """23    This style mimics the Material Theme color scheme.24    """25    name = 'material'26    27    dark_teal = '#263238'28    white = '#FFFFFF'29    black = '#000000'30    red = '#FF5370'31    orange = '#F78C6C'32    yellow = '#FFCB6B'33    green = '#C3E88D'34    cyan = '#89DDFF'35    blue = '#82AAFF'36    paleblue = '#B2CCD6'37    purple = '#C792EA'38    brown = '#C17E70'39    pink = '#F07178'40    violet = '#BB80B3'41    foreground = '#EEFFFF'42    faded = '#546E7A'43 44    background_color = dark_teal45    highlight_color = '#2C3B41'46    line_number_color = '#37474F'47    line_number_background_color = dark_teal48    line_number_special_color = '#607A86'49    line_number_special_background_color = dark_teal50 51    styles = {52        Text:                          foreground,53        Escape:                        cyan,54        Error:                         red,55 56        Keyword:                       violet,57        Keyword.Constant:              cyan,58        Keyword.Declaration:           violet,59        Keyword.Namespace:             'italic ' + cyan,60        Keyword.Pseudo:                cyan,61        Keyword.Type:                  violet,62 63        Name:                          foreground,64        Name.Attribute:                violet,65        Name.Builtin:                  blue,66        Name.Builtin.Pseudo:           cyan,67        Name.Class:                    yellow,68        Name.Constant:                 foreground,69        Name.Decorator:                blue,70        Name.Entity:                   cyan,71        Name.Exception:                yellow,72        Name.Function:                 blue,73        Name.Function.Magic:           blue,74        Name.Label:                    blue,75        Name.Property:                 yellow,76        Name.Namespace:                yellow,77        Name.Other:                    foreground,78        Name.Tag:                      red,79        Name.Variable:                 cyan,80        Name.Variable.Class:           cyan,81        Name.Variable.Global:          cyan,82        Name.Variable.Instance:        cyan,83        Name.Variable.Magic:           blue,84 85        Literal:                       green,86        Literal.Date:                  green,87 88        String:                        green,89        String.Affix:                  violet,90        String.Backtick:               green,91        String.Char:                   green,92        String.Delimiter:              foreground,93        String.Doc:                    'italic ' + faded,94        String.Double:                 green,95        String.Escape:                 foreground,96        String.Heredoc:                green,97        String.Interpol:               cyan,98        String.Other:                  green,99        String.Regex:                  cyan,100        String.Single:                 green,101        String.Symbol:                 cyan,102 103        Number:                        orange,104 105        Operator:                      cyan,106        Operator.Word:                 'italic ' + cyan,107 108        Punctuation:                   cyan,109 110        Comment:                       'italic ' + faded,111 112        Generic:                       foreground,113        Generic.Deleted:               red,114        Generic.Emph:                  cyan,115        Generic.Error:                 red,116        Generic.Heading:               green,117        Generic.Inserted:              green,118        Generic.Output:                faded,119        Generic.Prompt:                yellow,120        Generic.Strong:                red,121        Generic.EmphStrong:            yellow,122        Generic.Subheading:            cyan,123        Generic.Traceback:             red,124    }125 
codekingpro/portable-devtools · Team Ai