styles

package
Version: v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 2 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Abap = Register(chroma.MustNewStyle("abap", chroma.StyleEntries{
	chroma.Comment:        "italic #888",
	chroma.CommentSpecial: "#888",
	chroma.Keyword:        "#00f",
	chroma.OperatorWord:   "#00f",
	chroma.Name:           "#000",
	chroma.LiteralNumber:  "#3af",
	chroma.LiteralString:  "#5a2",
	chroma.Error:          "#F00",
	chroma.Background:     " bg:#ffffff",
}))

Abap style.

View Source
var Algol = Register(chroma.MustNewStyle("algol", chroma.StyleEntries{
	chroma.Comment:            "italic #888",
	chroma.CommentPreproc:     "bold noitalic #888",
	chroma.CommentSpecial:     "bold noitalic #888",
	chroma.Keyword:            "underline bold",
	chroma.KeywordDeclaration: "italic",
	chroma.NameBuiltin:        "bold italic",
	chroma.NameBuiltinPseudo:  "bold italic",
	chroma.NameNamespace:      "bold italic #666",
	chroma.NameClass:          "bold italic #666",
	chroma.NameFunction:       "bold italic #666",
	chroma.NameVariable:       "bold italic #666",
	chroma.NameConstant:       "bold italic #666",
	chroma.OperatorWord:       "bold",
	chroma.LiteralString:      "italic #666",
	chroma.Error:              "border:#FF0000",
	chroma.Background:         " bg:#ffffff",
}))

Algol style.

View Source
var AlgolNu = Register(chroma.MustNewStyle("algol_nu", chroma.StyleEntries{
	chroma.Comment:            "italic #888",
	chroma.CommentPreproc:     "bold noitalic #888",
	chroma.CommentSpecial:     "bold noitalic #888",
	chroma.Keyword:            "bold",
	chroma.KeywordDeclaration: "italic",
	chroma.NameBuiltin:        "bold italic",
	chroma.NameBuiltinPseudo:  "bold italic",
	chroma.NameNamespace:      "bold italic #666",
	chroma.NameClass:          "bold italic #666",
	chroma.NameFunction:       "bold italic #666",
	chroma.NameVariable:       "bold italic #666",
	chroma.NameConstant:       "bold italic #666",
	chroma.OperatorWord:       "bold",
	chroma.LiteralString:      "italic #666",
	chroma.Error:              "border:#FF0000",
	chroma.Background:         " bg:#ffffff",
}))

AlgolNu style.

View Source
var Arduino = Register(chroma.MustNewStyle("arduino", chroma.StyleEntries{
	chroma.Error:           "#a61717",
	chroma.Comment:         "#95a5a6",
	chroma.CommentPreproc:  "#728E00",
	chroma.Keyword:         "#728E00",
	chroma.KeywordConstant: "#00979D",
	chroma.KeywordPseudo:   "#00979D",
	chroma.KeywordReserved: "#00979D",
	chroma.KeywordType:     "#00979D",
	chroma.Operator:        "#728E00",
	chroma.Name:            "#434f54",
	chroma.NameBuiltin:     "#728E00",
	chroma.NameFunction:    "#D35400",
	chroma.NameOther:       "#728E00",
	chroma.LiteralNumber:   "#8A7B52",
	chroma.LiteralString:   "#7F8C8D",
	chroma.Background:      " bg:#ffffff",
}))

Arduino style.

View Source
var Autumn = Register(chroma.MustNewStyle("autumn", chroma.StyleEntries{
	chroma.TextWhitespace:      "#bbbbbb",
	chroma.Comment:             "italic #aaaaaa",
	chroma.CommentPreproc:      "noitalic #4c8317",
	chroma.CommentSpecial:      "italic #0000aa",
	chroma.Keyword:             "#0000aa",
	chroma.KeywordType:         "#00aaaa",
	chroma.OperatorWord:        "#0000aa",
	chroma.NameBuiltin:         "#00aaaa",
	chroma.NameFunction:        "#00aa00",
	chroma.NameClass:           "underline #00aa00",
	chroma.NameNamespace:       "underline #00aaaa",
	chroma.NameVariable:        "#aa0000",
	chroma.NameConstant:        "#aa0000",
	chroma.NameEntity:          "bold #800",
	chroma.NameAttribute:       "#1e90ff",
	chroma.NameTag:             "bold #1e90ff",
	chroma.NameDecorator:       "#888888",
	chroma.LiteralString:       "#aa5500",
	chroma.LiteralStringSymbol: "#0000aa",
	chroma.LiteralStringRegex:  "#009999",
	chroma.LiteralNumber:       "#009999",
	chroma.GenericHeading:      "bold #000080",
	chroma.GenericSubheading:   "bold #800080",
	chroma.GenericDeleted:      "#aa0000",
	chroma.GenericInserted:     "#00aa00",
	chroma.GenericError:        "#aa0000",
	chroma.GenericEmph:         "italic",
	chroma.GenericStrong:       "bold",
	chroma.GenericPrompt:       "#555555",
	chroma.GenericOutput:       "#888888",
	chroma.GenericTraceback:    "#aa0000",
	chroma.GenericUnderline:    "underline",
	chroma.Error:               "#F00 bg:#FAA",
	chroma.Background:          " bg:#ffffff",
}))

Autumn style.

View Source
var Average = Register(chroma.MustNewStyle("average", chroma.StyleEntries{
	chroma.Comment:                  "#757575",
	chroma.CommentHashbang:          "#757575",
	chroma.CommentMultiline:         "#757575",
	chroma.CommentPreproc:           "#757575",
	chroma.CommentSingle:            "#757575",
	chroma.CommentSpecial:           "#757575",
	chroma.Generic:                  "#757575",
	chroma.GenericDeleted:           "#ec0000",
	chroma.GenericEmph:              "#757575 underline",
	chroma.GenericError:             "#ec0000",
	chroma.GenericHeading:           "#757575 bold",
	chroma.GenericInserted:          "#757575 bold",
	chroma.GenericOutput:            "#757575",
	chroma.GenericPrompt:            "#757575",
	chroma.GenericStrong:            "#757575 italic",
	chroma.GenericSubheading:        "#757575 bold",
	chroma.GenericTraceback:         "#757575",
	chroma.GenericUnderline:         "underline",
	chroma.Error:                    "#ec0000",
	chroma.Keyword:                  "#ec0000",
	chroma.KeywordConstant:          "#ec0000",
	chroma.KeywordDeclaration:       "#ec0000",
	chroma.KeywordNamespace:         "#ec0000",
	chroma.KeywordPseudo:            "#ec0000",
	chroma.KeywordReserved:          "#ec0000",
	chroma.KeywordType:              "#5f5fff",
	chroma.Literal:                  "#757575",
	chroma.LiteralDate:              "#757575",
	chroma.Name:                     "#757575",
	chroma.NameAttribute:            "#5f5fff",
	chroma.NameBuiltin:              "#ec0000",
	chroma.NameBuiltinPseudo:        "#757575",
	chroma.NameClass:                "#5f5fff",
	chroma.NameConstant:             "#008900",
	chroma.NameDecorator:            "#008900",
	chroma.NameEntity:               "#757575",
	chroma.NameException:            "#757575",
	chroma.NameFunction:             "#5f5fff",
	chroma.NameLabel:                "#ec0000",
	chroma.NameNamespace:            "#757575",
	chroma.NameOther:                "#757575",
	chroma.NameTag:                  "#ec0000",
	chroma.NameVariable:             "#ec0000",
	chroma.NameVariableClass:        "#ec0000",
	chroma.NameVariableGlobal:       "#ec0000",
	chroma.NameVariableInstance:     "#ec0000",
	chroma.LiteralNumber:            "#008900",
	chroma.LiteralNumberBin:         "#008900",
	chroma.LiteralNumberFloat:       "#008900",
	chroma.LiteralNumberHex:         "#008900",
	chroma.LiteralNumberInteger:     "#008900",
	chroma.LiteralNumberIntegerLong: "#008900",
	chroma.LiteralNumberOct:         "#008900",
	chroma.Operator:                 "#ec0000",
	chroma.OperatorWord:             "#ec0000",
	chroma.Other:                    "#757575",
	chroma.Punctuation:              "#757575",
	chroma.LiteralString:            "#008900",
	chroma.LiteralStringBacktick:    "#008900",
	chroma.LiteralStringChar:        "#008900",
	chroma.LiteralStringDoc:         "#008900",
	chroma.LiteralStringDouble:      "#008900",
	chroma.LiteralStringEscape:      "#008900",
	chroma.LiteralStringHeredoc:     "#008900",
	chroma.LiteralStringInterpol:    "#008900",
	chroma.LiteralStringOther:       "#008900",
	chroma.LiteralStringRegex:       "#008900",
	chroma.LiteralStringSingle:      "#008900",
	chroma.LiteralStringSymbol:      "#008900",
	chroma.Text:                     "#757575",
	chroma.TextWhitespace:           "#757575",
	chroma.Background:               " bg:#000000",
}))

Average style.

View Source
var Base16Snazzy = Register(chroma.MustNewStyle("base16-snazzy", chroma.StyleEntries{
	chroma.Comment:                  "#78787e",
	chroma.CommentHashbang:          "#78787e",
	chroma.CommentMultiline:         "#78787e",
	chroma.CommentPreproc:           "#78787e",
	chroma.CommentSingle:            "#78787e",
	chroma.CommentSpecial:           "#78787e",
	chroma.Generic:                  "#e2e4e5",
	chroma.GenericDeleted:           "#ff5c57",
	chroma.GenericEmph:              "#e2e4e5 underline",
	chroma.GenericError:             "#ff5c57",
	chroma.GenericHeading:           "#e2e4e5 bold",
	chroma.GenericInserted:          "#e2e4e5 bold",
	chroma.GenericOutput:            "#43454f",
	chroma.GenericPrompt:            "#e2e4e5",
	chroma.GenericStrong:            "#e2e4e5 italic",
	chroma.GenericSubheading:        "#e2e4e5 bold",
	chroma.GenericTraceback:         "#e2e4e5",
	chroma.GenericUnderline:         "underline",
	chroma.Error:                    "#ff5c57",
	chroma.Keyword:                  "#ff6ac1",
	chroma.KeywordConstant:          "#ff6ac1",
	chroma.KeywordDeclaration:       "#ff5c57",
	chroma.KeywordNamespace:         "#ff6ac1",
	chroma.KeywordPseudo:            "#ff6ac1",
	chroma.KeywordReserved:          "#ff6ac1",
	chroma.KeywordType:              "#9aedfe",
	chroma.Literal:                  "#e2e4e5",
	chroma.LiteralDate:              "#e2e4e5",
	chroma.Name:                     "#e2e4e5",
	chroma.NameAttribute:            "#57c7ff",
	chroma.NameBuiltin:              "#ff5c57",
	chroma.NameBuiltinPseudo:        "#e2e4e5",
	chroma.NameClass:                "#f3f99d",
	chroma.NameConstant:             "#ff9f43",
	chroma.NameDecorator:            "#ff9f43",
	chroma.NameEntity:               "#e2e4e5",
	chroma.NameException:            "#e2e4e5",
	chroma.NameFunction:             "#57c7ff",
	chroma.NameLabel:                "#ff5c57",
	chroma.NameNamespace:            "#e2e4e5",
	chroma.NameOther:                "#e2e4e5",
	chroma.NameTag:                  "#ff6ac1",
	chroma.NameVariable:             "#ff5c57",
	chroma.NameVariableClass:        "#ff5c57",
	chroma.NameVariableGlobal:       "#ff5c57",
	chroma.NameVariableInstance:     "#ff5c57",
	chroma.LiteralNumber:            "#ff9f43",
	chroma.LiteralNumberBin:         "#ff9f43",
	chroma.LiteralNumberFloat:       "#ff9f43",
	chroma.LiteralNumberHex:         "#ff9f43",
	chroma.LiteralNumberInteger:     "#ff9f43",
	chroma.LiteralNumberIntegerLong: "#ff9f43",
	chroma.LiteralNumberOct:         "#ff9f43",
	chroma.Operator:                 "#ff6ac1",
	chroma.OperatorWord:             "#ff6ac1",
	chroma.Other:                    "#e2e4e5",
	chroma.Punctuation:              "#e2e4e5",
	chroma.LiteralString:            "#5af78e",
	chroma.LiteralStringBacktick:    "#5af78e",
	chroma.LiteralStringChar:        "#5af78e",
	chroma.LiteralStringDoc:         "#5af78e",
	chroma.LiteralStringDouble:      "#5af78e",
	chroma.LiteralStringEscape:      "#5af78e",
	chroma.LiteralStringHeredoc:     "#5af78e",
	chroma.LiteralStringInterpol:    "#5af78e",
	chroma.LiteralStringOther:       "#5af78e",
	chroma.LiteralStringRegex:       "#5af78e",
	chroma.LiteralStringSingle:      "#5af78e",
	chroma.LiteralStringSymbol:      "#5af78e",
	chroma.Text:                     "#e2e4e5",
	chroma.TextWhitespace:           "#e2e4e5",
	chroma.Background:               " bg:#282a36",
}))

