Skip to content

Commit

Permalink
example: pass brand colors along to plotting code (instead of repeati…
Browse files Browse the repository at this point in the history
…ng them)
  • Loading branch information
cpsievert committed Oct 25, 2024
1 parent 339a9aa commit edbae14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/brand/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ def server(input, output, session):
@render.plot
def plot1():
colors = {
"foreground": "#000000",
"background": "#FFFFFF",
"primary": "#4463ff",
"foreground": theme.brand.color.foreground,
"background": theme.brand.color.background,
"primary": theme.brand.color.primary,
}

if theme.brand.color:
Expand Down

0 comments on commit edbae14

Please sign in to comment.