1#
2# https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc
3#
4
5font:
6  catalog:
7    # Noto Serif supports Latin, Latin-1 Supplement, Latin Extended-A, Greek, Cyrillic, Vietnamese & an assortment of symbols
8    #Noto Serif:
9    #  normal: notoserif-regular-subset.ttf
10    #  bold: notoserif-bold-subset.ttf
11    #  italic: notoserif-italic-subset.ttf
12    #  bold_italic: notoserif-bold_italic-subset.ttf
13    Lato-Light:
14      normal: lato/Lato-Light.ttf
15      bold: lato/Lato-Regular.ttf
16      italic: lato/Lato-LightItalic.ttf
17      bold_italic: lato/Lato-Italic.ttf
18    # M+ 1mn supports ASCII and the circled numbers used for conums
19    #M+ 1mn:
20    #  normal: mplus1mn-regular-subset.ttf
21    #  bold: mplus1mn-bold-subset.ttf
22    #  italic: mplus1mn-italic-subset.ttf
23    #  bold_italic: mplus1mn-bold_italic-subset.ttf
24    Inconsolata:
25      normal: inconsolata.ttf
26      bold: inconsolata.ttf
27      italic: inconsolata.ttf
28      bold_italic: inconsolata.ttf
29page:
30  background_color: FFFFFF
31  layout: portrait
32  initial_zoom: FitH
33  margin: [1in, 1in, 1in, 1in]
34  # margin_inner and margin_outer keys are used for recto/verso print margins when media=prepress
35  margin_inner: 1in
36  margin_outer: 1in
37  size: Letter
38base:
39  align: justify
40  # color as hex string (leading # is optional)
41  font_color: 333333
42  font_color: 000000
43  # color as RGB array
44  #font_color: [51, 51, 51]
45  # color as CMYK array (approximated)
46  #font_color: [0, 0, 0, 0.92]
47  #font_color: [0, 0, 0, 92%]
48  font_family: Lato-Light
49  # choose one of these font_size/line_height_length combinations
50  #font_size: 14
51  #line_height_length: 20
52  #font_size: 11.25
53  #line_height_length: 18
54  #font_size: 11.2
55  #line_height_length: 16
56  font_size: 10
57  #line_height_length: 15
58  # correct line height for Noto Serif metrics
59  line_height_length: 10
60  #font_size: 11.25
61  #line_height_length: 18
62  line_height: $base_line_height_length / $base_font_size
63  font_size_large: round($base_font_size * 1.25)
64  font_size_small: round($base_font_size * 0.85)
65  font_size_min: $base_font_size * 0.75
66  font_style: normal
67  border_color: EEEEEE
68  border_radius: 4
69  border_width: 0.5
70section:
71  indent: [0.67in, 0]
72role:
73  line-through:
74    text_decoration: line-through
75  underline:
76    text_decoration: underline
77  big:
78    font_size: $base_font_size_large
79  small:
80    font_size: $base_font_size_small
81  subtitle:
82    font_size: 0.8em
83    font_color: 999999
84# FIXME vertical_rhythm is weird; we should think in terms of ems
85#vertical_rhythm: $base_line_height_length * 2 / 3
86# correct line height for Noto Serif metrics (comes with built-in line height)
87vertical_rhythm: $base_line_height_length
88horizontal_rhythm: $base_line_height_length
89# QUESTION should vertical_spacing be block_spacing instead?
90vertical_spacing: $vertical_rhythm
91link:
92  font_color: 428BCA
93  font_color: 007BFF
94# literal is currently used for inline monospaced in prose and table cells
95literal:
96  font_color: 333333
97  font_color: B12146
98  font_color: E83E8C
99  font_family: Inconsolata
100button:
101  content: "[\u2009%s\u2009]"
102  font_style: bold
103key:
104  background_color: F5F5F5
105  background_color: F8F8F8
106  border_color: CCCCCC
107  border_offset: 2
108  border_radius: 2
109  border_width: 0.5
110  font_family: $literal_font_family
111  separator: "\u202f+\u202f"
112mark:
113  background_color: FFFF00
114  border_offset: 1
115menu:
116  caret_content: " <font size=\"1.15em\"><color rgb=\"b12146\">\u203a</color></font> "
117heading:
118  align: left
119  font_color: $base_font_color
120  font_style: bold
121  # h1 is used for part titles (book doctype) or the doctitle (article doctype)
122  h1_font_size: floor($base_font_size * 2.6)
123  # h2 is used for chapter titles (book doctype only)
124  h2_font_size: floor($base_font_size * 2.15)
125  h3_font_size: round($base_font_size * 1.7)
126  h4_font_size: $base_font_size_large
127  h5_font_size: $base_font_size
128  h6_font_size: $base_font_size_small
129  #line_height: 1.4
130  # correct line height for Noto Serif metrics (comes with built-in line height)
131  line_height: 1
132  margin_top: $vertical_rhythm * 0.4
133  margin_bottom: $vertical_rhythm * 0.9
134  min_height_after: $base_line_height_length * 1.5
135  h2-margin_bottom: 60
136  #h2-text_decoration: underline
137title_page:
138  align: right
139  logo:
140    top: 10%
141  title:
142    top: 55%
143    font_size: $heading_h1_font_size
144    font_color: 999999
145    font_color: $base_font_color
146    line_height: 0.9
147  subtitle:
148    font_size: $heading_h3_font_size
149    font_style: bold_italic
150    line_height: 1
151  authors:
152    margin_top: $base_font_size * 1.25
153    font_size: $base_font_size_large
154    font_color: 181818
155  revision:
156    margin_top: $base_font_size * 1.25
157block:
158  margin_top: 0
159  margin_bottom: $vertical_rhythm
160caption:
161  align: left
162  font_size: $base_font_size * 0.95
163  font_style: italic
164  # FIXME perhaps set line_height instead of / in addition to margins?
165  margin_inside: $vertical_rhythm / 3
166  #margin_inside: $vertical_rhythm / 4
167  margin_outside: 0
168lead:
169  font_size: $base_font_size_large
170  line_height: 1.4
171abstract:
172  font_color: 5C6266
173  font_size: $lead_font_size
174  line_height: $lead_line_height
175  font_style: italic
176  first_line_font_style: bold
177  title:
178    align: center
179    font_color: $heading_font_color
180    font_size: $heading_h4_font_size
181    font_style: $heading_font_style
182admonition:
183  column_rule_color: $base_border_color
184  column_rule_width: $base_border_width
185  padding: [0, $horizontal_rhythm, 0, $horizontal_rhythm]
186  # icon:
187  #   caution:
188  #     name: far-lightbulb
189  #     name: fa-fire
190  #     stroke_color: 111111
191  #     size: 24
192  label:
193    text_transform: uppercase
194    font_style: bold
195    # caution:
196    #   font_color: F77D05
197blockquote:
198  font_size: $base_font_size_large
199  border_color: $base_border_color
200  border_width: 0
201  border_left_width: 5
202  # FIXME disable negative padding bottom once margin collapsing is implemented
203  padding: [0, $horizontal_rhythm, $block_margin_bottom * -0.75, $horizontal_rhythm + $blockquote_border_left_width / 2]
204  cite_font_size: $base_font_size_small
205  cite_font_color: 999999
206verse:
207  font_size: $blockquote_font_size
208  border_color: $blockquote_border_color
209  border_width: $blockquote_border_width
210  border_left_width: $blockquote_border_left_width
211  padding: $blockquote_padding
212  cite_font_size: $blockquote_cite_font_size
213  cite_font_color: $blockquote_cite_font_color
214# code is used for source blocks (perhaps change to source or listing?)
215code:
216  font_color: $base_font_color
217  #font_color: FFFFFF
218  font_family: $literal_font_family
219  font_size: ceil($base_font_size)
220  padding: $code_font_size
221  line_height: 1.25
222  # line_gap is an experimental property to control how a background color is applied to an inline block element
223  line_gap: 3.8
224  background_color: F5F5F5
225  background_color: F8F8F8
226  #background_color: 6C757D
227  border_color: CCCCCC
228  border_radius: $base_border_radius
229  border_radius: 0
230  border_width: 0.75
231  border_width: 0
232conum:
233  font_family: $literal_font_family
234  font_color: $literal_font_color
235  font_size: $base_font_size
236  line_height: 4 / 3
237  glyphs: circled
238example:
239  border_color: $base_border_color
240  border_radius: $base_border_radius
241  border_width: 0.75
242  background_color: $page-background-color
243  # FIXME reenable padding bottom once margin collapsing is implemented
244  padding: [$vertical_rhythm, $horizontal_rhythm, 0, $horizontal_rhythm]
245image:
246  align: left
247prose:
248  margin_top: $block_margin_top
249  margin_bottom: $block_margin_bottom
250sidebar:
251  background_color: EEEEEE
252  border_color: E1E1E1
253  border_radius: $base_border_radius
254  border_width: $base_border_width
255  # FIXME reenable padding bottom once margin collapsing is implemented
256  padding: [$vertical_rhythm, $vertical_rhythm * 1.25, 0, $vertical_rhythm * 1.25]
257  title:
258    align: center
259    font_color: $heading_font_color
260    font_size: $heading_h4_font_size
261    font_style: $heading_font_style
262thematic_break:
263  border_color: $base_border_color
264  border_style: solid
265  border_width: $base_border_width
266  margin_top: $vertical_rhythm * 0.5
267  margin_bottom: $vertical_rhythm * 1.5
268description_list:
269  term_font_style: bold
270  term_spacing: $vertical_rhythm / 4
271  description_indent: $horizontal_rhythm * 1.25
272outline_list:
273  indent: $horizontal_rhythm * 1.5
274  #marker_font_color: 404040
275  # NOTE outline_list_item_spacing applies to list items that do not have complex content
276  item_spacing: $vertical_rhythm / 2
277table:
278  background_color: $page_background_color
279  border_color: DDDDDD
280  border_width: $base_border_width
281  cell_padding: 3
282  head:
283    font_style: bold
284    border_bottom_width: $base_border_width * 2.5
285  body:
286    stripe_background_color: F9F9F9
287  foot:
288    background_color: F0F0F0
289toc:
290  indent: $horizontal_rhythm
291  line_height: $base_line_height
292  dot_leader:
293    #content: ". "
294    font_color: A9A9A9
295    #levels: 2 3
296footnotes:
297  font_size: round($base_font_size * 0.75)
298  item_spacing: $outline_list_item_spacing / 2
299header:
300  # Can't show chapter number. See https://github.com/asciidoctor/asciidoctor-pdf/issues/1373
301  font_size: $base_font_size_small
302  line_height: 1
303  vertical_align: middle
304footer:
305  font_size: $base_font_size_small
306  # NOTE if background_color is set, background and border will span width of page
307  #border_color: DDDDDD
308  border_width: 0.25
309  #height: $base_line_height_length * 2.5
310  height: $base_line_height_length * 5
311  line_height: 1
312  padding: [$base_line_height_length / 2, 1, 0, 1]
313  vertical_align: top
314  recto: &shared_footer
315    #columns: "<50% =0% >50%"
316    left:
317      content: 'Copyright © Inverse inc.'
318    center:
319      content: '{chapter-title}'
320    right:
321      content: '{page-number}'
322  verso: *shared_footer
323    #columns: $footer_recto_columns
324