Base16Snazzy style

View Source
var BlackWhite = Register(chroma.MustNewStyle("bw", chroma.StyleEntries{
	chroma.Comment:               "italic",
	chroma.CommentPreproc:        "noitalic",
	chroma.Keyword:               "bold",
	chroma.KeywordPseudo:         "nobold",
	chroma.KeywordType:           "nobold",
	chroma.OperatorWord:          "bold",
	chroma.NameClass:             "bold",
	chroma.NameNamespace:         "bold",
	chroma.NameException:         "bold",
	chroma.NameEntity:            "bold",
	chroma.NameTag:               "bold",
	chroma.LiteralString:         "italic",
	chroma.LiteralStringInterpol: "bold",
	chroma.LiteralStringEscape:   "bold",
	chroma.GenericHeading:        "bold",
	chroma.GenericSubheading:     "bold",
	chroma.GenericEmph:           "italic",
	chroma.GenericStrong:         "bold",
	chroma.GenericPrompt:         "bold",
	chroma.Error:                 "border:#FF0000",
	chroma.Background:            " bg:#ffffff",
}))

BlackWhite style.

View Source
var Borland = Register(chroma.MustNewStyle("borland", chroma.StyleEntries{
	chroma.TextWhitespace:    "#bbbbbb",
	chroma.Comment:           "italic #008800",
	chroma.CommentPreproc:    "noitalic #008080",
	chroma.CommentSpecial:    "noitalic bold",
	chroma.LiteralString:     "#0000FF",
	chroma.LiteralStringChar: "#800080",
	chroma.LiteralNumber:     "#0000FF",
	chroma.Keyword:           "bold #000080",
	chroma.OperatorWord:      "bold",
	chroma.NameTag:           "bold #000080",
	chroma.NameAttribute:     "#FF0000",
	chroma.GenericHeading:    "#999999",
	chroma.GenericSubheading: "#aaaaaa",
	chroma.GenericDeleted:    "bg:#ffdddd #000000",
	chroma.GenericInserted:   "bg:#ddffdd #000000",
	chroma.GenericError:      "#aa0000",
	chroma.GenericEmph:       "italic",
	chroma.GenericStrong:     "bold",
	chroma.GenericPrompt:     "#555555",
	chroma.GenericOutput:     "#888888",
	chroma.GenericTraceback:  "#aa0000",
	chroma.GenericUnderline:  "underline",
	chroma.Error:             "bg:#e3d2d2 #a61717",
	chroma.Background:        " bg:#ffffff",
}))

Borland style.

View Source
var Colorful = Register(chroma.MustNewStyle("colorful", chroma.StyleEntries{
	chroma.TextWhitespace:        "#bbbbbb",
	chroma.Comment:               "#888",
	chroma.CommentPreproc:        "#579",
	chroma.CommentSpecial:        "bold #cc0000",
	chroma.Keyword:               "bold #080",
	chroma.KeywordPseudo:         "#038",
	chroma.KeywordType:           "#339",
	chroma.Operator:              "#333",
	chroma.OperatorWord:          "bold #000",
	chroma.NameBuiltin:           "#007020",
	chroma.NameFunction:          "bold #06B",
	chroma.NameClass:             "bold #B06",
	chroma.NameNamespace:         "bold #0e84b5",
	chroma.NameException:         "bold #F00",
	chroma.NameVariable:          "#963",
	chroma.NameVariableInstance:  "#33B",
	chroma.NameVariableClass:     "#369",
	chroma.NameVariableGlobal:    "bold #d70",
	chroma.NameConstant:          "bold #036",
	chroma.NameLabel:             "bold #970",
	chroma.NameEntity:            "bold #800",
	chroma.NameAttribute:         "#00C",
	chroma.NameTag:               "#070",
	chroma.NameDecorator:         "bold #555",
	chroma.LiteralString:         "bg:#fff0f0",
	chroma.LiteralStringChar:     "#04D bg:",
	chroma.LiteralStringDoc:      "#D42 bg:",
	chroma.LiteralStringInterpol: "bg:#eee",
	chroma.LiteralStringEscape:   "bold #666",
	chroma.LiteralStringRegex:    "bg:#fff0ff #000",
	chroma.LiteralStringSymbol:   "#A60 bg:",
	chroma.LiteralStringOther:    "#D20",
	chroma.LiteralNumber:         "bold #60E",
	chroma.LiteralNumberInteger:  "bold #00D",
	chroma.LiteralNumberFloat:    "bold #60E",
	chroma.LiteralNumberHex:      "bold #058",
	chroma.LiteralNumberOct:      "bold #40E",
	chroma.GenericHeading:        "bold #000080",
	chroma.GenericSubheading:     "bold #800080",
	chroma.GenericDeleted:        "#A00000",
	chroma.GenericInserted:       "#00A000",
	chroma.GenericError:          "#FF0000",
	chroma.GenericEmph:           "italic",
	chroma.GenericStrong:         "bold",
	chroma.GenericPrompt:         "bold #c65d09",
	chroma.GenericOutput:         "#888",
	chroma.GenericTraceback:      "#04D",
	chroma.GenericUnderline:      "underline",
	chroma.Error:                 "#F00 bg:#FAA",
	chroma.Background:            " bg:#ffffff",
}))

Colorful style.

View Source
var DoomOne = Register(chroma.MustNewStyle("doom-one", chroma.StyleEntries{
	chroma.Text:                 "#b0c4de",
	chroma.Error:                "#b0c4de",
	chroma.Comment:              "italic #8a93a5",
	chroma.CommentHashbang:      "bold",
	chroma.Keyword:              "#c678dd",
	chroma.KeywordType:          "#ef8383",
	chroma.KeywordConstant:      "bold #b756ff",
	chroma.Operator:             "#c7bf54",
	chroma.OperatorWord:         "bold #b756ff",
	chroma.Punctuation:          "#b0c4de",
	chroma.Name:                 "#c1abea",
	chroma.NameAttribute:        "#b3d23c",
	chroma.NameBuiltin:          "#ef8383",
	chroma.NameClass:            "#76a9f9",
	chroma.NameConstant:         "bold #b756ff",
	chroma.NameDecorator:        "#e5c07b",
	chroma.NameEntity:           "#bda26f",
	chroma.NameException:        "bold #fd7474",
	chroma.NameFunction:         "#00b1f7",
	chroma.NameProperty:         "#cebc3a",
	chroma.NameLabel:            "#f5a40d",
	chroma.NameNamespace:        "#76a9f9",
	chroma.NameTag:              "#e06c75",
	chroma.NameVariable:         "#DCAEEA",
	chroma.NameVariableGlobal:   "bold #DCAEEA",
	chroma.NameVariableInstance: "#e06c75",
	chroma.Literal:              "#98c379",
	chroma.Number:               "#d19a66",
	chroma.String:               "#98c379",
	chroma.StringDoc:            "#7e97c3",
	chroma.StringDouble:         "#63c381",
	chroma.StringEscape:         "bold #d26464",
	chroma.StringHeredoc:        "#98c379",
	chroma.StringInterpol:       "#98c379",
	chroma.StringOther:          "#70b33f",
	chroma.StringRegex:          "#56b6c2",
	chroma.StringSingle:         "#98c379",
	chroma.StringSymbol:         "#56b6c2",
	chroma.Generic:              "#b0c4de",
	chroma.GenericEmph:          "italic",
	chroma.GenericHeading:       "bold #a2cbff",
	chroma.GenericInserted:      "#a6e22e",
	chroma.GenericOutput:        "#a6e22e",
	chroma.GenericUnderline:     "underline",
	chroma.GenericPrompt:        "#a6e22e",
	chroma.GenericStrong:        "bold",
	chroma.GenericSubheading:    "#a2cbff",
	chroma.GenericTraceback:     "#a2cbff",
	chroma.Background:           "#b0c4de bg:#282c34",
}))

Doom One style. Inspired by Atom One and Doom Emacs's Atom One theme

View Source
var DoomOne2 = Register(chroma.MustNewStyle("doom-one2", chroma.StyleEntries{
	chroma.Text:                 "#b0c4de",
	chroma.Error:                "#b0c4de",
	chroma.Comment:              "italic #8a93a5",
	chroma.CommentHashbang:      "bold",
	chroma.Keyword:              "#76a9f9",
	chroma.KeywordConstant:      "#e5c07b",
	chroma.KeywordType:          "#e5c07b",
	chroma.Operator:             "#54b1c7",
	chroma.OperatorWord:         "bold #b756ff",
	chroma.Punctuation:          "#abb2bf",
	chroma.Name:                 "#aa89ea",
	chroma.NameAttribute:        "#cebc3a",
	chroma.NameBuiltin:          "#e5c07b",
	chroma.NameClass:            "#ca72ff",
	chroma.NameConstant:         "bold",
	chroma.NameDecorator:        "#e5c07b",
	chroma.NameEntity:           "#bda26f",
	chroma.NameException:        "bold #fd7474",
	chroma.NameFunction:         "#00b1f7",
	chroma.NameProperty:         "#cebc3a",
	chroma.NameLabel:            "#f5a40d",
	chroma.NameNamespace:        "#ca72ff",
	chroma.NameTag:              "#76a9f9",
	chroma.NameVariable:         "#DCAEEA",
	chroma.NameVariableClass:    "#DCAEEA",
	chroma.NameVariableGlobal:   "bold #DCAEEA",
	chroma.NameVariableInstance: "#e06c75",
	chroma.NameVariableMagic:    "#DCAEEA",
	chroma.Literal:              "#98c379",
	chroma.LiteralDate:          "#98c379",
	chroma.Number:               "#d19a66",
	chroma.NumberBin:            "#d19a66",
	chroma.NumberFloat:          "#d19a66",
	chroma.NumberHex:            "#d19a66",
	chroma.NumberInteger:        "#d19a66",
	chroma.NumberIntegerLong:    "#d19a66",
	chroma.NumberOct:            "#d19a66",
	chroma.String:               "#98c379",
	chroma.StringAffix:          "#98c379",
	chroma.StringBacktick:       "#98c379",
	chroma.StringDelimiter:      "#98c379",
	chroma.StringDoc:            "#7e97c3",
	chroma.StringDouble:         "#63c381",
	chroma.StringEscape:         "bold #d26464",
	chroma.StringHeredoc:        "#98c379",
	chroma.StringInterpol:       "#98c379",
	chroma.StringOther:          "#70b33f",
	chroma.StringRegex:          "#56b6c2",
	chroma.StringSingle:         "#98c379",
	chroma.StringSymbol:         "#56b6c2",
	chroma.Generic:              "#b0c4de",
	chroma.GenericDeleted:       "#b0c4de",
	chroma.GenericEmph:          "italic",
	chroma.GenericHeading:       "bold #a2cbff",
	chroma.GenericInserted:      "#a6e22e",
	chroma.GenericOutput:        "#a6e22e",
	chroma.GenericUnderline:     "underline",
	chroma.GenericPrompt:        "#a6e22e",
	chroma.GenericStrong:        "bold",
	chroma.GenericSubheading:    "#a2cbff",
	chroma.GenericTraceback:     "#a2cbff",
	chroma.Background:           "#b0c4de bg:#282c34",
}))

