Re: Color for Text
Posted by habamax on Jan 22, 2020; 12:22pm
URL: https://discuss.asciidoctor.org/Color-for-Text-tp7509p7523.html
Recent asciidoctor-pdf can have it. You should define a role in your theme and then use it:
For example, I have the following in my theme:
role:
big:
font_size: $base_font_size_large
small:
font_size: $base_font_size_small
smaller:
font_size: $base_font_size_small * 0.8
tiny:
font_size: $base_font_size_small * 0.5
red:
font_color: #ff0000
green:
font_color: #00aa00
blue:
font_color: #0000ff
cyan:
font_color: #00cccc
pink:
font_color: #cc00cc
brown:
font_color: #A0522D
Then in asciidoctor file:
[green]#Green text#