Skip to content

Commit

Permalink
refactor: More strongly type sass var maps
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Oct 23, 2024
1 parent ced644a commit 409a53b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shiny/ui/_theme_brand.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from ._theme import Theme
from ._theme_presets import ShinyThemePreset, shiny_theme_presets

color_map = {
color_map: dict[str, list[str]] = {
"foreground": ["brand--foreground", "body-color", "pre-color"],
"background": ["brand--background", "body-bg"],
"primary": ["primary"],
Expand Down Expand Up @@ -54,7 +54,7 @@
"""

# TODO: test that these Sass variables exist in Bootstrap
typography_map = {
typography_map: dict[str, dict[str, str]] = {
"base": {
"family": "font-family-base",
"size": "font-size-base",
Expand Down

0 comments on commit 409a53b

Please sign in to comment.