Skip to content

feat: theme-aware RTE (light/dark mode via CSS variables)#4585

Merged
marinatrajk merged 1 commit into
mainfrom
marina/theme-aware-rte
Feb 18, 2026
Merged

feat: theme-aware RTE (light/dark mode via CSS variables)#4585
marinatrajk merged 1 commit into
mainfrom
marina/theme-aware-rte

Conversation

@marinatrajk

@marinatrajk marinatrajk commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace all hardcoded dark hex values in the document editor HTML template with CSS variables (--v-bg, --v-text, --v-surface, etc.) that adapt to the system light/dark preference
  • Conditionally load Toast UI dark theme CSS and highlight.js themes via media attributes; add light-mode highlight.js stylesheet
  • Set Toast UI editor theme dynamically at init time based on window.matchMedia('(prefers-color-scheme: dark)')
  • Apply same changes to both the daemon-side editor-template.ts and the Swift-side DocumentEditorView.swift
  • Also reverts the togglePanelselection change from fix: address document editor review feedback from PR #4502 #4578 (being handled separately by Revert "fix: address document editor review feedback from PR #4502" #4581)

🤖 Generated with Claude Code


Open with Devin

Co-Authored-By: Claude <noreply@anthropic.com>
@marinatrajk marinatrajk merged commit 15ddc27 into main Feb 18, 2026
@marinatrajk marinatrajk deleted the marina/theme-aware-rte branch February 18, 2026 18:47

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View 3 additional findings in Devin Review.

Open in Devin Review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8f8b2bc8b3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread clients/macos/vellum-assistant/Features/MainWindow/MainWindow.swift
@vellum-automation

Copy link
Copy Markdown
Contributor

📦 macOS DMG artifact for this PR is ready for download: Download vellum-assistant-pr-4585.dmg

@marinatrajk

Copy link
Copy Markdown
Contributor Author

Addressed in #4822

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.

2 participants