TERRA · dark
Winter Dark
- Collection
- TERRA
- 8 themes
- Appearance
- dark
- also in light
- Status
- release
- in the catalog
- Contrast
- 100%
- 36 AAA · 18 AA · 3 large · 0 low
- Accent
- #fba952
- a10
black-atom-terra-winter-dark · black-atom.industries/black-atom/themes/terra-winter-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 terra-winter-dark
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Winter 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 · #0b0d12d20 · #12161dd30 · #1a222ed40 · #212f3fm10 · #3f556bm20 · #4c667fm30 · #5e748bm40 · #6f8298l10 · #c0ccdbl20 · #d3dbe8l30 · #e2e8f2l40 · #eef2f9
Palette
black · #212f3fis primaries.d40
gray · #5e748bis primaries.m30
darkRed · #c98189
red · #e996a0
darkGreen · #74a8b8
green · #82c3d3
darkYellow · #eb8656is accents.a20
yellow · #fba952is accents.a10
darkBlue · #729bcf
blue · #7fb6ee
darkMagenta · #9f8fbe
magenta · #b4a7df
darkCyan · #64b3c0
cyan · #71cfd9
lightGray · #c0ccdbis primaries.l10
white · #e2e8f2is primaries.l30
Accents
a10 · #fba952a20 · #eb8656
Feedback
negative · #e996a0is palette.redsuccess · #82c3d3is palette.greeninfo · #7fb6eeis palette.bluewarning · #fba952is palette.yellow = accents.a10
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
- #1a222e · oklch(0.25 0.026 258)
- is
- primaries.d30
UI foregrounds
fg.subtle4.6AA
Secondary text such as line numbers- value
- #6f8298 · oklch(0.60 0.040 252)
- is
- primaries.m40
fg.accent9.4AAA
Links and text that needs to stand out- value
- #fba952 · oklch(0.80 0.140 65)
- is
- accents.a10
fg.warn5.9AA
Warning text- value
- #fba952 · oklch(0.80 0.140 65)
- is
- feedback.warning = palette.yellow = accents.a10
fg.border2.4Line
Idle borders, separators and guide lines- value
- #3f556b · oklch(0.44 0.045 249)
- is
- primaries.m10
Syntax
Comments are dim on purpose, so they sit lower than the rest of the code.
variable8.5AAA
property6.3AA
constant7.0AA
module6.3AA
string9.2AAA
boolean7.6AAA
number7.6AAA
type10.0AAA
attribute10.0AAA
func9.4AAA
constructor9.4AAA
operator11.1AAA
keyword8.2AAA
punctuation11.1AAA
comment3.8Large
tag9.4AAA
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed6.0AA
red8.1AAA
darkGreen6.9AA
green9.2AAA
darkYellow7.0AA
yellow9.4AAA
darkBlue6.3AA
blue8.5AAA
darkMagenta6.2AA
magenta8.2AAA
darkCyan7.6AAA
cyan10.0AAA
black1.3Low
gray3.8Large
lightGray11.1AAA
white14.7AAA
··
Files
Generated for Winter 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 |