using-streamlit-markdown

Render rich markdown with colored text, icons, badges, and LaTeX in Streamlit apps.

1|1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/Shamrock2245/shamrock-trading-bot --skill using-streamlit-markdown-shamrock2245
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-streamlit-markdown
Source: https://github.com/Shamrock2245/shamrock-trading-bot/tree/main/.agent/skills/developing-with-streamlit/skills/using-streamlit-markdown
Command: npx skills add https://github.com/Shamrock2245/shamrock-trading-bot --skill using-streamlit-markdown-shamrock2245

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Many Streamlit developers struggle to apply advanced formatting—colored text, icons, badges, and LaTeX—within markdown elements and widget labels, leading to bland interfaces and extra boilerplate.

Core Features & Use Cases

  • Full markdown support in st.markdown, st.write, and other text‑display functions.
  • Label‑subset markdown for widget labels, tooltips, and metric captions, enabling rich inline styling.
  • Streamlit‑specific extensions such as colored text (:red[... ]), background colors, badges, Material icons (:material/...:), and LaTeX rendering.
  • Use case: Quickly create a status dashboard where each metric label includes colored badges and icons to convey health at a glance.

Quick Start

Generate a Streamlit markdown table that uses colored badges to show the status of each task.

Frequently Asked Questions about using-streamlit-markdown

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

FAQPage Schema
How do I render colored text and Material icons in Streamlit markdown?

To render colored text and Material icons in Streamlit markdown, use Streamlit-specific extensions like :red[...] for colored text and :material/...: for icons directly within st.markdown, st.write, or widget labels.

Can I use markdown formatting in Streamlit widget labels and tooltips?

Yes, you can apply a subset of markdown formatting to Streamlit widget labels, tooltips, and metric captions to enable rich inline styling like colored text, badges, and icons without external libraries.

Does Streamlit support LaTeX and badges in st.markdown without external libraries?

Yes, Streamlit natively supports rendering LaTeX and badges in st.markdown without external libraries. You can use GitHub-flavored markdown alongside Streamlit-specific extensions for badges and LaTeX directly.

What is the best way to create a status dashboard with colored badges in Streamlit?

The best way to create a status dashboard in Streamlit is using markdown extensions to generate tables with colored badges and Material icons, conveying task health at a glance within metric labels and captions.

Why does my Streamlit markdown display plain text instead of formatted icons and colors?

Streamlit markdown displays plain text if the syntax for colored text (:red[...]) or Material icons (:material/...:) is incorrect. Ensure you apply these Streamlit-specific extensions properly within st.markdown or widget labels.