Default · light
Dimmed Light
- Collection
- Default
- 4 themes
- Appearance
- light
- also in dark
- Status
- release
- in the catalog
- Contrast
- 93%
- 19 AAA · 6 AA · 28 large · 4 low
- Accent
- #009044
- a10
black-atom-default-dimmed-light · black-atom.industries/black-atom/themes/default-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 default-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 · #03060ad20 · #0e1217d30 · #1b2025d40 · #292e34m10 · #43484em20 · #53595fm30 · #646a70m40 · #757b81l10 · #b8bec5l20 · #dde4ebl30 · #dfe5ecl40 · #ecf3fa
Palette
black · #0e1217is primaries.d20
gray · #43484eis primaries.m10
darkRed · #a12f2f
red · #bc4945
darkGreen · #008c11is accents.a20
green · #009044is accents.a10
darkYellow · #835300
yellow · #9c6a00
darkBlue · #2a54cafrom accents.a30
blue · #3f6de5is accents.a30
darkMagenta · #bd0053from accents.a40
magenta · #da1d69is accents.a40
darkCyan · #007078
cyan · #008890
lightGray · #757b81is primaries.m40
white · #b8bec5is primaries.l10
Accents
a10 · #009044a20 · #008c11a30 · #3f6de5a40 · #da1d69
Feedback
negative · #c23870success · #008c11info · #00848bwarning · #d07600
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
- #d2d8df · oklch(0.88 0.012 252)
- from
- primaries.l30
UI foregrounds
fg.subtle7.3AAA
Secondary text such as line numbers- value
- #43484e · oklch(0.40 0.012 253)
- is
- primaries.m10
fg.accent3.3Large
Links and text that needs to stand out- value
- #009044 · oklch(0.57 0.154 151)
- is
- accents.a10
fg.border2.0Line
Idle borders, separators and guide lines- value
- #a0a4a7 · oklch(0.72 0.006 240)
- from
- primaries.m40 + primaries.l30
Syntax
Comments are dim on purpose, so they sit lower than the rest of the code.
variable10.8AAA
property5.6AA
string3.5Large
constant10.8AAA
module12.9AAA
boolean3.5Large
number3.5Large
type3.3Large
attribute3.3Large
func12.9AAA
constructor12.9AAA
keyword3.7Large
operator12.9AAA
punctuation10.8AAA
comment3.4Large
tag3.3Large
Terminal
Gray is the terminal's dim text, the counterpart of comments.
black14.8AAA
gray7.3AAA
darkRed5.6AA
red4.0Large
darkYellow5.2AA
yellow3.7Large
darkGreen3.5Large
green3.3Large
darkCyan4.6AA
cyan3.4Large
darkBlue5.1AA
blue3.7Large
darkMagenta5.0AA
magenta3.8Large
lightGray3.4Large
white1.5Low
··
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 |