Mono · dark

Dark

Definition ↗
Collection
Mono
4 themes
Appearance
dark
also in light
Status
release
in the catalog
Contrast
100%
40 AAA · 13 AA · 4 large · 0 low
Accent
#e4e4e4
a10

black-atom-mono-dark · black-atom.industries/black-atom/themes/mono-dark

Editor

▾ src
▾ lib
load.ts
parse.ts
theme.ts M
new.ts A
old.ts D
▸ dist
README.md
1// Load the active theme from disk
2import { readFile } from "node:fs";
▎ 3export function load(file: string): Theme {
load(file: string): Theme
Reads and parses a theme file.
▎ 4const MAX = 42, strict = true; ● unused
▎ 5if (file.length > MAX) {
6throw new Error("too long");● undefined
7}
8for (const line of lines) {
9if (line.startsWith("#")) {
10continue;● skips comments
11}
12}
▎13return parse(readFile(file));
14}
NORMALmainload.ts✘ 1▲ 1● 1✔ saved

Diff

load.tsworking tree ↔ HEAD+4-1~2
@@ -1,4 +1,4 @@
1 // Load the active theme from disk
2~ import { readFile } from "node:fs";
3
@@ -12,6 +12,9 @@ load
12 export function load(file: string) {
13 const raw = readFile(file);
- return JSON.parse(raw);
14+ const theme = JSON.parse(raw);
15+ if (!theme.name) {
16+ throw new Error("missing name");
17+ }
18~ return theme;
19 }

Terminal

~/code/black-atom on main [!?]
❯ livery apply mono-dark
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Dark
❯ git status -sb
## main...origin/main
M core/src/themes/jpn.ts
A adapters/nvim/border.lua
❯ git commit -m "border token"
palette
black dark-red dark-green dark-yellow dark-blue dark-magenta dark-cyan light-gray gray red green yellow blue magenta cyan white
1:zsh2:nvim3:lazygit

Primaries

d10 · #070504d20 · #0f0d0bd30 · #1c1a18d40 · #2b2826m10 · #4a4745m20 · #656360m30 · #82807dm40 · #a09e9bl10 · #c6c3c1l20 · #dad7d4l30 · #edeae8l40 · #fbf8f5

Palette

black · #2b2826is primaries.d40
gray · #82807dis primaries.m30
darkRed · #cfcdcafrom primaries.m40
red · #e6e4e1from primaries.m40
darkGreen · #a3a19efrom primaries.m40
green · #b9b7b4from primaries.m40
darkYellow · #cfcdcafrom primaries.m40
yellow · #e6e4e1from primaries.m40
darkBlue · #797774from primaries.m40
blue · #8e8c89from primaries.m40
darkMagenta · #797774from primaries.m40
magenta · #8e8c89from primaries.m40
darkCyan · #a3a19efrom primaries.m40
cyan · #b9b7b4from primaries.m40
lightGray · #a09e9bis primaries.m40
white · #dad7d4is primaries.l20

Accents

a10 · #e4e4e4a20 · #b7b7b7

Feedback

negative · #dd7577success · #a9ba78info · #79b5ccwarning · #d6b174
Contrast grades
  • 7.0AAA7:1 and up, comfortable for any text
  • 4.5AA4.5:1, fine for body text
  • 3.0Large3:1, only for large text and UI marks
  • 2.0Lowunder 3:1, hard to read
  • 1.0LineBorders and guides, drawn and not read, so not graded

UI backgrounds

bg.default
Default background
value
#0f0d0b · oklch(0.16 0.005 67)
is
primaries.d20
bg.panel
Sidebars and the status line
value
#070504 · oklch(0.12 0.006 52)
is
primaries.d10
bg.float
Floating windows and popups
value
#070504 · oklch(0.12 0.006 52)
is
primaries.d10
bg.active
Active elements such as the cursor line or the active tab
value
#1c1a18 · oklch(0.22 0.005 68)
is
primaries.d30
bg.disabled
Disabled interactive elements
value
#2b2826 · oklch(0.28 0.006 56)
is
primaries.d40
bg.hover
Hover state of interactive elements
value
#1c1a18 · oklch(0.22 0.005 68)
is
primaries.d30
bg.selection
Visual selection
value
#2b2826 · oklch(0.28 0.006 56)
is
primaries.d40
bg.search
Search matches
value
#2b2826 · oklch(0.28 0.006 56)
is
primaries.d40
bg.contrast
Inverted background
value
#c6c3c1 · oklch(0.82 0.004 56)
is
primaries.l10
bg.negative
Errors
value
#502d2d · oklch(0.34 0.052 20)
from
primaries.d10 + feedback.negative
bg.info
Information
value
#2e424a · oklch(0.37 0.029 225)
from
primaries.d10 + feedback.info
bg.hint
Hints
value
#4d412d · oklch(0.38 0.036 80)
from
primaries.d10 + feedback.warning
bg.warn
Warnings
value
#4d412d · oklch(0.38 0.036 80)
from
primaries.d10 + feedback.warning
bg.positive
Success
value
#3e442e · oklch(0.37 0.037 121)
from
primaries.d10 + feedback.success
bg.add
Added lines
value
#1b200c · oklch(0.23 0.036 121)
from
primaries.d20 + feedback.success
bg.delete
Deleted lines
value
#2c1616 · oklch(0.23 0.036 20)
from
primaries.d20 + feedback.negative
bg.modify
Modified lines
value
#072129 · oklch(0.23 0.035 222)
from
primaries.d20 + feedback.info

UI foregrounds

fg.default16.2AAA
Default text
value
#edeae8 · oklch(0.94 0.004 56)
is
primaries.l30
fg.subtle4.9AA
Secondary text such as line numbers
value
#82807d · oklch(0.60 0.005 78)
is
primaries.m30
fg.accent15.3AAA
Links and text that needs to stand out
value
#e4e4e4 · oklch(0.92 0.000 0)
is
accents.a10
fg.disabled3.2Large
Disabled text
value
#656360 · oklch(0.50 0.005 78)
is
primaries.m20
fg.contrast11.1AAA
Text on inverted backgrounds
value
#0f0d0b · oklch(0.16 0.005 67)
is
primaries.d20
fg.negative3.9Large
Error text
value
#dd7577 · oklch(0.68 0.130 20)
is
feedback.negative
fg.warn4.9AA
Warning text
value
#d6b174 · oklch(0.78 0.090 79)
is
feedback.warning
fg.info4.7AA
Information text
value
#79b5cc · oklch(0.74 0.070 224)
is
feedback.info
fg.hint4.9AA
Hint text
value
#d6b174 · oklch(0.78 0.090 79)
is
feedback.warning
fg.positive4.8AA
Success text
value
#a9ba78 · oklch(0.76 0.090 120)
is
feedback.success
fg.add7.9AAA
Added marks
value
#a9ba78 · oklch(0.76 0.090 120)
is
feedback.success
fg.delete5.6AA
Deleted marks
value
#dd7577 · oklch(0.68 0.130 20)
is
feedback.negative
fg.modify7.4AAA
Modified marks
value
#79b5cc · oklch(0.74 0.070 224)
is
feedback.info
fg.border2.1Line
Idle borders, separators and guide lines
value
#4a4745 · oklch(0.40 0.005 56)
is
primaries.m10

Syntax

Comments are dim on purpose, so they sit lower than the rest of the code.

variable#dad7d4is primaries.l2013.5AAA
property#b7b7b7is accents.a209.7AAA
string#dad7d4is primaries.l2013.5AAA
constant#c6c3c1is primaries.l1011.1AAA
module#dad7d4is primaries.l2013.5AAA
boolean#a09e9bis primaries.m407.3AAA
number#c6c3c1is primaries.l1011.1AAA
type#fbf8f5is primaries.l4018.3AAA
attribute#b7b7b7is accents.a209.7AAA
func#e4e4e4is accents.a1015.3AAA
constructor#e4e4e4is accents.a1015.3AAA
keyword#edeae8is primaries.l3016.2AAA
operator#edeae8is primaries.l3016.2AAA
punctuation#c6c3c1is primaries.l1011.1AAA
comment#82807dis primaries.m304.9AA
tag#e4e4e4is accents.a1015.3AAA

Terminal

Gray is the terminal's dim text, the counterpart of comments.

black#2b2826is primaries.d401.3Low
gray#82807dis primaries.m304.9AA
darkRed#cfcdcafrom primaries.m4012.2AAA
red#e6e4e1from primaries.m4015.3AAA
darkYellow#cfcdcafrom primaries.m4012.2AAA
yellow#e6e4e1from primaries.m4015.3AAA
darkGreen#a3a19efrom primaries.m407.5AAA
green#b9b7b4from primaries.m409.7AAA
darkCyan#a3a19efrom primaries.m407.5AAA
cyan#b9b7b4from primaries.m409.7AAA
darkBlue#797774from primaries.m404.3Large
blue#8e8c89from primaries.m405.8AA
darkMagenta#797774from primaries.m404.3Large
magenta#8e8c89from primaries.m405.8AA
lightGray#a09e9bis primaries.m407.3AAA
white#dad7d4is primaries.l2013.5AAA