Developer classics · Dark theme
Night Ledger
Blue-black with cool white text, mid-blue links and a green accent.
Preview
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.
| Pool | Depth | Seen |
|---|---|---|
| North ledge | 12 cm | Anemone, limpets |
| Split rock | 30 cm | Shore crab |
A sample page in Night Ledger's ten colours. Compare it live with the other themes.
Contrast in plain words
Body text is #e6edf3 on #0d1117, a
contrast of 16.0:1. That passes the stricter WCAG AAA level for body text (7:1).
Links come out at 5.1:1 and muted text at 5.6:1 against the background. The perceptual lightness gap between text and background is 0.77 on a scale from 0 to 1.
Use Night Ledger 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
| Colour | Hex | Used for | Copy |
|---|---|---|---|
| Background | #0d1117 | The page behind everything | |
| Surface | #161b22 | Cards, panels and raised areas | |
| Text | #e6edf3 | Body text and headings | |
| Muted text | #848d97 | Captions and secondary text | |
| Link | #4484e3 | Links you have not opened | |
| Visited link | #a681ed | Links you have opened | |
| Accent | #3fb950 | Buttons and highlights | |
| Border | #30363d | Lines and outlines | |
| Selection | #196ae5 | Behind text you select | |
| Scrollbar | #282e35 | The scrollbar thumb |
CSS variables
/* Night Ledger — Dark Mode Alpha */
:root {
color-scheme: dark;
--dma-background: #0d1117;
--dma-surface: #161b22;
--dma-text: #e6edf3;
--dma-muted: #848d97;
--dma-link: #4484e3;
--dma-visited: #a681ed;
--dma-accent: #3fb950;
--dma-border: #30363d;
--dma-selection: #196ae5;
--dma-scrollbar: #282e35;
}
Paste the block into your own stylesheet to use these colours, for example
background: var(--dma-background).
Contrast figures
| Pair | Ratio | WCAG |
|---|---|---|
| Body text text on background | 16.0:1 | AAA |
| Text on panels text on surface | 14.6:1 | AAA |
| Muted text muted on background | 5.6:1 | AA |
| Links link on background | 5.1:1 | AA |
| Visited links visited on background | 6.3: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
Night Ledger belongs to the Developer classics family: looks based on well-known open-source editor palettes, adjusted to meet our contrast rules.
- Colour-blind safe Links differ from body text in lightness, not only in hue, and stay distinguishable in simulations of the three main types of colour-vision deficiency.
Credit and licence
The colours of Night Ledger are inspired by the open-source palette Primer dark by GitHub Inc. , published under the MIT licence. The name, the adjustments and the contrast checks are ours.
Similar themes
The closest themes to Night Ledger by background, text and link colour.