creating-streamlit-themes

Define and apply Streamlit themes via the config.toml [theme] block.

224|23|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/streamlit/agent-skills --skill creating-streamlit-themes-streamlit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-streamlit-themes
Source: https://github.com/streamlit/agent-skills/tree/main/developing-with-streamlit/skills/creating-streamlit-themes
Command: npx skills add https://github.com/streamlit/agent-skills --skill creating-streamlit-themes-streamlit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating and customizing Streamlit themes to ensure brand consistency, accessibility, and polished visuals across apps.

Core Features & Use Cases

  • Configure styles via the Streamlit config.toml [theme] block, including base, colors, typography, borders, and radii.
  • Leverage theme inheritance and per-mode differences (light/dark) to maintain a cohesive UX across environments.
  • Apply design principles for contrast, typography, and visual hierarchy to deliver professional, brand-aligned interfaces.

Quick Start

Update your app's config.toml with a [theme] block and run the Streamlit app to preview the new appearance.

Frequently Asked Questions about creating-streamlit-themes

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

FAQPage Schema
How do I customize Streamlit app themes using config.toml?

To customize Streamlit themes, define a [theme] block in your app's config.toml file to set base colors, typography, borders, and radii for consistent UI styling.

Can I configure separate light and dark mode themes in Streamlit?

Yes, you can configure separate light and dark mode themes in Streamlit. The config.toml [theme] block supports per-mode differences and theme inheritance to maintain cohesive UX across environments.

What's the best way to apply brand colors and typography to a Streamlit app?

The best way to apply brand colors and typography to Streamlit apps is by defining color tokens and font settings within the config.toml [theme] block, ensuring accessible contrast and visual hierarchy.

Does Streamlit theme configuration support sidebar styling?

Yes, Streamlit theme configuration supports sidebar styling. By adjusting the config.toml [theme] block, you can standardize sidebar appearance alongside other UI components for brand alignment.

Why should I use config.toml for Streamlit theming instead of inline styles?

Using config.toml for Streamlit theming centralizes design tokens like colors and fonts, ensuring accessible contrast and consistent UI across apps through theme inheritance and responsive design principles.

What are the limitations of Streamlit theme configuration via config.toml?

Streamlit theme configuration via config.toml is limited to the predefined [theme] block tokens such as base, colors, typography, borders, and radii, and does not support arbitrary custom CSS injection.