...

Source file src/github.com/alecthomas/chroma/styles/vulcan.go

Documentation: github.com/alecthomas/chroma/styles

     1  package styles
     2  
     3  import (
     4  	"github.com/alecthomas/chroma"
     5  )
     6  
     7  var (
     8  	// inspired by Doom Emacs's One Doom Theme
     9  	black  = "#282C34"
    10  	grey   = "#3E4460"
    11  	grey2  = "#43454f"
    12  	white  = "#C9C9C9"
    13  	red    = "#CF5967"
    14  	yellow = "#ECBE7B"
    15  	green  = "#82CC6A"
    16  	cyan   = "#56B6C2"
    17  	blue   = "#7FBAF5"
    18  	blue2  = "#57C7FF"
    19  	purple = "#BC74C4"
    20  )
    21  
    22  var Vulcan = Register(chroma.MustNewStyle("vulcan", chroma.StyleEntries{
    23  	chroma.Comment:                  grey,
    24  	chroma.CommentHashbang:          grey + " italic",
    25  	chroma.CommentMultiline:         grey,
    26  	chroma.CommentPreproc:           blue,
    27  	chroma.CommentSingle:            grey,
    28  	chroma.CommentSpecial:           purple + " italic",
    29  	chroma.Generic:                  white,
    30  	chroma.GenericDeleted:           red,
    31  	chroma.GenericEmph:              white + " underline",
    32  	chroma.GenericError:             red + " bold",
    33  	chroma.GenericHeading:           yellow + " bold",
    34  	chroma.GenericInserted:          yellow,
    35  	chroma.GenericOutput:            grey2,
    36  	chroma.GenericPrompt:            white,
    37  	chroma.GenericStrong:            red + " bold",
    38  	chroma.GenericSubheading:        red + " italic",
    39  	chroma.GenericTraceback:         white,
    40  	chroma.GenericUnderline:         "underline",
    41  	chroma.Error:                    red,
    42  	chroma.Keyword:                  blue,
    43  	chroma.KeywordConstant:          red + " bg:" + grey2,
    44  	chroma.KeywordDeclaration:       blue,
    45  	chroma.KeywordNamespace:         purple,
    46  	chroma.KeywordPseudo:            purple,
    47  	chroma.KeywordReserved:          blue,
    48  	chroma.KeywordType:              blue2 + " bold",
    49  	chroma.Literal:                  white,
    50  	chroma.LiteralDate:              blue2,
    51  	chroma.Name:                     white,
    52  	chroma.NameAttribute:            purple,
    53  	chroma.NameBuiltin:              blue,
    54  	chroma.NameBuiltinPseudo:        blue,
    55  	chroma.NameClass:                yellow,
    56  	chroma.NameConstant:             yellow,
    57  	chroma.NameDecorator:            yellow,
    58  	chroma.NameEntity:               white,
    59  	chroma.NameException:            red,
    60  	chroma.NameFunction:             blue2,
    61  	chroma.NameLabel:                red,
    62  	chroma.NameNamespace:            white,
    63  	chroma.NameOther:                white,
    64  	chroma.NameTag:                  purple,
    65  	chroma.NameVariable:             purple + " italic",
    66  	chroma.NameVariableClass:        blue2 + " bold",
    67  	chroma.NameVariableGlobal:       yellow,
    68  	chroma.NameVariableInstance:     blue2,
    69  	chroma.LiteralNumber:            cyan,
    70  	chroma.LiteralNumberBin:         blue2,
    71  	chroma.LiteralNumberFloat:       cyan,
    72  	chroma.LiteralNumberHex:         blue2,
    73  	chroma.LiteralNumberInteger:     cyan,
    74  	chroma.LiteralNumberIntegerLong: cyan,
    75  	chroma.LiteralNumberOct:         blue2,
    76  	chroma.Operator:                 purple,
    77  	chroma.OperatorWord:             purple,
    78  	chroma.Other:                    white,
    79  	chroma.Punctuation:              cyan,
    80  	chroma.LiteralString:            green,
    81  	chroma.LiteralStringBacktick:    blue2,
    82  	chroma.LiteralStringChar:        blue2,
    83  	chroma.LiteralStringDoc:         green,
    84  	chroma.LiteralStringDouble:      green,
    85  	chroma.LiteralStringEscape:      cyan,
    86  	chroma.LiteralStringHeredoc:     cyan,
    87  	chroma.LiteralStringInterpol:    green,
    88  	chroma.LiteralStringOther:       green,
    89  	chroma.LiteralStringRegex:       blue2,
    90  	chroma.LiteralStringSingle:      green,
    91  	chroma.LiteralStringSymbol:      green,
    92  	chroma.Text:                     white,
    93  	chroma.TextWhitespace:           white,
    94  	chroma.Background:               " bg: " + black,
    95  }))
    96  

View as plain text