New: 177 themes, each one tested for readable contrast. Browse them

Developer classics · Dark theme

Nightshade

Grey-violet background with near-white text, cyan links and a pink accent.

Developer classics Dark theme Text contrast AAA 13.4:1

Preview

fieldnotes.example/tide-pools

Field notes · 4 minute read

How tide pools keep their colour

At low tide the rock holds small pools of sea water. Each one is a link you have not opened, and beside it one you already have. A value such as depth: 12cm sits in a code chip.

A good theme keeps a quote readable without making it shout.

PoolDepthSeen
North ledge12 cmAnemone, limpets
Split rock30 cmShore crab
Read more Save Muted caption text

A sample page in Nightshade's ten colours. Compare it live with the other themes.

Contrast in plain words

Body text is #f8f8f2 on #282a36, a contrast of 13.4:1. That passes the stricter WCAG AAA level for body text (7:1).

Links come out at 10.3:1 and muted text at 4.8:1 against the background. The perceptual lightness gap between text and background is 0.69 on a scale from 0 to 1.

Use Nightshade on the sites you open.

Free in Dark Mode Alpha, along with every other theme. Give it to one site or to all of them.

Palette

The ten colours of the Nightshade theme
Colour Hex Used for Copy
Background #282a36 The page behind everything
Surface #363848 Cards, panels and raised areas
Text #f8f8f2 Body text and headings
Muted text #8495c9 Captions and secondary text
Link #8be9fd Links you have not opened
Visited link #bd93f9 Links you have opened
Accent #ff79c6 Buttons and highlights
Border #6272a4 Lines and outlines
Selection #44475a Behind text you select
Scrollbar #546087 The scrollbar thumb

CSS variables

nightshade.css
/* Nightshade — Dark Mode Alpha */
:root {
  color-scheme: dark;
  --dma-background: #282a36;
  --dma-surface: #363848;
  --dma-text: #f8f8f2;
  --dma-muted: #8495c9;
  --dma-link: #8be9fd;
  --dma-visited: #bd93f9;
  --dma-accent: #ff79c6;
  --dma-border: #6272a4;
  --dma-selection: #44475a;
  --dma-scrollbar: #546087;
}

Paste the block into your own stylesheet to use these colours, for example background: var(--dma-background).

Contrast figures

Contrast ratios for the Nightshade theme
Pair Ratio WCAG
Body text text on background 13.4:1 AAA
Text on panels text on surface 10.8:1 AAA
Muted text muted on background 4.8:1 AA
Links link on background 10.3:1 AAA
Visited links visited on background 5.9:1 AA
Accent accent on background 6.0:1 AA

AAA means at least 7:1, AA at least 4.5:1, and "AA large" at least 3:1, which is enough for large text and interface parts but not for body text.

Family and collections

Nightshade belongs to the Developer classics family: looks based on well-known open-source editor palettes, adjusted to meet our contrast rules.

Not part of a purpose collection. Browse its family.

Credit and licence

The colours of Nightshade are inspired by the open-source palette Dracula by Dracula Theme , published under the MIT licence. The name, the adjustments and the contrast checks are ours.

Full licence notices

Nightshade as its card appears in the extension's gallery
The card for this theme in the extension's gallery.

Similar themes

The closest themes to Nightshade by background, text and link colour.