MarkView comes with 7 carefully crafted themes to suit different preferences and lighting conditions. Switch themes instantly with a keyboard shortcut, and your preference is automatically saved.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sureshamal/markview/llms.txt
Use this file to discover all available pages before exploring further.
Available Themes
MarkView includes the following themes:Light
Clean, bright theme perfect for daytime use
Background:
#ffffffDark
Classic dark theme for reduced eye strain
Background:
#0f172aOcean
Deep blue theme inspired by ocean depths
Background:
#0c1929Forest
Natural green theme for a calming experience
Background:
#1a2e1aSunset
Warm reddish theme reminiscent of dusk
Background:
#2d1f1fPurple
Rich purple theme for a unique look
Background:
#1a1428Midnight
Ultra-dark theme for minimal light emission
Background:
#0a0a12Switching Themes
You can change themes in two ways:- Keyboard Shortcut
Press
Alt+T to open the theme selector modal.Press
Esc to close the theme selector without making changes.Theme Persistence
MarkView automatically saves your theme preference usinglocalStorage. Your selected theme will be:
- Saved immediately when you switch themes (page.tsx:377)
- Restored automatically when you reopen MarkView (page.tsx:369-373)
- Persisted across browser sessions
The theme preference is stored locally in your browser and does not sync across different devices or browsers.
Theme-Aware Components
Several UI components adapt to the selected theme:Syntax Highlighting
Code blocks automatically adjust their color scheme based on the theme:- Light theme: Uses the
prismstyle - Dark themes (dark, ocean, forest, sunset, purple, midnight): Use the
vscDarkPlusstyle
CodeBlock component (page.tsx:46-47).
Mermaid Diagrams
Mermaid diagrams are rendered with theme-appropriate colors:- Light themes get standard Mermaid rendering
- Dark themes apply a color inversion filter for better visibility (page.tsx:23-29)
UI Elements
All UI elements use CSS custom properties that change based on the selected theme:--background: Main background color--foreground: Primary text color--card-bg: Card and sidebar background--card-border: Border colors--primary: Accent color for interactive elements--text-secondary: Muted text color--code-bg: Code block background
Implementation Details
Themes are defined as an array of objects (page.tsx:251-259):data-theme attribute on the root element (page.tsx:677), which triggers CSS variable updates.