custom theme #69
-
Hi, I really like the idea of this and am testing it right now.
But no customization of the theme.json seems to have any effect. I also downloaded the ascii theme from charmbracelet/glamour into theme.json but no changes in the slides. Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Did you restart I can't reproduce, my theme customization work correctly. Do you have more detail about your issue? |
Beta Was this translation helpful? Give feedback.
-
Hello, I also reproduce the same issue with the latest version (0.4.0). According to the golang documentation on embed:
Steps to reproduce
# just changing the h1 style
cat <<EOF > /tmp/theme.json
{
"document": {
"block_prefix": "\n",
"block_suffix": "\n",
"color": "252",
"margin": 2
},
"block_quote": {
"indent": 1,
"indent_token": "│ "
},
"paragraph": {},
"list": {
"level_indent": 2
},
"heading": {
"block_suffix": "\n",
"color": "39",
"bold": true
},
"h1": {
"prefix": "# ",
"suffix": " ",
"color": "#559",
"bold": true
},
"h2": {
"prefix": "▓▓▓ ",
"color": "#1cc"
},
"h3": {
"prefix": "▒▒▒▒ ",
"color": "#29c"
},
"h4": {
"color": "#559",
"prefix": "░░░░░ "
},
"h5": {},
"h6": {},
"text": {},
"strikethrough": {
"crossed_out": true
},
"emph": {
"italic": true
},
"strong": {
"bold": true
},
"hr": {
"color": "240",
"format": "\n--------\n"
},
"item": {
"block_prefix": "• "
},
"enumeration": {
"block_prefix": ". "
},
"task": {
"ticked": "[✓] ",
"unticked": "[ ] "
},
"link": {
"color": "30",
"underline": true
},
"link_text": {
"color": "35",
"bold": true
},
"image": {
"color": "212",
"underline": true
},
"image_text": {
"color": "243",
"format": "Image: {{.text}} →"
},
"code": {
"prefix": " ",
"suffix": " ",
"color": "203",
"background_color": "236"
},
"code_block": {
"theme": "dracula",
"margin": 2
},
"table": {
"center_separator": "┼",
"column_separator": "│",
"row_separator": "─"
},
"definition_list": {},
"definition_term": {},
"definition_description": {
"block_prefix": "\n🠶 "
},
"html_block": {},
"html_span": {}
}
EOF
cat << EOF > /tmp/slides.md
---
theme: /tmp/theme.json
---
# foo
bar
EOF
|
Beta Was this translation helpful? Give feedback.
Solved by @itmecho in #72