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

Developer classics · Dark theme

City Lights Navy

Very dark navy with periwinkle-white text, blue links and a lilac accent.

Developer classics Dark theme Text contrast AAA 11.1: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 City Lights Navy's ten colours. Compare it live with the other themes.

Contrast in plain words

Body text is #c5cffa on #1a1b26, a contrast of 11.1:1. That passes the stricter WCAG AAA level for body text (7:1).

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

Use City Lights Navy 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 City Lights Navy theme
Colour Hex Used for Copy
Background #1a1b26 The page behind everything
Surface #292e42 Cards, panels and raised areas
Text #c5cffa Body text and headings
Muted text #828ab2 Captions and secondary text
Link #7aa2f7 Links you have not opened
Visited link #9d7cd8 Links you have opened
Accent #bb9af7 Buttons and highlights
Border #3b4261 Lines and outlines
Selection #3d59a1 Behind text you select
Scrollbar #353c57 The scrollbar thumb

CSS variables

city-lights-navy.css
/* City Lights Navy — Dark Mode Alpha */
:root {
  color-scheme: dark;
  --dma-background: #1a1b26;
  --dma-surface: #292e42;
  --dma-text: #c5cffa;
  --dma-muted: #828ab2;
  --dma-link: #7aa2f7;
  --dma-visited: #9d7cd8;
  --dma-accent: #bb9af7;
  --dma-border: #3b4261;
  --dma-selection: #3d59a1;
  --dma-scrollbar: #353c57;
}

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

Contrast figures

Contrast ratios for the City Lights Navy theme
Pair Ratio WCAG
Body text text on background 11.1:1 AAA
Text on panels text on surface 8.7:1 AAA
Muted text muted on background 5.1:1 AA
Links link on background 6.8:1 AA
Visited links visited on background 5.1:1 AA
Accent accent on background 7.4:1 AAA

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

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

  • Softer contrast Off-white text on a lifted dark background, never pure white on pure black. Some people prefer text that is less stark.

Credit and licence

The colours of City Lights Navy are inspired by the open-source palette Tokyo Night (night) by Folke Lemaitre , published under the Apache-2.0 licence. The name, the adjustments and the contrast checks are ours.

Full licence notices

City Lights Navy 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 City Lights Navy by background, text and link colour.