Skip to content

Commit

Permalink
feat(brand): finish mapping the variables
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Oct 23, 2024
1 parent 20b1210 commit b905415
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions shiny/ui/_theme_brand.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,22 @@ def __str__(self):
"monospace": {
"family": "font-family-monospace",
"size": "code-font-size",
"weight": "code-font-weight",
},
"monospace_inline": {
"family": "font-family-monospace-inline",
"color": "code-color",
"background_color": "code-bg",
"size": "code-inline-font-size",
"weight": "code-font-weight",
"weight": "code-inline-font-weight",
},
"monospace_block": {
"family": "font-family-monospace-block",
"line_height": "pre-line-height",
"color": "pre-color",
"background_color": "pre-bg",
"weight": "code-block-font-weight",
"size": "code-block-font-size",
},
"link": {
"background_color": "link-bg",
Expand Down Expand Up @@ -257,7 +260,11 @@ def __init__(
self.add_defaults(
# Variables we create to augment Bootstrap's variables
**{
"code-font-weight": "normal",
"code-font-weight": None,
"code-inline-font-weight": None,
"code-inline-font-size": None,
"code-block-font-weight": None,
"code-block-font-size": None,
"link-bg": None,
"link-weight": None,
"gray-100": "mix($white, $black, 90%)",
Expand Down Expand Up @@ -291,6 +298,14 @@ def __init__(
code {
font-weight: $code-font-weight;
}
code {
font-weight: $code-inline-font-weight;
font-size: $code-inline-font-size;
}
pre {
font-weight: $code-block-font-weight;
font-size: $code-block-font-size;
}
"""
)

Expand Down

0 comments on commit b905415

Please sign in to comment.