Mono · dark
Dark
- 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
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.active
Active elements such as the cursor line or the active tab- value
- #1c1a18 · oklch(0.22 0.005 68)
- is
- primaries.d30
UI foregrounds
fg.accent15.3AAA
Links and text that needs to stand out- value
- #e4e4e4 · oklch(0.92 0.000 0)
- is
- accents.a10
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.
variable13.5AAA
property9.7AAA
string13.5AAA
constant11.1AAA
module13.5AAA
boolean7.3AAA
number11.1AAA
type18.3AAA
attribute9.7AAA
func15.3AAA
constructor15.3AAA
keyword16.2AAA
operator16.2AAA
punctuation11.1AAA
comment4.9AA
tag15.3AAA
Terminal
Gray is the terminal's dim text, the counterpart of comments.
black1.3Low
gray4.9AA
darkRed12.2AAA
red15.3AAA
darkYellow12.2AAA
yellow15.3AAA
darkGreen7.5AAA
green9.7AAA
darkCyan7.5AAA
cyan9.7AAA
darkBlue4.3Large
blue5.8AA
darkMagenta4.3Large
magenta5.8AA
lightGray7.3AAA
white13.5AAA
··
Files
Generated for Dark| Tool | File | Livery |
|---|---|---|
| ghostty | switches | |
| wezterm | by hand | |
| tmux | switches | |
| herdr | switches | |
| nvim | switches | |
| zed | switches | |
| obsidian | switches | |
| lazygit | switches | |
| delta | switches | |
| tuicr | switches | |
| claude-code | switches | |
| kagi | by hand | |
| niri | by hand | |
| waybar | by hand |