Skip to content

Add default text colors to theme#12407

Merged
mayagbarnes merged 7 commits intodevelopfrom
default-text-colors
Sep 5, 2025
Merged

Add default text colors to theme#12407
mayagbarnes merged 7 commits intodevelopfrom
default-text-colors

Conversation

@mayagbarnes
Copy link
Copy Markdown
Collaborator

@mayagbarnes mayagbarnes commented Sep 3, 2025

Describe your changes

Add the following main color keys, with defaults for streamlit light/dark themes:

  • redTextColor
  • orangeTextColor
  • yellowTextColor
  • blueTextColor
  • greenTextColor
  • violetTextColor
  • grayTextColor

Text colors apply to:

  • Status element (st.warning, st.success, st.info, st.error, st.exception) text
  • Colored text in Markdown
  • st.badge text
  • st.metric delta text (red/green/gray text colors)
  • Inline code in Markdown (greenTextColor)
  • Type in st.help (greenTextColor)
  • Error texts and icons (e.g. in st.file_uploader, st.chat_input) (redTextColor)
  • Links (if not set through theme.linkColor) (blueTextColor)

Testing Plan

  • JS Unit Tests: ✅
  • E2E Tests: ✅ Updated
  • Manual Testing: ✅

@mayagbarnes mayagbarnes added security-assessment-completed change:refactor PR contains code refactoring without behavior change impact:users PR changes affect end users labels Sep 3, 2025
@snyk-io
Copy link
Copy Markdown
Contributor

snyk-io bot commented Sep 3, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Sep 3, 2025

✅ PR preview is ready!

Name Link
📦 Wheel file https://core-previews.s3-us-west-2.amazonaws.com/pr-12407/streamlit-1.49.1-py3-none-any.whl
🕹️ Preview app pr-12407.streamlit.app (☁️ Deploy here if not accessible)

@mayagbarnes mayagbarnes requested a review from Copilot September 4, 2025 21:55

This comment was marked as outdated.

@mayagbarnes mayagbarnes changed the title [WIP] Add default text colors to theme Add default text colors to theme Sep 4, 2025
@mayagbarnes mayagbarnes marked this pull request as ready for review September 4, 2025 22:40
@mayagbarnes mayagbarnes requested a review from Copilot September 4, 2025 22:40

This comment was marked as outdated.

@mayagbarnes mayagbarnes requested a review from Copilot September 4, 2025 22:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The gray background color also changed in this screenshot update. Is that expected?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like the text color changes pushed these over the threshold - the default background colors PR updated the dark_theme versions of this set of snaps, but not the light_theme ones

Copy link
Copy Markdown
Collaborator

@lukasmasuch lukasmasuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@mayagbarnes mayagbarnes merged commit e19e35a into develop Sep 5, 2025
37 of 39 checks passed
@mayagbarnes mayagbarnes deleted the default-text-colors branch September 5, 2025 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:refactor PR contains code refactoring without behavior change impact:users PR changes affect end users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants