Mono · light
Dimmed Light
- Collection
- Mono
- 4 themes
- Appearance
- light
- also in dark
- Status
- release
- in the catalog
- Contrast
- 100%
- 20 AAA · 20 AA · 17 large · 0 low
- Accent
- #5f5155
- a10
black-atom-mono-dimmed-light · black-atom.industries/black-atom/themes/mono-dimmed-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-dimmed-light
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Dimmed 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 · #161616d20 · #292929d30 · #3d3d3dd40 · #4d4d4dm10 · #525252m20 · #5d5d5dm30 · #696969m40 · #747474l10 · #c4c4c4l20 · #d1d1d1l30 · #dededel40 · #ebebeb
Palette
black · #4d4d4dis primaries.d40
gray · #525252is primaries.m10
darkRed · #505050from primaries.m10
red · #636363from primaries.m10
darkGreen · #2b2b2bfrom primaries.m10
green · #3d3d3dfrom primaries.m10
darkYellow · #505050from primaries.m10
yellow · #636363from primaries.m10
darkBlue · #0b0b0bfrom primaries.m10
blue · #1a1a1afrom primaries.m10
darkMagenta · #0b0b0bfrom primaries.m10
magenta · #1a1a1afrom primaries.m10
darkCyan · #2b2b2bfrom primaries.m10
cyan · #3d3d3dfrom primaries.m10
lightGray · #747474is primaries.m40
white · #c4c4c4is primaries.l10
Accents
a10 · #5f5155a20 · #776f71
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
- #d1d1d1 · oklch(0.86 0.000 0)
- from
- primaries.l30
UI foregrounds
fg.accent5.6AA
Links and text that needs to stand out- value
- #5f5155 · oklch(0.45 0.020 359)
- is
- accents.a10
fg.border2.2Line
Idle borders, separators and guide lines- value
- #969696 · oklch(0.67 0.000 0)
- from
- primaries.m30 + primaries.l30
Syntax
Comments are dim on purpose, so they sit lower than the rest of the code.
variable8.1AAA
property5.8AA
string4.9AA
constant10.8AAA
module8.1AAA
boolean5.8AA
number6.3AA
type13.5AAA
attribute3.6Large
func5.6AA
constructor5.6AA
keyword5.6AA
operator10.8AAA
punctuation6.3AA
comment4.9AA
tag3.6Large
Terminal
Gray is the terminal's dim text, the counterpart of comments.
black6.3AA
gray5.8AA
darkRed6.0AA
red4.5Large
darkYellow6.0AA
yellow4.5Large
darkGreen10.5AAA
green8.1AAA
darkCyan10.5AAA
cyan8.1AAA
darkBlue14.6AAA
blue12.9AAA
darkMagenta14.6AAA
magenta12.9AAA
lightGray3.5Large
white1.3Low
··
Files
Generated for Dimmed 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 |