creating-streamlit-themes

Configure Streamlit themes in config.toml with colors, typography, and borders.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/NickEsColR/gemini-rag-demo --skill creating-streamlit-themes-nickescolr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-streamlit-themes
Source: https://github.com/NickEsColR/gemini-rag-demo/tree/main/.agents/skills/developing-with-streamlit/skills/creating-streamlit-themes
Command: npx skills add https://github.com/NickEsColR/gemini-rag-demo --skill creating-streamlit-themes-nickescolr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Centralize and simplify Streamlit UI styling to ensure consistent branding, accessible colors, and maintainable apps by guiding theme configuration instead of ad-hoc CSS.

Core Features & Use Cases

  • Theme configuration: Define a centralized theme in .streamlit/config.toml to control colors, typography, borders, and widget styling.
  • Brand consistency: Apply the same theme across multiple dashboards, with support for light/dark modes and typography presets.
  • Use case: Brand a suite of analytics apps so visuals stay cohesive, reducing UI drift and onboarding effort.

Quick Start

Create a central theme in .streamlit/config.toml and open the Streamlit app to preview colors and typography.

Frequently Asked Questions about creating-streamlit-themes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure a custom Streamlit theme for brand consistency?

Configure a custom Streamlit theme by defining colors, typography, and borders in the .streamlit/config.toml file. Using the [theme] section ensures a cohesive UI across multiple dashboards while avoiding inline CSS.

What is the best way to apply light and dark modes in Streamlit?

Apply light and dark modes in Streamlit by defining theme presets within the config.toml file. This centralizes brand identity settings and provides predictable styling for widgets and charts across dashboards.

How do I load custom fonts into a Streamlit app?

Load custom fonts into a Streamlit app by using the [theme.fontFaces] section in config.toml. This method integrates typography directly into your theme configuration, maintaining styling predictability without custom CSS.

Can I style the Streamlit sidebar independently from the main app?

Yes, you can style the Streamlit sidebar independently by using the [theme.sidebar] section in config.toml. This allows distinct border and color configurations for the sidebar while maintaining overall brand identity.

Why avoid inline CSS when theming Streamlit dashboards?

Avoid inline CSS when theming Streamlit dashboards because it causes UI drift and complicates maintenance. Centralizing colors and typography in config.toml ensures accessible, predictable styling across multiple apps.

Does configuring Streamlit themes with config.toml require external dependencies?

Configuring Streamlit themes with config.toml requires no external dependencies. It relies on native Streamlit configuration sections like [theme] to apply brand identity, typography, and color palettes directly.