Skip to content

Commit

Permalink
Update themes.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stichbury committed Aug 7, 2024
1 parent d8cd089 commit 60908e3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions vizro-core/docs/pages/user-guides/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ you can still switch between the themes via the toggle button in the upper-right

!!! example "Change theme"
=== "app.py"
```py hl_lines="18"
```{.python pycafe-link}
import vizro.models as vm
import vizro.plotly.express as px
from vizro import Vizro
Expand All @@ -26,15 +26,14 @@ you can still switch between the themes via the toggle button in the upper-right
),
),
],
controls=[vm.Filter(column="species")],
)

dashboard = vm.Dashboard(pages=[page], theme="vizro_light")

Vizro().build(dashboard).run()
```
=== "app.yaml"
```yaml hl_lines="11"
```yaml
# Still requires a .py to add data to the data manager and parse YAML configuration
# See yaml_version example
pages:
Expand All @@ -45,9 +44,6 @@ you can still switch between the themes via the toggle button in the upper-right
data_frame: iris
dimensions: ["sepal_length", "sepal_width", "petal_length", "petal_width"]
type: graph
controls:
- column: species
type: filter
title: Changing themes
theme: vizro_light
```
Expand Down

0 comments on commit 60908e3

Please sign in to comment.