Default · dark
Dimmed Dark
- Collection
- Default
- 4 themes
- Appearance
- dark
- also in light
- Status
- release
- in the catalog
- Contrast
- 100%
- 23 AAA · 25 AA · 9 large · 0 low
- Accent
- #4ec983
- a10
black-atom-default-dimmed-dark · black-atom.industries/black-atom/themes/default-dimmed-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 default-dimmed-dark
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Dimmed 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 · #12171bd20 · #20252ad30 · #2e3339d40 · #3e4349m10 · #595e64m20 · #6a6f76m30 · #7b8187m40 · #8d9399l10 · #d2d8dfl20 · #dbe2e9l30 · #e5ecf3l40 · #eff6fd
Palette
black · #3e4349is primaries.d40
gray · #6a6f76is primaries.m20
darkRed · #dc655f
red · #ff847d
darkGreen · #5bb661is accents.a20
green · #4ec983is accents.a10
darkYellow · #b88600
yellow · #d9a514
darkBlue · #618bddfrom accents.a30
blue · #7faaffis accents.a30
darkMagenta · #d86383from accents.a40
magenta · #fb82a1is accents.a40
darkCyan · #00a4ac
cyan · #2ac4cc
lightGray · #dbe2e9is primaries.l20
white · #e5ecf3is primaries.l30
Accents
a10 · #4ec983a20 · #5bb661a30 · #7faaffa40 · #fb82a1
Feedback
negative · #e97292success · #4cb86ainfo · #00b9c3warning · #dd881b
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
- #2e3339 · oklch(0.32 0.013 253)
- is
- primaries.d30
UI foregrounds
fg.subtle3.9Large
Secondary text such as line numbers- value
- #7b8187 · oklch(0.60 0.012 248)
- is
- primaries.m30
fg.accent7.4AAA
Links and text that needs to stand out- value
- #4ec983 · oklch(0.75 0.150 155)
- is
- accents.a10
fg.border2.4Line
Idle borders, separators and guide lines- value
- #595e64 · oklch(0.48 0.012 253)
- is
- primaries.m10
Syntax
Comments are dim on purpose, so they sit lower than the rest of the code.
variable10.8AAA
property3.9Large
string6.1AA
constant10.8AAA
module11.8AAA
boolean6.1AA
number6.1AA
type7.4AAA
attribute7.4AAA
func13.0AAA
constructor13.0AAA
keyword6.7AA
operator11.8AAA
punctuation10.8AAA
comment3.9Large
tag7.4AAA
Terminal
Gray is the terminal's dim text, the counterpart of comments.
black1.5Low
gray3.1Large
darkRed4.5Large
red6.5AA
darkYellow4.7AA
yellow6.9AA
darkGreen6.1AA
green7.4AAA
darkCyan5.1AA
cyan7.3AAA
darkBlue4.6AA
blue6.7AA
darkMagenta4.4Large
magenta6.5AA
lightGray11.8AAA
white13.0AAA
··
Files
Generated for Dimmed 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 |