⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions content/develop/api-reference/configuration/config-toml.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,15 @@ toolbarMode = "auto"
#
# Default: true
showSidebarNavigation = true

# Controls whether to show external help links (Google, ChatGPT) in
# error displays. The following values are valid:
# - "auto" (default) : Links are shown only on localhost.
# - True : Links are shown on all domains.
# - False : Links are never shown.
#
# Default: "auto"
showErrorLinks = "auto"
```

#### Runner
Expand Down Expand Up @@ -344,6 +353,12 @@ enableStaticServing = false
# Default: 120
disconnectedSessionTTL = 120

# Enable the experimental Starlette-based server implementation instead of
# Tornado. This is an experimental feature and may be removed in the future.
#
# Default: false
useStarlette = false

# Server certificate file for connecting via HTTPS.
# Must be set at the same time as "server.sslKeyFile".
#
Expand Down Expand Up @@ -431,6 +446,9 @@ tables, except for the following options:
- `showSidebarBorder`
- `chartCategoricalColors`
- `chartSequentialColors`
- `chartDivergingColors`

Additionally, everything in `[theme.sidebar]` can be configured in separate `[theme.dark.sidebar]` and `[theme.light.sidebar]` tables.

```toml
[theme]
Expand Down Expand Up @@ -956,6 +974,30 @@ chartCategoricalColors =
# "#e4f5ff", #blue10
# ]
chartSequentialColors =

# An array of ten colors to use for diverging chart data.
#
# The ten colors create a diverging color scale, typically used for data
# with a meaningful midpoint. These colors apply to Plotly, Altair, and
# Vega-Lite charts.
#
# Invalid color strings are skipped. If there are not exactly ten
# valid colors specified, Streamlit uses a default set of colors.
#
# The default colors are:
# [
# "#7d353b", #red100
# "#bd4043", #red90
# "#ff4b4b", #red70
# "#ff8c8c", #red50
# "#ffc7c7", #red30
# "#a6dcff", #blue30
# "#60b4ff", #blue50
# "#1c83e1", #blue70
# "#0054a3", #blue90
# "#004280", #blue100
# ]
chartDivergingColors =
```

#### Sidebar theme
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The following two configuration options can only be applied to the whole app:

- `theme.base` sets the default colors for your app's theme to match one of Streamlit's two default themes (`"light"` or `"dark"`). If any theme configuation option is used and `theme.base` is not set, then Streamlit will use `"light"`.
- `theme.showSidebarBorder` sets the visibility of the border between the sidebar and the main body of your app.
- `theme.chartCategoricalColors` and `theme.chartSequentialColors` set the series colors for Plotly, Altair, and Vega-Lite charts.
- `theme.chartCategoricalColors`, `theme.chartSequentialColors`, and `theme.chartDivergingColors` set the series colors for Plotly, Altair, and Vega-Lite charts.

The following configuration options can be set separately for the sidebar by using the `[theme.sidebar]` table instead of the `[theme]` table in `config.toml`:

Expand Down