Markdown Preview Palettes

Colour presets for the built-in VS Code Markdown preview. Headings, bold text, inline code, quotes and links each get their own colour, so long notes are easier to scan.
- Preview only: Markdown files are never changed.
- Dark and light: every palette comes as two presets,
-dark and -light. Each shows as chosen, in any VS Code theme. High-contrast themes keep the built-in look.
- Readable: every colour meets the WCAG contrast minimum (4.5:1 for text, 3:1 for the two largest headings). The build fails otherwise.
Presets
| Presets |
Headings |
Bold |
Inline code |
Links |
Background (dark / light) |
teal-dark (default), teal-light |
Green-teal family |
Amber |
Muted orange |
VS Code blue |
Theme default / theme default |
plum-dark, plum-light |
Plum and lavender |
Yellow |
Red |
Light blue |
Charcoal / theme default |
crimson-dark, crimson-light |
Red |
White |
Steel grey |
Cyan |
Near-black / theme default |
golden-dark, golden-light |
Gold, amber, orange |
White |
Ivory |
Teal |
Near-black / cream |
mono-dark, mono-light |
Greyscale |
Brightest white |
Light grey |
VS Code blue |
Theme default / theme default |
phosphor-dark, phosphor-light |
Terminal greens |
Pale green |
Lime |
Cyan |
Green-black / pale green |
parchment-dark, parchment-light |
Gold and brown |
Cream |
Orange |
Light blue |
Warm charcoal / beige paper |
azure-dark, azure-light |
Blue |
White |
Light blue |
VS Code blue |
Theme default / theme default |
ember-dark, ember-light |
White and light grey |
Off-white |
Light grey |
Off-white, orange underline |
Near-black / off-white paper |
folio-dark, folio-light |
Near-white, one shade for every level |
Near-white |
Soft red |
Light blue |
Charcoal / off-white |
onyx-dark, onyx-light |
White, then grey |
Amber |
Orange |
Soft blue |
Near-black / white |
graphite-dark, graphite-light |
White, then light grey |
White |
Orange, no box |
White, dotted underline |
Near-black / white |
quartz-dark, quartz-light |
Light grey, same as the text |
Light grey |
Grey, in a bordered box |
Text colour, soft grey underline |
Charcoal / white |
zenith-dark, zenith-light |
Off-white |
Off-white |
Off-white, in a square grey box |
Text colour, solid underline that fades on hover |
Blue-black / white |
default |
Built-in VS Code look (all colouring off) |
|
|
|
|
- Colour columns: they describe the
-dark preset. The -light preset uses darker versions of the same colours, made for a light page.
- Theme default: in a VS Code theme of the same mode, the preset keeps the theme's background, text and link colours. In a theme of the other mode (for example
teal-light in a dark theme), it uses the VS Code Light Modern or Dark Modern colours, so the preset looks the same in every theme.
- Palette names: below, a name without
-dark or -light (for example graphite) means both of its presets.
parchment uses colours from the Apache 2.0 brand-guidelines skill (Light #faf9f5, Dark #141413, Mid Gray #b0aea5, Light Gray #e8e6dc, Orange #d97757, Blue #6a9bcc, Green #788c5d). In light themes, some are darkened slightly to meet the contrast minimum.
ember follows the colours of the Claude Code docs in their dark and light modes: text, headings, links with an orange (dark) or black (light) underline, inline code, code-block boxes, tables and the green tip, blue note and yellow warning callouts. Only colour values and box sizes are reused; no fonts, icons or site code.
Switch Preset
- Open Settings (
Ctrl+, or Cmd+,) and search for Markdown Preview Palettes.
- Pick a preset. Open previews refresh straight away.
Or in settings.json:
"markdownPreviewPalettes.preset": "golden-light"
The setting can also be set per workspace. Preset names without -dark or -light (teal, golden and so on, from earlier versions) no longer work and fall back to teal-dark.
What Gets Coloured
- Headings: one shade per level, H1 to H6.
- Bold text: bold inside a heading or link keeps the heading or link colour.
- Inline code: coloured, in a tinted box. Inline code inside a link,
[`text`](https://github.com/toadish-frog/markdown-preview-palettes/blob/HEAD/url), takes the link colour. graphite shows inline code without a box, and code inside a link keeps the code colour and colours the link underline.
- Quotes:
> and nested >> each have their own colour.
- Callouts: in
ember, folio, onyx, graphite, quartz and zenith, GitHub alerts > [!TIP] (green), > [!NOTE] or > [!INFO] (blue) and > [!WARNING] (yellow in ember, orange in folio) become coloured boxes; inline code and links inside take the callout colour. With Markdown All in One installed, its alert boxes get the same colours, keep its icon and hide its title word. onyx uses blue, green and amber. graphite uses grey boxes for tips and notes and a muted amber for warnings, with its own colours for inline code and the icon. quartz uses filled blue, green and amber boxes with coloured icons. zenith adds a coloured bar on the left edge and its own link colours. Other presets show them as plain quotes.
- Links: some presets set their own link colour; the others keep the VS Code link colour.
folio underlines web and mail links; links within the document or to other files show the underline on hover only. graphite gives every link a dotted underline. quartz and zenith underline every link: quartz in soft grey, turning to the link colour on hover; zenith in the link colour, fading on hover.
- Tables: GitHub style, with a full grid border and striped rows.
folio follows the Claude Platform docs: a shaded header row, rounded corners and soft lines. graphite and quartz draw a line under each row only. zenith has a rounded outer edge, lines between rows, faint stripes and greyer cell text.
- Code blocks: syntax colours are VS Code's own: its dark colours in
-dark presets and its light colours in -light presets, in any VS Code theme. ember, onyx, graphite, quartz and zenith also give the box their own background, border and rounded corners.
Development
Requirements: Python 3.8+ and Git. Node.js (for the extension tests and Markdown lint) and Ruff (for Python formatting) are used by CI and are optional locally.
| Command |
What it does |
make css |
Generate media/preview.css from palettes/palettes.json and run the contrast check |
make test |
Python and extension unit tests |
make lint |
Formatting and lint checks |
make package |
Build dist/markdown-preview-colours-<version>.vsix for local testing (publish with npx @vscode/vsce package) |
- Colours: edit
palettes/palettes.json, then run make css. Never edit media/preview.css by hand.
- Try it: open the folder in VS Code and press
F5; test/sample.md opens in a development window.
- How it works:
extension.js adds a hidden marker naming the chosen preset to each preview; media/preview.css applies that preset's colours.
- Project tracking: see
docs/project-tracker.md and docs/release-guide.md.
Licence
MIT. See LICENSE.
| |