Doom One 2 style. Inspired by Atom One and Doom Emacs's Atom One theme

View Source
var Dracula = Register(chroma.MustNewStyle("dracula", chroma.StyleEntries{
	chroma.Comment:                  "#6272a4",
	chroma.CommentHashbang:          "#6272a4",
	chroma.CommentMultiline:         "#6272a4",
	chroma.CommentPreproc:           "#ff79c6",
	chroma.CommentSingle:            "#6272a4",
	chroma.CommentSpecial:           "#6272a4",
	chroma.Generic:                  "#f8f8f2",
	chroma.GenericDeleted:           "#ff5555",
	chroma.GenericEmph:              "#f8f8f2 underline",
	chroma.GenericError:             "#f8f8f2",
	chroma.GenericHeading:           "#f8f8f2 bold",
	chroma.GenericInserted:          "#50fa7b bold",
	chroma.GenericOutput:            "#44475a",
	chroma.GenericPrompt:            "#f8f8f2",
	chroma.GenericStrong:            "#f8f8f2",
	chroma.GenericSubheading:        "#f8f8f2 bold",
	chroma.GenericTraceback:         "#f8f8f2",
	chroma.GenericUnderline:         "underline",
	chroma.Error:                    "#f8f8f2",
	chroma.Keyword:                  "#ff79c6",
	chroma.KeywordConstant:          "#ff79c6",
	chroma.KeywordDeclaration:       "#8be9fd italic",
	chroma.KeywordNamespace:         "#ff79c6",
	chroma.KeywordPseudo:            "#ff79c6",
	chroma.KeywordReserved:          "#ff79c6",
	chroma.KeywordType:              "#8be9fd",
	chroma.Literal:                  "#f8f8f2",
	chroma.LiteralDate:              "#f8f8f2",
	chroma.Name:                     "#f8f8f2",
	chroma.NameAttribute:            "#50fa7b",
	chroma.NameBuiltin:              "#8be9fd italic",
	chroma.NameBuiltinPseudo:        "#f8f8f2",
	chroma.NameClass:                "#50fa7b",
	chroma.NameConstant:             "#f8f8f2",
	chroma.NameDecorator:            "#f8f8f2",
	chroma.NameEntity:               "#f8f8f2",
	chroma.NameException:            "#f8f8f2",
	chroma.NameFunction:             "#50fa7b",
	chroma.NameLabel:                "#8be9fd italic",
	chroma.NameNamespace:            "#f8f8f2",
	chroma.NameOther:                "#f8f8f2",
	chroma.NameTag:                  "#ff79c6",
	chroma.NameVariable:             "#8be9fd italic",
	chroma.NameVariableClass:        "#8be9fd italic",
	chroma.NameVariableGlobal:       "#8be9fd italic",
	chroma.NameVariableInstance:     "#8be9fd italic",
	chroma.LiteralNumber:            "#bd93f9",
	chroma.LiteralNumberBin:         "#bd93f9",
	chroma.LiteralNumberFloat:       "#bd93f9",
	chroma.LiteralNumberHex:         "#bd93f9",
	chroma.LiteralNumberInteger:     "#bd93f9",
	chroma.LiteralNumberIntegerLong: "#bd93f9",
	chroma.LiteralNumberOct:         "#bd93f9",
	chroma.Operator:                 "#ff79c6",
	chroma.OperatorWord:             "#ff79c6",
	chroma.Other:                    "#f8f8f2",
	chroma.Punctuation:              "#f8f8f2",
	chroma.LiteralString:            "#f1fa8c",
	chroma.LiteralStringBacktick:    "#f1fa8c",
	chroma.LiteralStringChar:        "#f1fa8c",
	chroma.LiteralStringDoc:         "#f1fa8c",
	chroma.LiteralStringDouble:      "#f1fa8c",
	chroma.LiteralStringEscape:      "#f1fa8c",
	chroma.LiteralStringHeredoc:     "#f1fa8c",
	chroma.LiteralStringInterpol:    "#f1fa8c",
	chroma.LiteralStringOther:       "#f1fa8c",
	chroma.LiteralStringRegex:       "#f1fa8c",
	chroma.LiteralStringSingle:      "#f1fa8c",
	chroma.LiteralStringSymbol:      "#f1fa8c",
	chroma.Text:                     "#f8f8f2",
	chroma.TextWhitespace:           "#f8f8f2",
	chroma.Background:               " bg:#282a36",
}))

Dracula Style

View Source
var Emacs = Register(chroma.MustNewStyle("emacs", chroma.StyleEntries{
	chroma.TextWhitespace:        "#bbbbbb",
	chroma.Comment:               "italic #008800",
	chroma.CommentPreproc:        "noitalic",
	chroma.CommentSpecial:        "noitalic bold",
	chroma.Keyword:               "bold #AA22FF",
	chroma.KeywordPseudo:         "nobold",
	chroma.KeywordType:           "bold #00BB00",
	chroma.Operator:              "#666666",
	chroma.OperatorWord:          "bold #AA22FF",
	chroma.NameBuiltin:           "#AA22FF",
	chroma.NameFunction:          "#00A000",
	chroma.NameClass:             "#0000FF",
	chroma.NameNamespace:         "bold #0000FF",
	chroma.NameException:         "bold #D2413A",
	chroma.NameVariable:          "#B8860B",
	chroma.NameConstant:          "#880000",
	chroma.NameLabel:             "#A0A000",
	chroma.NameEntity:            "bold #999999",
	chroma.NameAttribute:         "#BB4444",
	chroma.NameTag:               "bold #008000",
	chroma.NameDecorator:         "#AA22FF",
	chroma.LiteralString:         "#BB4444",
	chroma.LiteralStringDoc:      "italic",
	chroma.LiteralStringInterpol: "bold #BB6688",
	chroma.LiteralStringEscape:   "bold #BB6622",
	chroma.LiteralStringRegex:    "#BB6688",
	chroma.LiteralStringSymbol:   "#B8860B",
	chroma.LiteralStringOther:    "#008000",
	chroma.LiteralNumber:         "#666666",
	chroma.GenericHeading:        "bold #000080",
	chroma.GenericSubheading:     "bold #800080",
	chroma.GenericDeleted:        "#A00000",
	chroma.GenericInserted:       "#00A000",
	chroma.GenericError:          "#FF0000",
	chroma.GenericEmph:           "italic",
	chroma.GenericStrong:         "bold",
	chroma.GenericPrompt:         "bold #000080",
	chroma.GenericOutput:         "#888",
	chroma.GenericTraceback:      "#04D",
	chroma.GenericUnderline:      "underline",
	chroma.Error:                 "border:#FF0000",
	chroma.Background:            " bg:#f8f8f8",
}))

Emacs style.

View Source
var Fallback = SwapOff

Fallback style. Reassign to change the default fallback style.

View Source
var Friendly = Register(chroma.MustNewStyle("friendly", chroma.StyleEntries{
	chroma.TextWhitespace:        "#bbbbbb",
	chroma.Comment:               "italic #60a0b0",
	chroma.CommentPreproc:        "noitalic #007020",
	chroma.CommentSpecial:        "noitalic bg:#fff0f0",
	chroma.Keyword:               "bold #007020",
	chroma.KeywordPseudo:         "nobold",
	chroma.KeywordType:           "nobold #902000",
	chroma.Operator:              "#666666",
	chroma.OperatorWord:          "bold #007020",
	chroma.NameBuiltin:           "#007020",
	chroma.NameFunction:          "#06287e",
	chroma.NameClass:             "bold #0e84b5",
	chroma.NameNamespace:         "bold #0e84b5",
	chroma.NameException:         "#007020",
	chroma.NameVariable:          "#bb60d5",
	chroma.NameConstant:          "#60add5",
	chroma.NameLabel:             "bold #002070",
	chroma.NameEntity:            "bold #d55537",
	chroma.NameAttribute:         "#4070a0",
	chroma.NameTag:               "bold #062873",
	chroma.NameDecorator:         "bold #555555",
	chroma.LiteralString:         "#4070a0",
	chroma.LiteralStringDoc:      "italic",
	chroma.LiteralStringInterpol: "#70a0d0",
	chroma.LiteralStringEscape:   "bold #4070a0",
	chroma.LiteralStringRegex:    "#235388",
	chroma.LiteralStringSymbol:   "#517918",
	chroma.LiteralStringOther:    "#c65d09",
	chroma.LiteralNumber:         "#40a070",
	chroma.GenericHeading:        "bold #000080",
	chroma.GenericSubheading:     "bold #800080",
	chroma.GenericDeleted:        "#A00000",
	chroma.GenericInserted:       "#00A000",
	chroma.GenericError:          "#FF0000",
	chroma.GenericEmph:           "italic",
	chroma.GenericStrong:         "bold",
	chroma.GenericPrompt:         "bold #c65d09",
	chroma.GenericOutput:         "#888",
	chroma.GenericTraceback:      "#04D",
	chroma.GenericUnderline:      "underline",
	chroma.Error:                 "border:#FF0000",
	chroma.Background:            " bg:#f0f0f0",
}))

Friendly style.

View Source
var Fruity = Register(chroma.MustNewStyle("fruity", chroma.StyleEntries{
	chroma.TextWhitespace:    "#888888",
	chroma.Background:        "#ffffff bg:#111111",
	chroma.GenericOutput:     "#444444 bg:#222222",
	chroma.Keyword:           "#fb660a bold",
	chroma.KeywordPseudo:     "nobold",
	chroma.LiteralNumber:     "#0086f7 bold",
	chroma.NameTag:           "#fb660a bold",
	chroma.NameVariable:      "#fb660a",
	chroma.Comment:           "#008800 bg:#0f140f italic",
	chroma.NameAttribute:     "#ff0086 bold",
	chroma.LiteralString:     "#0086d2",
	chroma.NameFunction:      "#ff0086 bold",
	chroma.GenericHeading:    "#ffffff bold",
	chroma.KeywordType:       "#cdcaa9 bold",
	chroma.GenericSubheading: "#ffffff bold",
	chroma.NameConstant:      "#0086d2",
	chroma.CommentPreproc:    "#ff0007 bold",
}))

