Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/pages/NewWorkspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,7 @@ function EditorArea({ colors, activeDoc, openTabs, activeTabId, closeTab, setAct
{editorMode === 'preview' ? (
// Preview Mode - Rendered HTML
<div
className="prose prose-lg max-w-none"
className={`prose prose-lg max-w-none ${themeKey === 'dark' ? 'prose-dark' : ''}`}
style={{
color: colors.text,
lineHeight: 1.8,
Expand Down
30 changes: 30 additions & 0 deletions src/styles/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,36 @@
color: var(--color-text-secondary);
}

/* Prose dark mode overrides - for workspace preview */
.prose-dark,
.prose-dark * {
color: inherit !important;
}

.prose-dark h1,
.prose-dark h2,
.prose-dark h3,
.prose-dark h4,
.prose-dark h5,
.prose-dark h6 {
color: inherit !important;
}

.prose-dark p,
.prose-dark li,
.prose-dark span {
color: inherit !important;
}

.prose-dark a {
color: var(--color-primary) !important;
}

.prose-dark code {
color: #E6EDF3 !important;
background: rgba(110, 118, 129, 0.4) !important;
}

/* ============================================
UTILITY CLASSES
============================================ */
Expand Down