Skip to content

Commit 41b8797

Browse files
authored
refactor: Move ui.Theme.from_brand() Sass code into an .scss file (#1792)
1 parent ecc5c14 commit 41b8797

File tree

5 files changed

+337
-286
lines changed

5 files changed

+337
-286
lines changed

examples/brand/app.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
from pathlib import Path
32

43
import matplotlib.pyplot as plt
@@ -7,10 +6,8 @@
76
from shiny import App, render, ui
87
from shiny.ui._theme_brand import bootstrap_colors
98

10-
# TODO: Move this into the test that runs this app
11-
os.environ["SHINY_BRAND_YML_RAISE_UNMAPPED"] = "true"
129
theme = ui.Theme.from_brand(__file__)
13-
# theme = ui.Theme()
10+
# theme = ui.Theme() ## default theme
1411
theme.add_rules((Path(__file__).parent / "_colors.scss").read_text())
1512

1613
app_ui = ui.page_navbar(

0 commit comments

Comments
 (0)