Fruity style.

View Source
var GitHub = Register(chroma.MustNewStyle("github", chroma.StyleEntries{
	chroma.CommentMultiline:     "italic #999988",
	chroma.CommentPreproc:       "bold #999999",
	chroma.CommentSingle:        "italic #999988",
	chroma.CommentSpecial:       "bold italic #999999",
	chroma.Comment:              "italic #999988",
	chroma.Error:                "bg:#e3d2d2 #a61717",
	chroma.GenericDeleted:       "bg:#ffdddd #000000",
	chroma.GenericEmph:          "italic #000000",
	chroma.GenericError:         "#aa0000",
	chroma.GenericHeading:       "#999999",
	chroma.GenericInserted:      "bg:#ddffdd #000000",
	chroma.GenericOutput:        "#888888",
	chroma.GenericPrompt:        "#555555",
	chroma.GenericStrong:        "bold",
	chroma.GenericSubheading:    "#aaaaaa",
	chroma.GenericTraceback:     "#aa0000",
	chroma.GenericUnderline:     "underline",
	chroma.KeywordType:          "bold #445588",
	chroma.Keyword:              "bold #000000",
	chroma.LiteralNumber:        "#009999",
	chroma.LiteralStringRegex:   "#009926",
	chroma.LiteralStringSymbol:  "#990073",
	chroma.LiteralString:        "#d14",
	chroma.NameAttribute:        "#008080",
	chroma.NameBuiltinPseudo:    "#999999",
	chroma.NameBuiltin:          "#0086B3",
	chroma.NameClass:            "bold #445588",
	chroma.NameConstant:         "#008080",
	chroma.NameDecorator:        "bold #3c5d5d",
	chroma.NameEntity:           "#800080",
	chroma.NameException:        "bold #990000",
	chroma.NameFunction:         "bold #990000",
	chroma.NameLabel:            "bold #990000",
	chroma.NameNamespace:        "#555555",
	chroma.NameTag:              "#000080",
	chroma.NameVariableClass:    "#008080",
	chroma.NameVariableGlobal:   "#008080",
	chroma.NameVariableInstance: "#008080",
	chroma.NameVariable:         "#008080",
	chroma.Operator:             "bold #000000",
	chroma.TextWhitespace:       "#bbbbbb",
	chroma.Background:           " bg:#ffffff",
}))

GitHub style.

View Source
var Gruvbox = Register(chroma.MustNewStyle("gruvbox", chroma.StyleEntries{
	chroma.CommentPreproc:      "noinherit #8ec07c",
	chroma.Comment:             "#928374 italic",
	chroma.GenericDeleted:      "noinherit #282828 bg:#fb4934",
	chroma.GenericEmph:         "#83a598 underline",
	chroma.GenericError:        "bg:#fb4934 bold",
	chroma.GenericHeading:      "#b8bb26 bold",
	chroma.GenericInserted:     "noinherit #282828 bg:#b8bb26",
	chroma.GenericOutput:       "noinherit #504945",
	chroma.GenericPrompt:       "#ebdbb2",
	chroma.GenericStrong:       "#ebdbb2",
	chroma.GenericSubheading:   "#b8bb26 bold",
	chroma.GenericTraceback:    "bg:#fb4934 bold",
	chroma.Generic:             "#ebdbb2",
	chroma.KeywordType:         "noinherit #fabd2f",
	chroma.Keyword:             "noinherit #fe8019",
	chroma.NameAttribute:       "#b8bb26 bold",
	chroma.NameBuiltin:         "#fabd2f",
	chroma.NameConstant:        "noinherit #d3869b",
	chroma.NameEntity:          "noinherit #fabd2f",
	chroma.NameException:       "noinherit #fb4934",
	chroma.NameFunction:        "#fabd2f",
	chroma.NameLabel:           "noinherit #fb4934",
	chroma.NameTag:             "noinherit #fb4934",
	chroma.NameVariable:        "noinherit #ebdbb2",
	chroma.Name:                "#ebdbb2",
	chroma.LiteralNumberFloat:  "noinherit #d3869b",
	chroma.LiteralNumber:       "noinherit #d3869b",
	chroma.Operator:            "#fe8019",
	chroma.LiteralStringSymbol: "#83a598",
	chroma.LiteralString:       "noinherit #b8bb26",
	chroma.Background:          "noinherit #ebdbb2 bg:#282828 bg:#282828",
}))

Gruvbox style.

View Source
var HrDark = Register(chroma.MustNewStyle("hrdark", chroma.StyleEntries{
	chroma.Comment:      "italic #828b96",
	chroma.Keyword:      "#ff636f",
	chroma.OperatorWord: "#ff636f",
	chroma.Name:         "#58a1dd",
	chroma.Literal:      "#a6be9d",
	chroma.Operator:     "#ff636f",
	chroma.Background:   "#1d2432",
	chroma.Other:        "#fff",
}))

Theme based on HackerRank Dark Editor theme

View Source
var HrHighContrast = Register(chroma.MustNewStyle("hr_high_contrast", chroma.StyleEntries{
	chroma.Comment:              "#5a8349",
	chroma.Keyword:              "#467faf",
	chroma.OperatorWord:         "#467faf",
	chroma.Name:                 "#ffffff",
	chroma.LiteralString:        "#a87662",
	chroma.LiteralNumber:        "#fff",
	chroma.LiteralStringBoolean: "#467faf",
	chroma.Operator:             "#e4e400",
	chroma.Background:           "#000",
	chroma.Other:                "#d5d500",
}))

Theme based on HackerRank High Contrast Editor Theme

View Source
var Igor = Register(chroma.MustNewStyle("igor", chroma.StyleEntries{
	chroma.Comment:       "italic #FF0000",
	chroma.Keyword:       "#0000FF",
	chroma.NameFunction:  "#C34E00",
	chroma.NameDecorator: "#CC00A3",
	chroma.NameClass:     "#007575",
	chroma.LiteralString: "#009C00",
	chroma.Background:    " bg:#ffffff",
}))

Igor style.

View Source
var Lovelace = Register(chroma.MustNewStyle("lovelace", chroma.StyleEntries{
	chroma.TextWhitespace:         "#a89028",
	chroma.Comment:                "italic #888888",
	chroma.CommentHashbang:        "#287088",
	chroma.CommentMultiline:       "#888888",
	chroma.CommentPreproc:         "noitalic #289870",
	chroma.Keyword:                "#2838b0",
	chroma.KeywordConstant:        "italic #444444",
	chroma.KeywordDeclaration:     "italic",
	chroma.KeywordType:            "italic",
	chroma.Operator:               "#666666",
	chroma.OperatorWord:           "#a848a8",
	chroma.Punctuation:            "#888888",
	chroma.NameAttribute:          "#388038",
	chroma.NameBuiltin:            "#388038",
	chroma.NameBuiltinPseudo:      "italic",
	chroma.NameClass:              "#287088",
	chroma.NameConstant:           "#b85820",
	chroma.NameDecorator:          "#287088",
	chroma.NameEntity:             "#709030",
	chroma.NameException:          "#908828",
	chroma.NameFunction:           "#785840",
	chroma.NameFunctionMagic:      "#b85820",
	chroma.NameLabel:              "#289870",
	chroma.NameNamespace:          "#289870",
	chroma.NameTag:                "#2838b0",
	chroma.NameVariable:           "#b04040",
	chroma.NameVariableGlobal:     "#908828",
	chroma.NameVariableMagic:      "#b85820",
	chroma.LiteralString:          "#b83838",
	chroma.LiteralStringAffix:     "#444444",
	chroma.LiteralStringChar:      "#a848a8",
	chroma.LiteralStringDelimiter: "#b85820",
	chroma.LiteralStringDoc:       "italic #b85820",
	chroma.LiteralStringEscape:    "#709030",
	chroma.LiteralStringInterpol:  "underline",
	chroma.LiteralStringOther:     "#a848a8",
	chroma.LiteralStringRegex:     "#a848a8",
	chroma.LiteralNumber:          "#444444",
	chroma.GenericDeleted:         "#c02828",
	chroma.GenericEmph:            "italic",
	chroma.GenericError:           "#c02828",
	chroma.GenericHeading:         "#666666",
	chroma.GenericSubheading:      "#444444",
	chroma.GenericInserted:        "#388038",
	chroma.GenericOutput:          "#666666",
	chroma.GenericPrompt:          "#444444",
	chroma.GenericStrong:          "bold",
	chroma.GenericTraceback:       "#2838b0",
	chroma.GenericUnderline:       "underline",
	chroma.Error:                  "bg:#a848a8",
	chroma.Background:             " bg:#ffffff",
}))

Lovelace style.

View Source
var Manni = Register(chroma.MustNewStyle("manni", chroma.StyleEntries{
	chroma.TextWhitespace:        "#bbbbbb",
	chroma.Comment:               "italic #0099FF",
	chroma.CommentPreproc:        "noitalic #009999",
	chroma.CommentSpecial:        "bold",
	chroma.Keyword:               "bold #006699",
	chroma.KeywordPseudo:         "nobold",
	chroma.KeywordType:           "#007788",
	chroma.Operator:              "#555555",
	chroma.OperatorWord:          "bold #000000",
	chroma.NameBuiltin:           "#336666",
	chroma.NameFunction:          "#CC00FF",
	chroma.NameClass:             "bold #00AA88",
	chroma.NameNamespace:         "bold #00CCFF",
	chroma.NameException:         "bold #CC0000",
	chroma.NameVariable:          "#003333",
	chroma.NameConstant:          "#336600",
	chroma.NameLabel:             "#9999FF",
	chroma.NameEntity:            "bold #999999",
	chroma.NameAttribute:         "#330099",
	chroma.NameTag:               "bold #330099",
	chroma.NameDecorator:         "#9999FF",
	chroma.LiteralString:         "#CC3300",
	chroma.LiteralStringDoc:      "italic",
	chroma.LiteralStringInterpol: "#AA0000",
	chroma.LiteralStringEscape:   "bold #CC3300",
	chroma.LiteralStringRegex:    "#33AAAA",
	chroma.LiteralStringSymbol:   "#FFCC33",
	chroma.LiteralStringOther:    "#CC3300",
	chroma.LiteralNumber:         "#FF6600",
	chroma.GenericHeading:        "bold #003300",
	chroma.GenericSubheading:     "bold #003300",
	chroma.GenericDeleted:        "border:#CC0000 bg:#FFCCCC",
	chroma.GenericInserted:       "border:#00CC00 bg:#CCFFCC",
	chroma.GenericError:          "#FF0000",
	chroma.GenericEmph:           "italic",
	chroma.GenericStrong:         "bold",
	chroma.GenericPrompt:         "bold #000099",
	chroma.GenericOutput:         "#AAAAAA",
	chroma.GenericTraceback:      "#99CC66",
	chroma.GenericUnderline:      "underline",
	chroma.Error:                 "bg:#FFAAAA #AA0000",
	chroma.Background:            " bg:#f0f3f3",
}))

Manni style.

View Source
var Monokai = Register(chroma.MustNewStyle("monokai", chroma.StyleEntries{
	chroma.Text:                "#f8f8f2",
	chroma.Error:               "#960050 bg:#1e0010",
	chroma.Comment:             "#75715e",
	chroma.Keyword:             "#66d9ef",
	chroma.KeywordNamespace:    "#f92672",
	chroma.Operator:            "#f92672",
	chroma.Punctuation:         "#f8f8f2",
	chroma.Name:                "#f8f8f2",
	chroma.NameAttribute:       "#a6e22e",
	chroma.NameClass:           "#a6e22e",
	chroma.NameConstant:        "#66d9ef",
	chroma.NameDecorator:       "#a6e22e",
	chroma.NameException:       "#a6e22e",
	chroma.NameFunction:        "#a6e22e",
	chroma.NameOther:           "#a6e22e",
	chroma.NameTag:             "#f92672",
	chroma.LiteralNumber:       "#ae81ff",
	chroma.Literal:             "#ae81ff",
	chroma.LiteralDate:         "#e6db74",
	chroma.LiteralString:       "#e6db74",
	chroma.LiteralStringEscape: "#ae81ff",
	chroma.GenericDeleted:      "#f92672",
	chroma.GenericEmph:         "italic",
	chroma.GenericInserted:     "#a6e22e",
	chroma.GenericStrong:       "bold",
	chroma.GenericSubheading:   "#75715e",
	chroma.Background:          "bg:#272822",
}))

Monokai style.

View Source
var MonokaiLight = Register(chroma.MustNewStyle("monokailight", chroma.StyleEntries{
	chroma.Text:                "#272822",
	chroma.Error:               "#960050 bg:#1e0010",
	chroma.Comment:             "#75715e",
	chroma.Keyword:             "#00a8c8",
	chroma.KeywordNamespace:    "#f92672",
	chroma.Operator:            "#f92672",
	chroma.Punctuation:         "#111111",
	chroma.Name:                "#111111",
	chroma.NameAttribute:       "#75af00",
	chroma.NameClass:           "#75af00",
	chroma.NameConstant:        "#00a8c8",
	chroma.NameDecorator:       "#75af00",
	chroma.NameException:       "#75af00",
	chroma.NameFunction:        "#75af00",
	chroma.NameOther:           "#75af00",
	chroma.NameTag:             "#f92672",
	chroma.LiteralNumber:       "#ae81ff",
	chroma.Literal:             "#ae81ff",
	chroma.LiteralDate:         "#d88200",
	chroma.LiteralString:       "#d88200",
	chroma.LiteralStringEscape: "#8045FF",
	chroma.GenericEmph:         "italic",
	chroma.GenericStrong:       "bold",
	chroma.Background:          " bg:#fafafa",
}))

MonokaiLight style.

View Source
var Murphy = Register(chroma.MustNewStyle("murphy", chroma.StyleEntries{
	chroma.TextWhitespace:        "#bbbbbb",
	chroma.Comment:               "#666 italic",
	chroma.CommentPreproc:        "#579 noitalic",
	chroma.CommentSpecial:        "#c00 bold",
	chroma.Keyword:               "bold #289",
	chroma.KeywordPseudo:         "#08f",
	chroma.KeywordType:           "#66f",
	chroma.Operator:              "#333",
	chroma.OperatorWord:          "bold #000",
	chroma.NameBuiltin:           "#072",
	chroma.NameFunction:          "bold #5ed",
	chroma.NameClass:             "bold #e9e",
	chroma.NameNamespace:         "bold #0e84b5",
	chroma.NameException:         "bold #F00",
	chroma.NameVariable:          "#036",
	chroma.NameVariableInstance:  "#aaf",
	chroma.NameVariableClass:     "#ccf",
	chroma.NameVariableGlobal:    "#f84",
	chroma.NameConstant:          "bold #5ed",
	chroma.NameLabel:             "bold #970",
	chroma.NameEntity:            "#800",
	chroma.NameAttribute:         "#007",
	chroma.NameTag:               "#070",
	chroma.NameDecorator:         "bold #555",
	chroma.LiteralString:         "bg:#e0e0ff",
	chroma.LiteralStringChar:     "#88F bg:",
	chroma.LiteralStringDoc:      "#D42 bg:",
	chroma.LiteralStringInterpol: "bg:#eee",
	chroma.LiteralStringEscape:   "bold #666",
	chroma.LiteralStringRegex:    "bg:#e0e0ff #000",
	chroma.LiteralStringSymbol:   "#fc8 bg:",
	chroma.LiteralStringOther:    "#f88",
	chroma.LiteralNumber:         "bold #60E",
	chroma.LiteralNumberInteger:  "bold #66f",
	chroma.LiteralNumberFloat:    "bold #60E",
	chroma.LiteralNumberHex:      "bold #058",
	chroma.LiteralNumberOct:      "bold #40E",
	chroma.GenericHeading:        "bold #000080",
	chroma.GenericSubheading:     "bold #800080",
	chroma.GenericDeleted:        "#A00000",
	chroma.GenericInserted:       "#00A000",
	chroma.GenericError:          "#FF0000",
	chroma.GenericEmph:           "italic",
	chroma.GenericStrong:         "bold",
	chroma.GenericPrompt:         "bold #c65d09",
	chroma.GenericOutput:         "#888",
	chroma.GenericTraceback:      "#04D",
	chroma.GenericUnderline:      "underline",
	chroma.Error:                 "#F00 bg:#FAA",
	chroma.Background:            " bg:#ffffff",
}))

Murphy style.

View Source
var Native = Register(chroma.MustNewStyle("native", chroma.StyleEntries{
	chroma.Background:         "#d0d0d0 bg:#202020",
	chroma.TextWhitespace:     "#666666",
	chroma.Comment:            "italic #999999",
	chroma.CommentPreproc:     "noitalic bold #cd2828",
	chroma.CommentSpecial:     "noitalic bold #e50808 bg:#520000",
	chroma.Keyword:            "bold #6ab825",
	chroma.KeywordPseudo:      "nobold",
	chroma.OperatorWord:       "bold #6ab825",
	chroma.LiteralString:      "#ed9d13",
	chroma.LiteralStringOther: "#ffa500",
	chroma.LiteralNumber:      "#3677a9",
	chroma.NameBuiltin:        "#24909d",
	chroma.NameVariable:       "#40ffff",
	chroma.NameConstant:       "#40ffff",
	chroma.NameClass:          "underline #447fcf",
	chroma.NameFunction:       "#447fcf",
	chroma.NameNamespace:      "underline #447fcf",
	chroma.NameException:      "#bbbbbb",
	chroma.NameTag:            "bold #6ab825",
	chroma.NameAttribute:      "#bbbbbb",
	chroma.NameDecorator:      "#ffa500",
	chroma.GenericHeading:     "bold #ffffff",
	chroma.GenericSubheading:  "underline #ffffff",
	chroma.GenericDeleted:     "#d22323",
	chroma.GenericInserted:    "#589819",
	chroma.GenericError:       "#d22323",
	chroma.GenericEmph:        "italic",
	chroma.GenericStrong:      "bold",
	chroma.GenericPrompt:      "#aaaaaa",
	chroma.GenericOutput:      "#cccccc",
	chroma.GenericTraceback:   "#d22323",
	chroma.GenericUnderline:   "underline",
	chroma.Error:              "bg:#e3d2d2 #a61717",
}))

Native style.

View Source
var Nord = Register(chroma.MustNewStyle("nord", chroma.StyleEntries{
	chroma.TextWhitespace:        nord4,
	chroma.Comment:               "italic " + nord3b,
	chroma.CommentPreproc:        nord10,
	chroma.Keyword:               "bold " + nord9,
	chroma.KeywordPseudo:         "nobold " + nord9,
	chroma.KeywordType:           "nobold " + nord9,
	chroma.Operator:              nord9,
	chroma.OperatorWord:          "bold " + nord9,
	chroma.Name:                  nord4,
	chroma.NameBuiltin:           nord9,
	chroma.NameFunction:          nord8,
	chroma.NameClass:             nord7,
	chroma.NameNamespace:         nord7,
	chroma.NameException:         nord11,
	chroma.NameVariable:          nord4,
	chroma.NameConstant:          nord7,
	chroma.NameLabel:             nord7,
	chroma.NameEntity:            nord12,
	chroma.NameAttribute:         nord7,
	chroma.NameTag:               nord9,
	chroma.NameDecorator:         nord12,
	chroma.Punctuation:           nord6,
	chroma.LiteralString:         nord14,
	chroma.LiteralStringDoc:      nord3b,
	chroma.LiteralStringInterpol: nord14,
	chroma.LiteralStringEscape:   nord13,
	chroma.LiteralStringRegex:    nord13,
	chroma.LiteralStringSymbol:   nord14,
	chroma.LiteralStringOther:    nord14,
	chroma.LiteralNumber:         nord15,
	chroma.GenericHeading:        "bold " + nord8,
	chroma.GenericSubheading:     "bold " + nord8,
	chroma.GenericDeleted:        nord11,
	chroma.GenericInserted:       nord14,
	chroma.GenericError:          nord11,
	chroma.GenericEmph:           "italic",
	chroma.GenericStrong:         "bold",
	chroma.GenericPrompt:         "bold " + nord3,
	chroma.GenericOutput:         nord4,
	chroma.GenericTraceback:      nord11,
	chroma.Error:                 nord11,
	chroma.Background:            nord4 + " bg:" + nord0,
}))

Nord, an arctic, north-bluish color palette

View Source
var OnesEnterprise = Register(chroma.MustNewStyle("onesenterprise", chroma.StyleEntries{
	chroma.Text:           "#000000",
	chroma.Comment:        "#008000",
	chroma.CommentPreproc: "#963200",
	chroma.Operator:       "#FF0000",
	chroma.Keyword:        "#FF0000",
	chroma.Punctuation:    "#FF0000",
	chroma.LiteralString:  "#000000",
	chroma.Name:           "#0000FF",
}))

1S:Designer color palette

View Source
var ParaisoDark = Register(chroma.MustNewStyle("paraiso-dark", chroma.StyleEntries{
	chroma.Text:                  "#e7e9db",
	chroma.Error:                 "#ef6155",
	chroma.Comment:               "#776e71",
	chroma.Keyword:               "#815ba4",
	chroma.KeywordNamespace:      "#5bc4bf",
	chroma.KeywordType:           "#fec418",
	chroma.Operator:              "#5bc4bf",
	chroma.Punctuation:           "#e7e9db",
	chroma.Name:                  "#e7e9db",
	chroma.NameAttribute:         "#06b6ef",
	chroma.NameClass:             "#fec418",
	chroma.NameConstant:          "#ef6155",
	chroma.NameDecorator:         "#5bc4bf",
	chroma.NameException:         "#ef6155",
	chroma.NameFunction:          "#06b6ef",
	chroma.NameNamespace:         "#fec418",
	chroma.NameOther:             "#06b6ef",
	chroma.NameTag:               "#5bc4bf",
	chroma.NameVariable:          "#ef6155",
	chroma.LiteralNumber:         "#f99b15",
	chroma.Literal:               "#f99b15",
	chroma.LiteralDate:           "#48b685",
	chroma.LiteralString:         "#48b685",
	chroma.LiteralStringChar:     "#e7e9db",
	chroma.LiteralStringDoc:      "#776e71",
	chroma.LiteralStringEscape:   "#f99b15",
	chroma.LiteralStringInterpol: "#f99b15",
	chroma.GenericDeleted:        "#ef6155",
	chroma.GenericEmph:           "italic",
	chroma.GenericHeading:        "bold #e7e9db",
	chroma.GenericInserted:       "#48b685",
	chroma.GenericPrompt:         "bold #776e71",
	chroma.GenericStrong:         "bold",
	chroma.GenericSubheading:     "bold #5bc4bf",
	chroma.Background:            "bg:#2f1e2e",
}))

