diff --git a/src/components/layout/editor/EditorTabs.tsx b/src/components/layout/editor/EditorTabs.tsx
index 4182e65..6bc864e 100644
--- a/src/components/layout/editor/EditorTabs.tsx
+++ b/src/components/layout/editor/EditorTabs.tsx
@@ -6,8 +6,7 @@ import {
Gift,
Maximize2,
Minimize2,
- User,
- Palette,
+ Info,
Settings,
} from 'lucide-react';
import { useAppStore } from '../../../store/useAppStore';
@@ -55,9 +54,8 @@ export function EditorTabs() {
let tabName = '';
if (isWelcomeTab) tabName = 'Welcome';
else if (isBlankTab) tabName = 'Untitled';
- else if (fileId === 'cinder-account') tabName = 'Account';
- else if (fileId === 'cinder-theme') tabName = 'Themes';
else if (fileId === 'cinder-settings') tabName = 'Settings';
+ else if (fileId === 'cinder-info') tabName = 'About';
else tabName = file?.name.replace(/\.md$/, '') || 'Unknown';
return (
@@ -118,9 +116,8 @@ export function EditorTabs() {
color: isActive ? 'var(--editor-header-accent)' : 'inherit',
}}
>
- {fileId === 'cinder-account' &&
}
- {fileId === 'cinder-theme' &&
}
{fileId === 'cinder-settings' &&
}
+ {fileId === 'cinder-info' &&
}
)}
diff --git a/src/theme/cinderTheme.ts b/src/theme/cinderTheme.ts
index 6d10615..4dc52b9 100644
--- a/src/theme/cinderTheme.ts
+++ b/src/theme/cinderTheme.ts
@@ -42,7 +42,7 @@ const cinderEditorTheme = EditorView.theme(
backgroundColor: 'var(--editor-selection-bg) !important',
},
'.cm-activeLine': {
- backgroundColor: 'rgba(255, 255, 255, 0.03)',
+ backgroundColor: 'var(--bg-active)',
},
'.cm-gutters': {
backgroundColor: 'var(--editor-bg)',
@@ -76,21 +76,20 @@ const cinderEditorTheme = EditorView.theme(
opacity: '0.75',
},
'.cm-md-inline-code': {
- backgroundColor: 'rgba(255, 255, 255, 0.06)',
+ backgroundColor: 'var(--bg-tertiary)',
padding: '0.25em 0.5em',
borderRadius: '6px',
fontSize: '0.85em',
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace',
- border: '1px solid rgba(255, 255, 255, 0.08)',
+ border: '1px solid var(--border-secondary)',
color: 'var(--text-primary)',
- boxShadow: '0 1px 2px rgba(0, 0, 0, 0.1)',
},
'.cm-codeblock-line': {
- backgroundColor: 'rgba(0, 0, 0, 0.2)',
+ backgroundColor: 'var(--bg-secondary)',
paddingLeft: '1.3em',
paddingRight: '1.3em',
- borderLeft: '1px solid rgba(255, 255, 255, 0.08)',
- borderRight: '1px solid rgba(255, 255, 255, 0.08)',
+ borderLeft: '1px solid var(--border-secondary)',
+ borderRight: '1px solid var(--border-secondary)',
},
'.cm-codeblock-line *': {
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace',
@@ -118,15 +117,14 @@ const cinderEditorTheme = EditorView.theme(
fontSize: '1.1rem !important',
},
'.cm-blockquote-line': {
- background:
- 'linear-gradient(to right, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01))',
+ backgroundColor: 'var(--bg-active)',
boxShadow: 'inset 4px 0 0 var(--editor-header-accent)',
color: 'var(--text-secondary)',
paddingLeft: '1.6em',
paddingTop: '0.2em',
paddingBottom: '0.2em',
fontStyle: 'italic',
- border: '1px solid rgba(255, 255, 255, 0.03)',
+ border: '1px solid var(--border-secondary)',
borderLeft: 'none',
},
diff --git a/src/theme/markdown.css b/src/theme/markdown.css
index 0edce41..4434c55 100644
--- a/src/theme/markdown.css
+++ b/src/theme/markdown.css
@@ -126,14 +126,13 @@
INLINE CODE
===================================================== */
.markdown-preview code:not(pre code) {
- background: rgba(255, 255, 255, 0.06);
+ background: var(--bg-tertiary);
padding: 0.25em 0.5em;
border-radius: 6px;
font-size: 0.85em;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
- border: 1px solid rgba(255, 255, 255, 0.08);
+ border: 1px solid var(--border-secondary);
color: var(--text-primary);
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
/* =====================================================
@@ -143,11 +142,9 @@
margin: 2em 0;
border-radius: 12px;
overflow: hidden;
- background: rgba(0, 0, 0, 0.2);
- border: 1px solid rgba(255, 255, 255, 0.08);
- box-shadow:
- 0 10px 40px rgba(0, 0, 0, 0.3),
- inset 0 1px 0 rgba(255, 255, 255, 0.05);
+ background: var(--bg-secondary);
+ border: 1px solid var(--border-secondary);
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.markdown-preview .code-block-header {
@@ -155,8 +152,8 @@
align-items: center;
justify-content: space-between;
padding: 0.6em 1em;
- background: rgba(255, 255, 255, 0.02);
- border-bottom: 1px solid rgba(255, 255, 255, 0.05);
+ background: var(--bg-tertiary);
+ border-bottom: 1px solid var(--border-secondary);
font-size: 0.72em;
letter-spacing: 0.1em;
text-transform: uppercase;
@@ -192,18 +189,14 @@
BLOCKQUOTE
===================================================== */
.markdown-preview blockquote {
- background: linear-gradient(
- to right,
- rgba(255, 255, 255, 0.05),
- rgba(255, 255, 255, 0.01)
- );
+ background: var(--bg-active);
padding: 1.2em 1.6em;
border-radius: 4px 12px 12px 4px;
margin: 2em 0;
box-shadow: inset 4px 0 0 var(--editor-header-accent);
color: var(--text-secondary);
font-style: italic;
- border: 1px solid rgba(255, 255, 255, 0.03);
+ border: 1px solid var(--border-secondary);
border-left: none;
}
@@ -226,16 +219,16 @@
.markdown-preview th,
.markdown-preview td {
padding: 0.75em 1em;
- border: 1px solid rgba(255, 255, 255, 0.06);
+ border: 1px solid var(--border-secondary);
}
.markdown-preview th {
- background: rgba(255, 255, 255, 0.04);
+ background: var(--bg-tertiary);
font-weight: 600;
}
.markdown-preview tr:nth-child(even) {
- background: rgba(255, 255, 255, 0.015);
+ background: var(--bg-active);
}
/* =====================================================
@@ -282,7 +275,7 @@
SELECTION
===================================================== */
.markdown-preview ::selection {
- background: rgba(100, 150, 255, 0.25);
+ background: var(--editor-selection-bg);
}
/* =====================================================