Developer classics · Dark theme
Editor Slate
Blue-grey slate with pale grey text, sky-blue links and a sand 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 Editor Slate's ten colours. Compare it live with the other themes.
Contrast in plain words
Body text is #d0d7e5 on #282c34, a
contrast of 9.7:1. That passes the stricter WCAG AAA level for body text (7:1).
Links come out at 5.9:1 and muted text at 4.8:1 against the background. The perceptual lightness gap between text and background is 0.58 on a scale from 0 to 1.
Use Editor Slate 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 | #282c34 | The page behind everything | |
| Surface | #31363f | Cards, panels and raised areas | |
| Text | #d0d7e5 | Body text and headings | |
| Muted text | #9098a6 | Captions and secondary text | |
| Link | #61afef | Links you have not opened | |
| Visited link | #e797ff | Links you have opened | |
| Accent | #e5c07b | Buttons and highlights | |
| Border | #434a57 | Lines and outlines | |
| Selection | #49505f | Behind text you select | |
| Scrollbar | #3e4450 | The scrollbar thumb |
CSS variables
/* Editor Slate — Dark Mode Alpha */
:root {
color-scheme: dark;
--dma-background: #282c34;
--dma-surface: #31363f;
--dma-text: #d0d7e5;
--dma-muted: #9098a6;
--dma-link: #61afef;
--dma-visited: #e797ff;
--dma-accent: #e5c07b;
--dma-border: #434a57;
--dma-selection: #49505f;
--dma-scrollbar: #3e4450;
}
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 | 9.7:1 | AAA |
| Text on panels text on surface | 8.4:1 | AAA |
| Muted text muted on background | 4.8:1 | AA |
| Links link on background | 5.9:1 | AA |
| Visited links visited on background | 6.8:1 | AA |
| Accent accent on background | 8.1: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
Editor Slate 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.
- Evening and dim rooms Dark grey and slate pages with off-white text, never pure black or pure white. Some people find off-white on grey easier to read than white on black.
Credit and licence
The colours of Editor Slate are inspired by the open-source palette One 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 Editor Slate by background, text and link colour.