ParaisoDark style.

View Source
var ParaisoLight = Register(chroma.MustNewStyle("paraiso-light", chroma.StyleEntries{
	chroma.Text:                  "#2f1e2e",
	chroma.Error:                 "#ef6155",
	chroma.Comment:               "#8d8687",
	chroma.Keyword:               "#815ba4",
	chroma.KeywordNamespace:      "#5bc4bf",
	chroma.KeywordType:           "#fec418",
	chroma.Operator:              "#5bc4bf",
	chroma.Punctuation:           "#2f1e2e",
	chroma.Name:                  "#2f1e2e",
	chroma.NameAttribute:         "#06b6ef",
	chroma.NameClass:             "#fec418",
	chroma.NameConstant:          "#ef6155",
	chroma.NameDecorator:         "#5bc4bf",
	chroma.NameException:         "#ef6155",
	chroma.NameFunction:          "#06b6ef",
	chroma.NameNamespace:         "#fec418",
	chroma.NameOther:             "#06b6ef",
	chroma.NameTag:               "#5bc4bf",
	chroma.NameVariable:          "#ef6155",
	chroma.LiteralNumber:         "#f99b15",
	chroma.Literal:               "#f99b15",
	chroma.LiteralDate:           "#48b685",
	chroma.LiteralString:         "#48b685",
	chroma.LiteralStringChar:     "#2f1e2e",
	chroma.LiteralStringDoc:      "#8d8687",
	chroma.LiteralStringEscape:   "#f99b15",
	chroma.LiteralStringInterpol: "#f99b15",
	chroma.GenericDeleted:        "#ef6155",
	chroma.GenericEmph:           "italic",
	chroma.GenericHeading:        "bold #2f1e2e",
	chroma.GenericInserted:       "#48b685",
	chroma.GenericPrompt:         "bold #8d8687",
	chroma.GenericStrong:         "bold",
	chroma.GenericSubheading:     "bold #5bc4bf",
	chroma.Background:            "bg:#e7e9db",
}))

ParaisoLight style.

View Source
var Pastie = Register(chroma.MustNewStyle("pastie", chroma.StyleEntries{
	chroma.TextWhitespace:        "#bbbbbb",
	chroma.Comment:               "#888888",
	chroma.CommentPreproc:        "bold #cc0000",
	chroma.CommentSpecial:        "bg:#fff0f0 bold #cc0000",
	chroma.LiteralString:         "bg:#fff0f0 #dd2200",
	chroma.LiteralStringRegex:    "bg:#fff0ff #008800",
	chroma.LiteralStringOther:    "bg:#f0fff0 #22bb22",
	chroma.LiteralStringSymbol:   "#aa6600",
	chroma.LiteralStringInterpol: "#3333bb",
	chroma.LiteralStringEscape:   "#0044dd",
	chroma.OperatorWord:          "#008800",
	chroma.Keyword:               "bold #008800",
	chroma.KeywordPseudo:         "nobold",
	chroma.KeywordType:           "#888888",
	chroma.NameClass:             "bold #bb0066",
	chroma.NameException:         "bold #bb0066",
	chroma.NameFunction:          "bold #0066bb",
	chroma.NameProperty:          "bold #336699",
	chroma.NameNamespace:         "bold #bb0066",
	chroma.NameBuiltin:           "#003388",
	chroma.NameVariable:          "#336699",
	chroma.NameVariableClass:     "#336699",
	chroma.NameVariableInstance:  "#3333bb",
	chroma.NameVariableGlobal:    "#dd7700",
	chroma.NameConstant:          "bold #003366",
	chroma.NameTag:               "bold #bb0066",
	chroma.NameAttribute:         "#336699",
	chroma.NameDecorator:         "#555555",
	chroma.NameLabel:             "italic #336699",
	chroma.LiteralNumber:         "bold #0000DD",
	chroma.GenericHeading:        "#333",
	chroma.GenericSubheading:     "#666",
	chroma.GenericDeleted:        "bg:#ffdddd #000000",
	chroma.GenericInserted:       "bg:#ddffdd #000000",
	chroma.GenericError:          "#aa0000",
	chroma.GenericEmph:           "italic",
	chroma.GenericStrong:         "bold",
	chroma.GenericPrompt:         "#555555",
	chroma.GenericOutput:         "#888888",
	chroma.GenericTraceback:      "#aa0000",
	chroma.GenericUnderline:      "underline",
	chroma.Error:                 "bg:#e3d2d2 #a61717",
	chroma.Background:            " bg:#ffffff",
}))

Pastie style.

View Source
var Perldoc = Register(chroma.MustNewStyle("perldoc", chroma.StyleEntries{
	chroma.TextWhitespace:       "#bbbbbb",
	chroma.Comment:              "#228B22",
	chroma.CommentPreproc:       "#1e889b",
	chroma.CommentSpecial:       "#8B008B bold",
	chroma.LiteralString:        "#CD5555",
	chroma.LiteralStringHeredoc: "#1c7e71 italic",
	chroma.LiteralStringRegex:   "#1c7e71",
	chroma.LiteralStringOther:   "#cb6c20",
	chroma.LiteralNumber:        "#B452CD",
	chroma.OperatorWord:         "#8B008B",
	chroma.Keyword:              "#8B008B bold",
	chroma.KeywordType:          "#00688B",
	chroma.NameClass:            "#008b45 bold",
	chroma.NameException:        "#008b45 bold",
	chroma.NameFunction:         "#008b45",
	chroma.NameNamespace:        "#008b45 underline",
	chroma.NameVariable:         "#00688B",
	chroma.NameConstant:         "#00688B",
	chroma.NameDecorator:        "#707a7c",
	chroma.NameTag:              "#8B008B bold",
	chroma.NameAttribute:        "#658b00",
	chroma.NameBuiltin:          "#658b00",
	chroma.GenericHeading:       "bold #000080",
	chroma.GenericSubheading:    "bold #800080",
	chroma.GenericDeleted:       "#aa0000",
	chroma.GenericInserted:      "#00aa00",
	chroma.GenericError:         "#aa0000",
	chroma.GenericEmph:          "italic",
	chroma.GenericStrong:        "bold",
	chroma.GenericPrompt:        "#555555",
	chroma.GenericOutput:        "#888888",
	chroma.GenericTraceback:     "#aa0000",
	chroma.GenericUnderline:     "underline",
	chroma.Error:                "bg:#e3d2d2 #a61717",
	chroma.Background:           " bg:#eeeedd",
}))

Perldoc style.

View Source
var Pygments = Register(chroma.MustNewStyle("pygments", chroma.StyleEntries{
	chroma.Whitespace:     "#bbbbbb",
	chroma.Comment:        "italic #408080",
	chroma.CommentPreproc: "noitalic #BC7A00",

	chroma.Keyword:       "bold #008000",
	chroma.KeywordPseudo: "nobold",
	chroma.KeywordType:   "nobold #B00040",

	chroma.Operator:     "#666666",
	chroma.OperatorWord: "bold #AA22FF",

	chroma.NameBuiltin:   "#008000",
	chroma.NameFunction:  "#0000FF",
	chroma.NameClass:     "bold #0000FF",
	chroma.NameNamespace: "bold #0000FF",
	chroma.NameException: "bold #D2413A",
	chroma.NameVariable:  "#19177C",
	chroma.NameConstant:  "#880000",
	chroma.NameLabel:     "#A0A000",
	chroma.NameEntity:    "bold #999999",
	chroma.NameAttribute: "#7D9029",
	chroma.NameTag:       "bold #008000",
	chroma.NameDecorator: "#AA22FF",

	chroma.String:         "#BA2121",
	chroma.StringDoc:      "italic",
	chroma.StringInterpol: "bold #BB6688",
	chroma.StringEscape:   "bold #BB6622",
	chroma.StringRegex:    "#BB6688",
	chroma.StringSymbol:   "#19177C",
	chroma.StringOther:    "#008000",
	chroma.Number:         "#666666",

	chroma.GenericHeading:    "bold #000080",
	chroma.GenericSubheading: "bold #800080",
	chroma.GenericDeleted:    "#A00000",
	chroma.GenericInserted:   "#00A000",
	chroma.GenericError:      "#FF0000",
	chroma.GenericEmph:       "italic",
	chroma.GenericStrong:     "bold",
	chroma.GenericPrompt:     "bold #000080",
	chroma.GenericOutput:     "#888",
	chroma.GenericTraceback:  "#04D",
	chroma.GenericUnderline:  "underline",

	chroma.Error: "border:#FF0000",
}))

Pygments default theme.

View Source
var RainbowDash = Register(chroma.MustNewStyle("rainbow_dash", chroma.StyleEntries{
	chroma.Comment:             "italic #0080ff",
	chroma.CommentPreproc:      "noitalic",
	chroma.CommentSpecial:      "bold",
	chroma.Error:               "bg:#cc0000 #ffffff",
	chroma.GenericDeleted:      "border:#c5060b bg:#ffcccc",
	chroma.GenericEmph:         "italic",
	chroma.GenericError:        "#ff0000",
	chroma.GenericHeading:      "bold #2c5dcd",
	chroma.GenericInserted:     "border:#00cc00 bg:#ccffcc",
	chroma.GenericOutput:       "#aaaaaa",
	chroma.GenericPrompt:       "bold #2c5dcd",
	chroma.GenericStrong:       "bold",
	chroma.GenericSubheading:   "bold #2c5dcd",
	chroma.GenericTraceback:    "#c5060b",
	chroma.GenericUnderline:    "underline",
	chroma.Keyword:             "bold #2c5dcd",
	chroma.KeywordPseudo:       "nobold",
	chroma.KeywordType:         "#5918bb",
	chroma.NameAttribute:       "italic #2c5dcd",
	chroma.NameBuiltin:         "bold #5918bb",
	chroma.NameClass:           "underline",
	chroma.NameConstant:        "#318495",
	chroma.NameDecorator:       "bold #ff8000",
	chroma.NameEntity:          "bold #5918bb",
	chroma.NameException:       "bold #5918bb",
	chroma.NameFunction:        "bold #ff8000",
	chroma.NameTag:             "bold #2c5dcd",
	chroma.LiteralNumber:       "bold #5918bb",
	chroma.Operator:            "#2c5dcd",
	chroma.OperatorWord:        "bold",
	chroma.LiteralString:       "#00cc66",
	chroma.LiteralStringDoc:    "italic",
	chroma.LiteralStringEscape: "bold #c5060b",
	chroma.LiteralStringOther:  "#318495",
	chroma.LiteralStringSymbol: "bold #c5060b",
	chroma.Text:                "#4d4d4d",
	chroma.TextWhitespace:      "#cbcbcb",
	chroma.Background:          " bg:#ffffff",
}))

RainbowDash style.

View Source
var Registry = map[string]*chroma.Style{}

