Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mayagbarnes
Copy link
Collaborator

Describe your changes

Advanced Theming: add additional color option - "yellow" for the following:

  • colored text (:yellow[text here])
  • background color (:yellow-background[text here])
  • badges (:yellow-badge[text here] or st.badge("Badge", color="yellow"))
  • header/subheader dividers (st.header("Header", divider="yellow") or st.subheader("Subheader", divider="yellow"))
Screenshot 2025-08-13 at 3 01 20 p m Screenshot 2025-08-13 at 3 01 30 p m

Testing Plan

  • Unit Tests (JS and/or Python): ✅ Updated
  • E2E Tests: ✅ Added
  • Manual Testing: ✅

@mayagbarnes mayagbarnes added security-assessment-completed Security assessment has been completed for PR change:feature PR contains new feature or enhancement implementation impact:users PR changes affect end users labels Aug 13, 2025
@snyk-io
Copy link
Contributor

snyk-io bot commented Aug 13, 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
Contributor

github-actions bot commented Aug 13, 2025

✅ PR preview is ready!

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

custom_themed_app & sidebar_custom_theme snapshot updates result of rainbow gradient change in sidebar

@mayagbarnes mayagbarnes marked this pull request as ready for review August 14, 2025 20:46
Comment on lines +176 to +178
theme.colors[lightTheme ? "yellow80" : "yellow70"],
0.9
),
Copy link
Contributor

Choose a reason for hiding this comment

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

The yellowbg background color uses a hardcoded transparency value of 0.9 instead of the conditional transparency pattern used by all other background colors. This breaks visual consistency between light and dark themes. Should be: lightTheme ? 0.9 : 0.7 to match the pattern used by redbg, bluebg, greenbg, and violetbg.

Suggested change
theme.colors[lightTheme ? "yellow80" : "yellow70"],
0.9
),
theme.colors[lightTheme ? "yellow80" : "yellow70"],
lightTheme ? 0.9 : 0.7
),

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note: this is intentionally different - the other colors will be reconciled with upcoming color config changes

@mayagbarnes mayagbarnes merged commit 0ed99eb into develop Aug 14, 2025
37 checks passed
@mayagbarnes mayagbarnes deleted the add-yellow branch August 14, 2025 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:feature PR contains new feature or enhancement implementation impact:users PR changes affect end users security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants