Default · dark
Dark
- Collection
- Default
- 4 themes
- Appearance
- dark
- also in light
- Status
- release
- in the catalog
- Contrast
- 100%
- 34 AAA · 21 AA · 2 large · 0 low
- Accent
- #4ec983
- a10
black-atom-default-dark · black-atom.industries/black-atom/themes/default-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-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 · #090e12d20 · #12171bd30 · #1b2025d40 · #25292fm10 · #595e64m20 · #6a6f76m30 · #7b8187m40 · #8d9399l10 · #d2d8dfl20 · #dbe2e9l30 · #e5ecf3l40 · #eff6fd
Palette
black · #25292fis 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
- #1b2025 · oklch(0.24 0.012 248)
- is
- primaries.d30
UI foregrounds
fg.subtle4.6AA
Secondary text such as line numbers- value
- #7b8187 · oklch(0.60 0.012 248)
- is
- primaries.m30
fg.accent8.6AAA
Links and text that needs to stand out- value
- #4ec983 · oklch(0.75 0.150 155)
- is
- accents.a10
fg.border2.8Line
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.
variable12.6AAA
property4.6AA
string7.1AAA
constant12.6AAA
module13.8AAA
boolean7.1AAA
number7.1AAA
type8.6AAA
attribute8.6AAA
func15.1AAA
constructor15.1AAA
keyword7.8AAA
operator13.8AAA
punctuation12.6AAA
comment4.6AA
tag8.6AAA
Terminal
Gray is the terminal's dim text, the counterpart of comments.
black1.2Low
gray3.6Large
darkRed5.2AA
red7.6AAA
darkYellow5.5AA
yellow8.0AAA
darkGreen7.1AAA
green8.6AAA
darkCyan5.9AA
cyan8.5AAA
darkBlue5.4AA
blue7.8AAA
darkMagenta5.2AA
magenta7.6AAA
lightGray13.8AAA
white15.1AAA
··
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 |