Registry of Styles.

View Source
var Rrt = Register(chroma.MustNewStyle("rrt", chroma.StyleEntries{
	chroma.CommentPreproc:      "#e5e5e5",
	chroma.Comment:             "#00ff00",
	chroma.KeywordType:         "#ee82ee",
	chroma.Keyword:             "#ff0000",
	chroma.LiteralNumber:       "#ff6600",
	chroma.LiteralStringSymbol: "#ff6600",
	chroma.LiteralString:       "#87ceeb",
	chroma.NameFunction:        "#ffff00",
	chroma.NameConstant:        "#7fffd4",
	chroma.NameVariable:        "#eedd82",
	chroma.Background:          "#f8f8f2 bg:#000000",
}))

Rrt style.

View Source
var SolarizedDark = Register(chroma.MustNewStyle("solarized-dark", chroma.StyleEntries{
	chroma.Keyword:               "#719e07",
	chroma.KeywordConstant:       "#CB4B16",
	chroma.KeywordDeclaration:    "#268BD2",
	chroma.KeywordReserved:       "#268BD2",
	chroma.KeywordType:           "#DC322F",
	chroma.NameAttribute:         "#93A1A1",
	chroma.NameBuiltin:           "#B58900",
	chroma.NameBuiltinPseudo:     "#268BD2",
	chroma.NameClass:             "#268BD2",
	chroma.NameConstant:          "#CB4B16",
	chroma.NameDecorator:         "#268BD2",
	chroma.NameEntity:            "#CB4B16",
	chroma.NameException:         "#CB4B16",
	chroma.NameFunction:          "#268BD2",
	chroma.NameTag:               "#268BD2",
	chroma.NameVariable:          "#268BD2",
	chroma.LiteralString:         "#2AA198",
	chroma.LiteralStringBacktick: "#586E75",
	chroma.LiteralStringChar:     "#2AA198",
	chroma.LiteralStringDoc:      "#93A1A1",
	chroma.LiteralStringEscape:   "#CB4B16",
	chroma.LiteralStringHeredoc:  "#93A1A1",
	chroma.LiteralStringRegex:    "#DC322F",
	chroma.LiteralNumber:         "#2AA198",
	chroma.Operator:              "#719e07",
	chroma.Comment:               "#586E75",
	chroma.CommentPreproc:        "#719e07",
	chroma.CommentSpecial:        "#719e07",
	chroma.GenericDeleted:        "#DC322F",
	chroma.GenericEmph:           "italic",
	chroma.GenericError:          "#DC322F bold",
	chroma.GenericHeading:        "#CB4B16",
	chroma.GenericInserted:       "#719e07",
	chroma.GenericStrong:         "bold",
	chroma.GenericSubheading:     "#268BD2",
	chroma.Background:            "#93A1A1 bg:#002B36",
	chroma.Other:                 "#CB4B16",
}))

SolarizedDark style.

View Source
var SolarizedDark256 = Register(chroma.MustNewStyle("solarized-dark256", chroma.StyleEntries{
	chroma.Keyword:               "#5f8700",
	chroma.KeywordConstant:       "#d75f00",
	chroma.KeywordDeclaration:    "#0087ff",
	chroma.KeywordNamespace:      "#d75f00",
	chroma.KeywordReserved:       "#0087ff",
	chroma.KeywordType:           "#af0000",
	chroma.NameAttribute:         "#8a8a8a",
	chroma.NameBuiltin:           "#0087ff",
	chroma.NameBuiltinPseudo:     "#0087ff",
	chroma.NameClass:             "#0087ff",
	chroma.NameConstant:          "#d75f00",
	chroma.NameDecorator:         "#0087ff",
	chroma.NameEntity:            "#d75f00",
	chroma.NameException:         "#af8700",
	chroma.NameFunction:          "#0087ff",
	chroma.NameTag:               "#0087ff",
	chroma.NameVariable:          "#0087ff",
	chroma.LiteralString:         "#00afaf",
	chroma.LiteralStringBacktick: "#4e4e4e",
	chroma.LiteralStringChar:     "#00afaf",
	chroma.LiteralStringDoc:      "#00afaf",
	chroma.LiteralStringEscape:   "#af0000",
	chroma.LiteralStringHeredoc:  "#00afaf",
	chroma.LiteralStringRegex:    "#af0000",
	chroma.LiteralNumber:         "#00afaf",
	chroma.Operator:              "#8a8a8a",
	chroma.OperatorWord:          "#5f8700",
	chroma.Comment:               "#4e4e4e",
	chroma.CommentPreproc:        "#5f8700",
	chroma.CommentSpecial:        "#5f8700",
	chroma.GenericDeleted:        "#af0000",
	chroma.GenericEmph:           "italic",
	chroma.GenericError:          "#af0000 bold",
	chroma.GenericHeading:        "#d75f00",
	chroma.GenericInserted:       "#5f8700",
	chroma.GenericStrong:         "bold",
	chroma.GenericSubheading:     "#0087ff",
	chroma.Background:            "#8a8a8a bg:#1c1c1c",
	chroma.Other:                 "#d75f00",
}))

SolarizedDark256 style.

View Source
var SolarizedLight = Register(chroma.MustNewStyle("solarized-light", chroma.StyleEntries{
	chroma.Text:             "bg: #eee8d5 #586e75",
	chroma.Keyword:          "#859900",
	chroma.KeywordConstant:  "bold",
	chroma.KeywordNamespace: "#dc322f bold",
	chroma.KeywordType:      "bold",
	chroma.Name:             "#268bd2",
	chroma.NameBuiltin:      "#cb4b16",
	chroma.NameClass:        "#cb4b16",
	chroma.NameTag:          "bold",
	chroma.Literal:          "#2aa198",
	chroma.LiteralNumber:    "bold",
	chroma.OperatorWord:     "#859900",
	chroma.Comment:          "#93a1a1 italic",
	chroma.Generic:          "#d33682",
	chroma.Background:       " bg:#eee8d5",
}))

SolarizedLight style.

View Source
var SwapOff = Register(chroma.MustNewStyle("swapoff", chroma.StyleEntries{
	chroma.Background:        "#lightgray bg:#black",
	chroma.Number:            "bold #ansiyellow",
	chroma.Comment:           "#ansiteal",
	chroma.CommentPreproc:    "bold #ansigreen",
	chroma.String:            "bold #ansiturquoise",
	chroma.Keyword:           "bold #ansiwhite",
	chroma.NameKeyword:       "bold #ansiwhite",
	chroma.NameBuiltin:       "bold #ansiwhite",
	chroma.GenericHeading:    "bold",
	chroma.GenericSubheading: "bold",
	chroma.GenericStrong:     "bold",
	chroma.GenericUnderline:  "underline",
	chroma.NameTag:           "bold",
	chroma.NameAttribute:     "#ansiteal",
	chroma.Error:             "#ansired",
	chroma.LiteralDate:       "bold #ansiyellow",
}))

SwapOff theme.

View Source
var Tango = Register(chroma.MustNewStyle("tango", chroma.StyleEntries{
	chroma.TextWhitespace:           "underline #f8f8f8",
	chroma.Error:                    "#a40000 border:#ef2929",
	chroma.Other:                    "#000000",
	chroma.Comment:                  "italic #8f5902",
	chroma.CommentMultiline:         "italic #8f5902",
	chroma.CommentPreproc:           "italic #8f5902",
	chroma.CommentSingle:            "italic #8f5902",
	chroma.CommentSpecial:           "italic #8f5902",
	chroma.Keyword:                  "bold #204a87",
	chroma.KeywordConstant:          "bold #204a87",
	chroma.KeywordDeclaration:       "bold #204a87",
	chroma.KeywordNamespace:         "bold #204a87",
	chroma.KeywordPseudo:            "bold #204a87",
	chroma.KeywordReserved:          "bold #204a87",
	chroma.KeywordType:              "bold #204a87",
	chroma.Operator:                 "bold #ce5c00",
	chroma.OperatorWord:             "bold #204a87",
	chroma.Punctuation:              "bold #000000",
	chroma.Name:                     "#000000",
	chroma.NameAttribute:            "#c4a000",
	chroma.NameBuiltin:              "#204a87",
	chroma.NameBuiltinPseudo:        "#3465a4",
	chroma.NameClass:                "#000000",
	chroma.NameConstant:             "#000000",
	chroma.NameDecorator:            "bold #5c35cc",
	chroma.NameEntity:               "#ce5c00",
	chroma.NameException:            "bold #cc0000",
	chroma.NameFunction:             "#000000",
	chroma.NameProperty:             "#000000",
	chroma.NameLabel:                "#f57900",
	chroma.NameNamespace:            "#000000",
	chroma.NameOther:                "#000000",
	chroma.NameTag:                  "bold #204a87",
	chroma.NameVariable:             "#000000",
	chroma.NameVariableClass:        "#000000",
	chroma.NameVariableGlobal:       "#000000",
	chroma.NameVariableInstance:     "#000000",
	chroma.LiteralNumber:            "bold #0000cf",
	chroma.LiteralNumberFloat:       "bold #0000cf",
	chroma.LiteralNumberHex:         "bold #0000cf",
	chroma.LiteralNumberInteger:     "bold #0000cf",
	chroma.LiteralNumberIntegerLong: "bold #0000cf",
	chroma.LiteralNumberOct:         "bold #0000cf",
	chroma.Literal:                  "#000000",
	chroma.LiteralDate:              "#000000",
	chroma.LiteralString:            "#4e9a06",
	chroma.LiteralStringBacktick:    "#4e9a06",
	chroma.LiteralStringChar:        "#4e9a06",
	chroma.LiteralStringDoc:         "italic #8f5902",
	chroma.LiteralStringDouble:      "#4e9a06",
	chroma.LiteralStringEscape:      "#4e9a06",
	chroma.LiteralStringHeredoc:     "#4e9a06",
	chroma.LiteralStringInterpol:    "#4e9a06",
	chroma.LiteralStringOther:       "#4e9a06",
	chroma.LiteralStringRegex:       "#4e9a06",
	chroma.LiteralStringSingle:      "#4e9a06",
	chroma.LiteralStringSymbol:      "#4e9a06",
	chroma.Generic:                  "#000000",
	chroma.GenericDeleted:           "#a40000",
	chroma.GenericEmph:              "italic #000000",
	chroma.GenericError:             "#ef2929",
	chroma.GenericHeading:           "bold #000080",
	chroma.GenericInserted:          "#00A000",
	chroma.GenericOutput:            "italic #000000",
	chroma.GenericPrompt:            "#8f5902",
	chroma.GenericStrong:            "bold #000000",
	chroma.GenericSubheading:        "bold #800080",
	chroma.GenericTraceback:         "bold #a40000",
	chroma.GenericUnderline:         "underline",
	chroma.Background:               " bg:#f8f8f8",
}))

Tango style.

