Debian Codegraph @

UG9/cn/default-theme.yml

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