1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-27 09:11:53 -05:00
forgejo/vendor/github.com/alecthomas/chroma/styles/xcode-dark.go
6543 86e2789960
Vendor Update (#16121)
* update github.com/PuerkitoBio/goquery

* update github.com/alecthomas/chroma

* update github.com/blevesearch/bleve/v2

* update github.com/caddyserver/certmagic

* update github.com/go-enry/go-enry/v2

* update github.com/go-git/go-billy/v5

* update github.com/go-git/go-git/v5

* update github.com/go-redis/redis/v8

* update github.com/go-testfixtures/testfixtures/v3

* update github.com/jaytaylor/html2text

* update github.com/json-iterator/go

* update github.com/klauspost/compress

* update github.com/markbates/goth

* update github.com/mattn/go-isatty

* update github.com/mholt/archiver/v3

* update github.com/microcosm-cc/bluemonday

* update github.com/minio/minio-go/v7

* update github.com/prometheus/client_golang

* update github.com/unrolled/render

* update github.com/xanzy/go-gitlab

* update github.com/yuin/goldmark

* update github.com/yuin/goldmark-highlighting

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-06-10 16:44:25 +02:00

62 lines
1.8 KiB
Go
Vendored

package styles
import (
"github.com/alecthomas/chroma"
)
var (
// Inspired by Apple's Xcode "Default (Dark)" Theme
background = "#1F1F24"
plainText = "#FFFFFF"
comments = "#6C7986"
strings = "#FC6A5D"
numbers = "#D0BF69"
keywords = "#FC5FA3"
preprocessorStatements = "#FD8F3F"
typeDeclarations = "#5DD8FF"
otherDeclarations = "#41A1C0"
otherFunctionAndMethodNames = "#A167E6"
otherTypeNames = "#D0A8FF"
)
// Xcode dark style
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,
}))