[PR #4946] [CLOSED] feat: add system theme + rename default to dark #4838

Closed
opened 2026-02-22 18:36:38 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4946
Author: @nehaaprasad
Created: 1/30/2026
Status: Closed

Base: masterHead: feat/dark-light-them-def


📝 Commits (1)

📊 Changes

8 files changed (+89 additions, -34 deletions)

View changed files

📝 frontend/src/LogoContext.jsx (+7 -6)
📝 frontend/src/hooks/useTheme.js (+33 -16)
📝 frontend/src/models/system.js (+2 -4)
📝 frontend/src/pages/GeneralSettings/ChatEmbedWidgets/EmbedConfigs/EmbedRow/CodeSnippetModal/index.jsx (+2 -1)
📝 frontend/src/utils/chat/markdown.js (+2 -3)
frontend/src/utils/theme.js (+38 -0)
📝 frontend/src/utils/toast.js (+3 -2)
📝 server/endpoints/system.js (+2 -2)

📄 Description

Pull Request Type

[x] feat

Relevant Issues

resolves : #4945

What is in this change?

  • Adds a System (auto) theme option that follows the OS color scheme and updates live on OS theme changes.
  • Renames the Default theme to Dark, keeping backward compatibility for previously saved "default" theme values.
  • Updates theme-dependent UI behaviors (logo selection, toast styling, code highlighting) to use the resolved light/dark theme when System is selected.

Additional Information

  • None

Developer Validations

[ ] I ran yarn lint from the root of the repo & committed changes
[ ] Relevant documentation has been updated
[ ] I have tested my code functionality
[ ] Docker build succeeds locally


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/4946 **Author:** [@nehaaprasad](https://github.com/nehaaprasad) **Created:** 1/30/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feat/dark-light-them-def` --- ### 📝 Commits (1) - [`73ba9f0`](https://github.com/Mintplex-Labs/anything-llm/commit/73ba9f08415eedde1ae8ac86b2f437835346aaa3) update ### 📊 Changes **8 files changed** (+89 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/LogoContext.jsx` (+7 -6) 📝 `frontend/src/hooks/useTheme.js` (+33 -16) 📝 `frontend/src/models/system.js` (+2 -4) 📝 `frontend/src/pages/GeneralSettings/ChatEmbedWidgets/EmbedConfigs/EmbedRow/CodeSnippetModal/index.jsx` (+2 -1) 📝 `frontend/src/utils/chat/markdown.js` (+2 -3) ➕ `frontend/src/utils/theme.js` (+38 -0) 📝 `frontend/src/utils/toast.js` (+3 -2) 📝 `server/endpoints/system.js` (+2 -2) </details> ### 📄 Description ### Pull Request Type [x] ✨ feat ### Relevant Issues resolves : #4945 ### What is in this change? - Adds a System (auto) theme option that follows the OS color scheme and updates live on OS theme changes. - Renames the Default theme to Dark, keeping backward compatibility for previously saved "default" theme values. - Updates theme-dependent UI behaviors (logo selection, toast styling, code highlighting) to use the resolved light/dark theme when System is selected. ### Additional Information - None ### Developer Validations [ ] I ran yarn lint from the root of the repo & committed changes [ ] Relevant documentation has been updated [ ] I have tested my code functionality [ ] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:36:38 -05:00
yindo closed this issue 2026-02-22 18:36:38 -05:00
yindo changed title from [PR #4946] feat: add system theme + rename default to dark to [PR #4946] [CLOSED] feat: add system theme + rename default to dark 2026-06-05 15:20:38 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4838