From 9da5a94f283c1e9ad431d3310c920856d057de86 Mon Sep 17 00:00:00 2001 From: cswimr Date: Thu, 14 Nov 2024 13:45:11 -0500 Subject: [PATCH] add glow theme and default configuration --- .config/glow/README.md | 3 + .config/glow/glow.yml | 8 ++ .config/glow/theme.json | 199 ++++++++++++++++++++++++++++++++++++++++ .gitignore | 3 + 4 files changed, 213 insertions(+) create mode 100644 .config/glow/README.md create mode 100644 .config/glow/glow.yml create mode 100644 .config/glow/theme.json diff --git a/.config/glow/README.md b/.config/glow/README.md new file mode 100644 index 0000000..b397a2c --- /dev/null +++ b/.config/glow/README.md @@ -0,0 +1,3 @@ +# Glow + +The Glow theme provided in this repository is from [catppuccin/glamour](https://github.com/catppuccin/glamour/blob/f410083af1e9b2418bcd73dbbbc987461d4aa292/themes/catppuccin-mocha.json). diff --git a/.config/glow/glow.yml b/.config/glow/glow.yml new file mode 100644 index 0000000..315077d --- /dev/null +++ b/.config/glow/glow.yml @@ -0,0 +1,8 @@ +# style name or JSON path (default "auto") +style: "$HOME/.config/glow/theme.json" +# mouse support (TUI-mode only) +mouse: false +# use pager to display markdown +pager: false +# word-wrap at width +width: 180 diff --git a/.config/glow/theme.json b/.config/glow/theme.json new file mode 100644 index 0000000..a177f55 --- /dev/null +++ b/.config/glow/theme.json @@ -0,0 +1,199 @@ +{ + "document": { + "block_prefix": "\n", + "block_suffix": "\n", + "color": "#cdd6f4", + "margin": 2 + }, + "block_quote": { + "indent": 1, + "indent_token": "│ " + }, + "paragraph": {}, + "list": { + "level_indent": 2 + }, + "heading": { + "block_suffix": "\n", + "color": "#cdd6f4", + "bold": true + }, + "h1": { + "prefix": "▓▓▓ ", + "suffix": " ", + "color": "#f38ba8", + "bold": true + }, + "h2": { + "prefix": "▓▓▓▓ ", + "color": "#fab387" + }, + "h3": { + "prefix": "▓▓▓▓▓ ", + "color": "#f9e2af" + }, + "h4": { + "prefix": "▓▓▓▓▓▓ ", + "color": "#a6e3a1" + }, + "h5": { + "prefix": "▓▓▓▓▓▓▓ ", + "color": "#74c7ec" + }, + "h6": { + "prefix": "▓▓▓▓▓▓▓▓ ", + "color": "#b4befe" + }, + "text": {}, + "strikethrough": { + "crossed_out": true + }, + "emph": { + "italic": true + }, + "strong": { + "bold": true + }, + "hr": { + "color": "#6c7086", + "format": "\n--------\n" + }, + "item": { + "block_prefix": "• " + }, + "enumeration": { + "block_prefix": ". " + }, + "task": { + "ticked": "[✓] ", + "unticked": "[ ] " + }, + "link": { + "color": "#89b4fa", + "underline": true + }, + "link_text": { + "color": "#b4befe", + "bold": true + }, + "image": { + "color": "#89b4fa", + "underline": true + }, + "image_text": { + "color": "#b4befe", + "format": "Image: {{.text}} →" + }, + "code": { + "prefix": " ", + "suffix": " ", + "color": "#eba0ac", + "background_color": "#181825" + }, + "code_block": { + "color": "#181825", + "margin": 2, + "chroma": { + "text": { + "color": "#cdd6f4" + }, + "error": { + "color": "#cdd6f4", + "background_color": "#f38ba8" + }, + "comment": { + "color": "#6c7086" + }, + "comment_preproc": { + "color": "#89b4fa" + }, + "keyword": { + "color": "#cba6f7" + }, + "keyword_reserved": { + "color": "#cba6f7" + }, + "keyword_namespace": { + "color": "#f9e2af" + }, + "keyword_type": { + "color": "#f9e2af" + }, + "operator": { + "color": "#89dceb" + }, + "punctuation": { + "color": "#9399b2" + }, + "name": { + "color": "#b4befe" + }, + "name_builtin": { + "color": "#fab387" + }, + "name_tag": { + "color": "#cba6f7" + }, + "name_attribute": { + "color": "#f9e2af" + }, + "name_class": { + "color": "#f9e2af" + }, + "name_constant": { + "color": "#f9e2af" + }, + "name_decorator": { + "color": "#f5c2e7" + }, + "name_exception": {}, + "name_function": { + "color": "#89b4fa" + }, + "name_other": {}, + "literal": {}, + "literal_number": { + "color": "#fab387" + }, + "literal_date": {}, + "literal_string": { + "color": "#a6e3a1" + }, + "literal_string_escape": { + "color": "#f5c2e7" + }, + "generic_deleted": { + "color": "#f38ba8" + }, + "generic_emph": { + "color": "#cdd6f4", + "italic": true + }, + "generic_inserted": { + "color": "#a6e3a1" + }, + "generic_strong": { + "color": "#cdd6f4", + "bold": true + }, + "generic_subheading": { + "color": "#89dceb" + }, + "background": { + "background_color": "#181825" + } + } + }, + "table": { + "center_separator": "┼", + "column_separator": "│", + "row_separator": "─" + }, + "definition_list": {}, + "definition_term": {}, + "definition_description": { + "block_prefix": "\n🠶 " + }, + "html_block": {}, + "html_span": {} +} diff --git a/.gitignore b/.gitignore index 1a51ffe..f33b664 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,9 @@ !.config/fastfetch/ !.config/fastfetch/** +!.config/glow/ +!.config/glow/** + !.config/btop/ !.config/btop/** .config/btop/**