Skip to content

Conversation

Ritikavarshney-hub
Copy link
Contributor

@Ritikavarshney-hub Ritikavarshney-hub commented Aug 15, 2025

Which issue does this PR close?

Rationale for this change

Currently, Spamlyser has a fixed dark theme, which may not be preferred by all users. Adding a theme toggle improves accessibility, user comfort, and visual customization without impacting core functionality.

What changes are included in this PR?

Added a Dark/Light theme toggle in the sidebar

Made theme preference persistent using st.session_state

Applied automatic theme-based styling to all Plotly charts

Added smooth fade transition for theme switching

Are these changes tested?

Yes — tested locally with:

Single message classification

Batch CSV upload and analysis

Switching between all models

Both light and dark modes

Are there any user-facing changes?

Yes — a theme toggle appears in the sidebar, allowing users to switch between dark and light mode instantly.

@eccentriccoder01
Copy link
Owner

eccentriccoder01 commented Aug 15, 2025

Great @Ritikavarshney-hub, now please provide a working Streamlit Cloud deployment link of your updated fork/PR. Thanks!

@Ritikavarshney-hub
Copy link
Contributor Author

Ritikavarshney-hub commented Aug 16, 2025

https://ritikavarshney-hub-spamlyser-app-fivhim.streamlit.app/
this is the deployed app link
@eccentriccoder01 kindly have a look

@eccentriccoder01
Copy link
Owner

@Ritikavarshney-hub what you've done is really great, but the texts in the light mode become invisible due to their light colours. Please fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add dark /light theme toggle in sidebar
2 participants