Mono · light
Light
- Collection
- Mono
- 4 themes
- Appearance
- light
- also in dark
- Status
- release
- in the catalog
- Contrast
- 100%
- 31 AAA · 20 AA · 6 large · 0 low
- Accent
- #2e2e2e
- a10
black-atom-mono-light · black-atom.industries/black-atom/themes/mono-light
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-light
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Light
❯ 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 · #0a0907d20 · #181614d30 · #2b2826d40 · #3f3d3am10 · #605d5bm20 · #716e6cm30 · #82807dm40 · #94928fl10 · #e0dddal20 · #f1eeebl30 · #fefbf8l40 · #fffffc
Palette
black · #3f3d3ais primaries.d40
gray · #605d5bis primaries.m10
darkRed · #5d5a58from primaries.m10
red · #716e6cfrom primaries.m10
darkGreen · #383533from primaries.m10
green · #4a4745from primaries.m10
darkYellow · #5d5a58from primaries.m10
yellow · #716e6cfrom primaries.m10
darkBlue · #161412from primaries.m10
blue · #262422from primaries.m10
darkMagenta · #161412from primaries.m10
magenta · #262422from primaries.m10
darkCyan · #383533from primaries.m10
cyan · #4a4745from primaries.m10
lightGray · #94928fis primaries.m40
white · #e0dddais primaries.l10
Accents
a10 · #2e2e2ea20 · #4d4d4d
Feedback
negative · #c21725success · #5d7600info · #0079bdwarning · #af5f00
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
- #f1eeeb · oklch(0.95 0.005 68)
- from
- primaries.l30
UI foregrounds
fg.accent13.2AAA
Links and text that needs to stand out- value
- #2e2e2e · oklch(0.30 0.000 0)
- is
- accents.a10
fg.border2.1Line
Idle borders, separators and guide lines- value
- #b1afad · oklch(0.76 0.004 68)
- from
- primaries.m30 + primaries.l30
Syntax
Comments are dim on purpose, so they sit lower than the rest of the code.
variable14.2AAA
property6.3AA
string4.9AA
constant17.5AAA
module14.2AAA
boolean6.3AA
number10.5AAA
type19.3AAA
attribute8.2AAA
func13.2AAA
constructor13.2AAA
keyword13.2AAA
operator17.5AAA
punctuation10.5AAA
comment4.9AA
tag8.2AAA
Terminal
Gray is the terminal's dim text, the counterpart of comments.
black10.5AAA
gray6.3AA
darkRed6.6AA
red4.9AA
darkYellow6.6AA
yellow4.9AA
darkGreen11.8AAA
green8.9AAA
darkCyan11.8AAA
cyan8.9AAA
darkBlue17.8AAA
blue15.0AAA
darkMagenta17.8AAA
magenta15.0AAA
lightGray3.0Large
white1.3Low
··
Files
Generated for Light| 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 |