Skip to content

Commit b905415

Browse files
committed
feat(brand): finish mapping the variables
1 parent 20b1210 commit b905415

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

shiny/ui/_theme_brand.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,22 @@ def __str__(self):
8282
"monospace": {
8383
"family": "font-family-monospace",
8484
"size": "code-font-size",
85+
"weight": "code-font-weight",
8586
},
8687
"monospace_inline": {
8788
"family": "font-family-monospace-inline",
8889
"color": "code-color",
8990
"background_color": "code-bg",
9091
"size": "code-inline-font-size",
91-
"weight": "code-font-weight",
92+
"weight": "code-inline-font-weight",
9293
},
9394
"monospace_block": {
9495
"family": "font-family-monospace-block",
9596
"line_height": "pre-line-height",
9697
"color": "pre-color",
9798
"background_color": "pre-bg",
99+
"weight": "code-block-font-weight",
100+
"size": "code-block-font-size",
98101
},
99102
"link": {
100103
"background_color": "link-bg",
@@ -257,7 +260,11 @@ def __init__(
257260
self.add_defaults(
258261
# Variables we create to augment Bootstrap's variables
259262
**{
260-
"code-font-weight": "normal",
263+
"code-font-weight": None,
264+
"code-inline-font-weight": None,
265+
"code-inline-font-size": None,
266+
"code-block-font-weight": None,
267+
"code-block-font-size": None,
261268
"link-bg": None,
262269
"link-weight": None,
263270
"gray-100": "mix($white, $black, 90%)",
@@ -291,6 +298,14 @@ def __init__(
291298
code {
292299
font-weight: $code-font-weight;
293300
}
301+
code {
302+
font-weight: $code-inline-font-weight;
303+
font-size: $code-inline-font-size;
304+
}
305+
pre {
306+
font-weight: $code-block-font-weight;
307+
font-size: $code-block-font-size;
308+
}
294309
"""
295310
)
296311

0 commit comments

Comments
 (0)