Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement: Code snippets should follow global theme settings #4219

Open
imtuyethan opened this issue Dec 4, 2024 · 0 comments
Open

enhancement: Code snippets should follow global theme settings #4219

imtuyethan opened this issue Dec 4, 2024 · 0 comments
Assignees
Labels
category: threads & chat Threads & chat UI UX issues type: enhancement Improves a current feature

Comments

@imtuyethan
Copy link
Contributor

Problem

https://discord.com/channels/1107178041848909847/1110389363809976361/1313801151430262844

Currently, code snippets in Jan are locked to dark theme regardless of the user's global theme preference. This creates inconsistency in the UI and can cause eye strain for users who prefer light theme, forcing them to switch their entire UI to dark mode just for code readability.

Request

The code snippet component should:

  • Automatically adjust its theme (light/dark) based on the user's global theme setting
  • Maintain proper syntax highlighting and readability in both themes
  • Update dynamically when the user switches themes
  • Ensure consistent styling with the rest of the UI

Design

Light mode: https://www.figma.com/design/DYfpMhf8qiSReKvYooBgDV/Jan-App-(3rd-version)?node-id=672-18796&m=dev

Screenshot 2024-12-04 at 6 55 19 PM

Dark mode: https://www.figma.com/design/DYfpMhf8qiSReKvYooBgDV/Jan-App-(3rd-version)?node-id=2426-206327&m=dev

Screenshot 2024-12-04 at 6 55 26 PM

@github-project-automation github-project-automation bot moved this to Investigating in Jan & Cortex Dec 4, 2024
@imtuyethan imtuyethan moved this from Investigating to Scheduled in Jan & Cortex Dec 4, 2024
@imtuyethan imtuyethan added type: enhancement Improves a current feature category: threads & chat Threads & chat UI UX issues labels Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: threads & chat Threads & chat UI UX issues type: enhancement Improves a current feature
Projects
Status: Scheduled
Development

No branches or pull requests

2 participants