View Source
var Trac = Register(chroma.MustNewStyle("trac", chroma.StyleEntries{
	chroma.TextWhitespace:     "#bbbbbb",
	chroma.Comment:            "italic #999988",
	chroma.CommentPreproc:     "bold noitalic #999999",
	chroma.CommentSpecial:     "bold #999999",
	chroma.Operator:           "bold",
	chroma.LiteralString:      "#bb8844",
	chroma.LiteralStringRegex: "#808000",
	chroma.LiteralNumber:      "#009999",
	chroma.Keyword:            "bold",
	chroma.KeywordType:        "#445588",
	chroma.NameBuiltin:        "#999999",
	chroma.NameFunction:       "bold #990000",
	chroma.NameClass:          "bold #445588",
	chroma.NameException:      "bold #990000",
	chroma.NameNamespace:      "#555555",
	chroma.NameVariable:       "#008080",
	chroma.NameConstant:       "#008080",
	chroma.NameTag:            "#000080",
	chroma.NameAttribute:      "#008080",
	chroma.NameEntity:         "#800080",
	chroma.GenericHeading:     "#999999",
	chroma.GenericSubheading:  "#aaaaaa",
	chroma.GenericDeleted:     "bg:#ffdddd #000000",
	chroma.GenericInserted:    "bg:#ddffdd #000000",
	chroma.GenericError:       "#aa0000",
	chroma.GenericEmph:        "italic",
	chroma.GenericStrong:      "bold",
	chroma.GenericPrompt:      "#555555",
	chroma.GenericOutput:      "#888888",
	chroma.GenericTraceback:   "#aa0000",
	chroma.GenericUnderline:   "underline",
	chroma.Error:              "bg:#e3d2d2 #a61717",
	chroma.Background:         " bg:#ffffff",
}))

Trac style.

View Source
var Vim = Register(chroma.MustNewStyle("vim", chroma.StyleEntries{
	chroma.Background:         "#cccccc bg:#000000",
	chroma.Comment:            "#000080",
	chroma.CommentSpecial:     "bold #cd0000",
	chroma.Keyword:            "#cdcd00",
	chroma.KeywordDeclaration: "#00cd00",
	chroma.KeywordNamespace:   "#cd00cd",
	chroma.KeywordType:        "#00cd00",
	chroma.Operator:           "#3399cc",
	chroma.OperatorWord:       "#cdcd00",
	chroma.NameClass:          "#00cdcd",
	chroma.NameBuiltin:        "#cd00cd",
	chroma.NameException:      "bold #666699",
	chroma.NameVariable:       "#00cdcd",
	chroma.LiteralString:      "#cd0000",
	chroma.LiteralNumber:      "#cd00cd",
	chroma.GenericHeading:     "bold #000080",
	chroma.GenericSubheading:  "bold #800080",
	chroma.GenericDeleted:     "#cd0000",
	chroma.GenericInserted:    "#00cd00",
	chroma.GenericError:       "#FF0000",
	chroma.GenericEmph:        "italic",
	chroma.GenericStrong:      "bold",
	chroma.GenericPrompt:      "bold #000080",
	chroma.GenericOutput:      "#888",
	chroma.GenericTraceback:   "#04D",
	chroma.GenericUnderline:   "underline",
	chroma.Error:              "border:#FF0000",
}))

Vim style.

View Source
var VisualStudio = Register(chroma.MustNewStyle("vs", chroma.StyleEntries{
	chroma.Comment:           "#008000",
	chroma.CommentPreproc:    "#0000ff",
	chroma.Keyword:           "#0000ff",
	chroma.OperatorWord:      "#0000ff",
	chroma.KeywordType:       "#2b91af",
	chroma.NameClass:         "#2b91af",
	chroma.LiteralString:     "#a31515",
	chroma.GenericHeading:    "bold",
	chroma.GenericSubheading: "bold",
	chroma.GenericEmph:       "italic",
	chroma.GenericStrong:     "bold",
	chroma.GenericPrompt:     "bold",
	chroma.Error:             "border:#FF0000",
	chroma.Background:        " bg:#ffffff",
}))

VisualStudio style.

View Source
var Vulcan = Register(chroma.MustNewStyle("vulcan", chroma.StyleEntries{
	chroma.Comment:                  grey,
	chroma.CommentHashbang:          grey + " italic",
	chroma.CommentMultiline:         grey,
	chroma.CommentPreproc:           blue,
	chroma.CommentSingle:            grey,
	chroma.CommentSpecial:           purple + " italic",
	chroma.Generic:                  white,
	chroma.GenericDeleted:           red,
	chroma.GenericEmph:              white + " underline",
	chroma.GenericError:             red + " bold",
	chroma.GenericHeading:           yellow + " bold",
	chroma.GenericInserted:          yellow,
	chroma.GenericOutput:            grey2,
	chroma.GenericPrompt:            white,
	chroma.GenericStrong:            red + " bold",
	chroma.GenericSubheading:        red + " italic",
	chroma.GenericTraceback:         white,
	chroma.GenericUnderline:         "underline",
	chroma.Error:                    red,
	chroma.Keyword:                  blue,
	chroma.KeywordConstant:          red + " bg:" + grey2,
	chroma.KeywordDeclaration:       blue,
	chroma.KeywordNamespace:         purple,
	chroma.KeywordPseudo:            purple,
	chroma.KeywordReserved:          blue,
	chroma.KeywordType:              blue2 + " bold",
	chroma.Literal:                  white,
	chroma.LiteralDate:              blue2,
	chroma.Name:                     white,
	chroma.NameAttribute:            purple,
	chroma.NameBuiltin:              blue,
	chroma.NameBuiltinPseudo:        blue,
	chroma.NameClass:                yellow,
	chroma.NameConstant:             yellow,
	chroma.NameDecorator:            yellow,
	chroma.NameEntity:               white,
	chroma.NameException:            red,
	chroma.NameFunction:             blue2,
	chroma.NameLabel:                red,
	chroma.NameNamespace:            white,
	chroma.NameOther:                white,
	chroma.NameTag:                  purple,
	chroma.NameVariable:             purple + " italic",
	chroma.NameVariableClass:        blue2 + " bold",
	chroma.NameVariableGlobal:       yellow,
	chroma.NameVariableInstance:     blue2,
	chroma.LiteralNumber:            cyan,
	chroma.LiteralNumberBin:         blue2,
	chroma.LiteralNumberFloat:       cyan,
	chroma.LiteralNumberHex:         blue2,
	chroma.LiteralNumberInteger:     cyan,
	chroma.LiteralNumberIntegerLong: cyan,
	chroma.LiteralNumberOct:         blue2,
	chroma.Operator:                 purple,
	chroma.OperatorWord:             purple,
	chroma.Other:                    white,
	chroma.Punctuation:              cyan,
	chroma.LiteralString:            green,
	chroma.LiteralStringBacktick:    blue2,
	chroma.LiteralStringChar:        blue2,
	chroma.LiteralStringDoc:         green,
	chroma.LiteralStringDouble:      green,
	chroma.LiteralStringEscape:      cyan,
	chroma.LiteralStringHeredoc:     cyan,
	chroma.LiteralStringInterpol:    green,
	chroma.LiteralStringOther:       green,
	chroma.LiteralStringRegex:       blue2,
	chroma.LiteralStringSingle:      green,
	chroma.LiteralStringSymbol:      green,
	chroma.Text:                     white,
	chroma.TextWhitespace:           white,
	chroma.Background:               " bg: " + black,
}))
View Source
var WitchHazel = Register(chroma.MustNewStyle("witchhazel", chroma.StyleEntries{
	chroma.Text:              "#F8F8F2",
	chroma.Whitespace:        "#A8757B",
	chroma.Error:             "#960050 bg:#1e0010",
	chroma.Comment:           "#b0bec5",
	chroma.Keyword:           "#C2FFDF",
	chroma.KeywordNamespace:  "#FFB8D1",
	chroma.Operator:          "#FFB8D1",
	chroma.Punctuation:       "#F8F8F2",
	chroma.Name:              "#F8F8F2",
	chroma.NameAttribute:     "#ceb1ff",
	chroma.NameBuiltinPseudo: "#80cbc4",
	chroma.NameClass:         "#ceb1ff",
	chroma.NameConstant:      "#C5A3FF",
	chroma.NameDecorator:     "#ceb1ff",
	chroma.NameException:     "#ceb1ff",
	chroma.NameFunction:      "#ceb1ff",
	chroma.NameProperty:      "#F8F8F2",
	chroma.NameTag:           "#FFB8D1",
	chroma.NameVariable:      "#F8F8F2",
	chroma.Number:            "#C5A3FF",
	chroma.Literal:           "#ae81ff",
	chroma.LiteralDate:       "#e6db74",
	chroma.String:            "#1bc5e0",
	chroma.GenericDeleted:    "#f92672",
	chroma.GenericEmph:       "italic",
	chroma.GenericInserted:   "#a6e22e",
	chroma.GenericStrong:     "bold",
	chroma.GenericSubheading: "#75715e",
	chroma.Background:        " bg:#433e56",
}))

WitchHazel Style

View Source
var Xcode = Register(chroma.MustNewStyle("xcode", chroma.StyleEntries{
	chroma.Comment:           "#177500",
	chroma.CommentPreproc:    "#633820",
	chroma.LiteralString:     "#C41A16",
	chroma.LiteralStringChar: "#2300CE",
	chroma.Operator:          "#000000",
	chroma.Keyword:           "#A90D91",
	chroma.Name:              "#000000",
	chroma.NameAttribute:     "#836C28",
	chroma.NameClass:         "#3F6E75",
	chroma.NameFunction:      "#000000",
	chroma.NameBuiltin:       "#A90D91",
	chroma.NameBuiltinPseudo: "#5B269A",
	chroma.NameVariable:      "#000000",
	chroma.NameTag:           "#000000",
	chroma.NameDecorator:     "#000000",
	chroma.NameLabel:         "#000000",
	chroma.Literal:           "#1C01CE",
	chroma.LiteralNumber:     "#1C01CE",
	chroma.Error:             "#000000",
	chroma.Background:        " bg:#ffffff",
}))

Xcode style.

View Source
var XcodeDark = Register(chroma.MustNewStyle("xcode-dark", chroma.StyleEntries{
	chroma.Background: plainText + " bg:" + background,

	chroma.Comment:          comments,
	chroma.CommentMultiline: comments,
	chroma.CommentPreproc:   preprocessorStatements,
	chroma.CommentSingle:    comments,
	chroma.CommentSpecial:   comments + " italic",

	chroma.Error: "#960050",

	chroma.Keyword:            keywords,
	chroma.KeywordConstant:    keywords,
	chroma.KeywordDeclaration: keywords,
	chroma.KeywordReserved:    keywords,

	chroma.LiteralNumber:        numbers,
	chroma.LiteralNumberBin:     numbers,
	chroma.LiteralNumberFloat:   numbers,
	chroma.LiteralNumberHex:     numbers,
	chroma.LiteralNumberInteger: numbers,
	chroma.LiteralNumberOct:     numbers,

	chroma.LiteralString:         strings,
	chroma.LiteralStringEscape:   strings,
	chroma.LiteralStringInterpol: plainText,

	chroma.Name:              plainText,
	chroma.NameBuiltin:       otherTypeNames,
	chroma.NameBuiltinPseudo: otherFunctionAndMethodNames,
	chroma.NameClass:         typeDeclarations,
	chroma.NameFunction:      otherDeclarations,
	chroma.NameVariable:      otherDeclarations,

	chroma.Operator: plainText,

	chroma.Punctuation: plainText,

	chroma.Text: plainText,
}))

Xcode dark style

Functions

func Get

func Get(name string) *chroma.Style

Get named style, or Fallback.

func Names

func Names() []string

Names of all available styles.

func Register

func Register(style *chroma.Style) *chroma.Style

Register a chroma.Style.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL