Files
MUTN/src/cli/glamourStyle.go
T

210 lines
3.9 KiB
Go

package cli
import "strings"
func glamourStyle() []byte {
quarterHRString := strings.Repeat("─", width/4)
return []byte(`{
"document": {
"color": "#EBDBB2",
"block_prefix": "\n",
"block_suffix": "\n"
},
"block_quote": {
"color": "#A89984",
"indent": 4,
"indent_token": "│ "
},
"paragraph": {},
"list": {
"level_indent": 4,
"block_suffix": ""
},
"heading": {
"block_suffix": "\n",
"bold": true
},
"h1": {
"prefix": "──────",
"suffix": "──────",
"color": "#FBF1C7",
"background_color": "#B16286"
},
"h2": {
"prefix": "++",
"suffix": "++",
"color": "#689D6A"
},
"h3": {
"prefix": "────",
"suffix": "────",
"color": "#458588"
},
"h4": {
"prefix": "+",
"suffix": "+",
"color": "#D79921"
},
"h5": {
"prefix": "──",
"suffix": "──",
"color": "#98971A"
},
"h6": {
"color": "#CC241D"
},
"text": {},
"strikethrough": {
"crossed_out": true
},
"emph": {
"italic": true
},
"strong": {
"bold": true
},
"hr": {
"color": "#7C6F64",
"format": "\n` + strings.Repeat(quarterHRString, 4) + `\n"
},
"item": {
"block_prefix": "• "
},
"enumeration": {
"block_prefix": ". "
},
"task": {
"ticked": "[✓] ",
"unticked": "[ ] "
},
"link": {
"color": "#427B58",
"underline": true
},
"link_text": {
"color": "#8EC07C",
"bold": true
},
"image": {
"color": "#AF3A03",
"underline": true
},
"image_text": {
"color": "#FE8019",
"format": "Image: {{.text}} →"
},
"code": {
"prefix": "",
"suffix": "",
"color": "#FB4934",
"background_color": "#3C3836"
},
"code_block": {
"block_prefix": "` + quarterHRString + "code" + quarterHRString + "\\n" + `",
"block_suffix": "` + strings.Repeat(quarterHRString, 2) + "────\\n" + `",
"chroma": {
"text": {
"color": "#A89984"
},
"error": {
"color": "#F1F1F1",
"background_color": "#F05B5B"
},
"comment": {
"color": "#928374"
},
"comment_preproc": {
"color": "#FF875F"
},
"keyword": {
"color": "#D65E5E"
},
"keyword_reserved": {
"color": "#FF5FD2"
},
"keyword_namespace": {
"color": "#D65E5E"
},
"keyword_type": {
"color": "#FABD2F"
},
"operator": {
"color": "#FBF1C7"
},
"punctuation": {
"color": "#E8E8A8"
},
"name": {
"color": "#A89984"
},
"name_builtin": {
"color": "#FE8019"
},
"name_tag": {
"color": "#B083EA"
},
"name_attribute": {
"color": "#7A7AE6"
},
"name_class": {
"color": "#F1F1F1",
"underline": true,
"bold": true
},
"name_constant": {},
"name_decorator": {
"color": "#FFFF87"
},
"name_exception": {},
"name_function": {
"color": "#FBF1C7"
},
"name_other": {},
"literal": {},
"literal_number": {
"color": "#D3869B"
},
"literal_date": {},
"literal_string": {
"color": "#B8BB26"
},
"literal_string_escape": {
"color": "#FE8019"
},
"generic_deleted": {
"color": "#FD5B5B"
},
"generic_emph": {
"italic": true
},
"generic_inserted": {
"color": "#FBF1C7"
},
"generic_strong": {
"bold": true
},
"generic_subheading": {
"color": "#777777"
},
"background": {
"background_color": "#373737"
}
}
},
"table": {
"center_separator": "┼",
"column_separator": "│",
"row_separator": "─"
},
"definition_list": {},
"definition_term": {
"block_suffix": "\n"
},
"definition_description": {
"block_prefix": "\n🠶 "
},
"html_block": {},
"html_span": {}
}`)
}