TERRA · dark

Winter Dark

Definition ↗
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
1:zsh2:nvim3:lazygit

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.default
Default background
value
#12161d · oklch(0.20 0.015 262)
is
primaries.d20
bg.panel
Sidebars and the status line
value
#0b0d12 · oklch(0.16 0.011 268)
is
primaries.d10
bg.float
Floating windows and popups
value
#0b0d12 · oklch(0.16 0.011 268)
is
primaries.d10
bg.active
Active elements such as the cursor line or the active tab
value
#1a222e · oklch(0.25 0.026 258)
is
primaries.d30
bg.disabled
Disabled interactive elements
value
#3f556b · oklch(0.44 0.045 249)
is
primaries.m10
bg.hover
Hover state of interactive elements
value
#1a222e · oklch(0.25 0.026 258)
is
primaries.d30
bg.selection
Visual selection
value
#212f3f · oklch(0.30 0.035 252)
is
primaries.d40
bg.search
Search matches
value
#212f3f · oklch(0.30 0.035 252)
is
primaries.d40
bg.contrast
Inverted background
value
#e2e8f2 · oklch(0.93 0.015 261)
is
primaries.l30
bg.negative
Errors
value
#463134 · oklch(0.34 0.031 9)
from
primaries.d10 + feedback.negative
bg.warn
Warnings
value
#4a3623 · oklch(0.35 0.042 64)
from
primaries.d10 + feedback.warning
bg.info
Information
value
#2c3947 · oklch(0.34 0.030 251)
from
primaries.d10 + feedback.info
bg.hint
Hints
value
#472e23 · oklch(0.33 0.042 45)
from
primaries.d10 + palette.darkYellow
bg.positive
Success
value
#2d3c40 · oklch(0.34 0.021 216)
from
primaries.d10 + feedback.success
bg.add
Added lines
value
#0f2b31 · oklch(0.27 0.035 214)
from
primaries.d20 + feedback.success
bg.delete
Deleted lines
value
#351f22 · oklch(0.27 0.035 11)
from
primaries.d20 + feedback.negative
bg.modify
Modified lines
value
#192837 · oklch(0.27 0.035 249)
from
primaries.d20 + feedback.info

UI foregrounds

fg.default14.7AAA
Default text
value
#e2e8f2 · oklch(0.93 0.015 261)
is
primaries.l30
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.disabled3.8Large
Disabled text
value
#5e748b · oklch(0.55 0.044 250)
is
primaries.m30
fg.contrast14.7AAA
Text on inverted backgrounds
value
#12161d · oklch(0.20 0.015 262)
is
primaries.d20
fg.negative5.3AA
Error text
value
#e996a0 · oklch(0.76 0.101 12)
is
feedback.negative = palette.red
fg.warn5.9AA
Warning text
value
#fba952 · oklch(0.80 0.140 65)
is
feedback.warning = palette.yellow = accents.a10
fg.info5.5AA
Information text
value
#7fb6ee · oklch(0.76 0.100 250)
is
feedback.info = palette.blue
fg.hint4.8AA
Hint text
value
#eb8656 · oklch(0.72 0.139 45)
is
palette.darkYellow = accents.a20
fg.positive5.8AA
Success text
value
#82c3d3 · oklch(0.78 0.070 215)
is
feedback.success = palette.green
fg.add7.6AAA
Added marks
value
#82c3d3 · oklch(0.78 0.070 215)
is
feedback.success = palette.green
fg.delete6.8AA
Deleted marks
value
#e996a0 · oklch(0.76 0.101 12)
is
feedback.negative = palette.red
fg.modify7.0AAA
Modified marks
value
#7fb6ee · oklch(0.76 0.100 250)
is
feedback.info = palette.blue
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.

variable#7fb6eeis palette.blue8.5AAA
property#729bcfis palette.darkBlue6.3AA
constant#eb8656is palette.darkYellow = accents.a207.0AA
module#729bcfis palette.darkBlue6.3AA
string#82c3d3is palette.green9.2AAA
boolean#64b3c0is palette.darkCyan7.6AAA
number#64b3c0is palette.darkCyan7.6AAA
type#71cfd9is palette.cyan10.0AAA
attribute#71cfd9is palette.cyan10.0AAA
func#fba952is palette.yellow = accents.a109.4AAA
constructor#fba952is palette.yellow = accents.a109.4AAA
operator#c0ccdbis palette.lightGray = primaries.l1011.1AAA
keyword#b4a7dfis palette.magenta8.2AAA
punctuation#c0ccdbis palette.lightGray = primaries.l1011.1AAA
comment#5e748bis palette.gray = primaries.m303.8Large
tag#fba952is palette.yellow = accents.a109.4AAA

Terminal

Gray is the terminal's dim text, the counterpart of comments.

darkRed#c981896.0AA
red#e996a08.1AAA
darkGreen#74a8b86.9AA
green#82c3d39.2AAA
darkYellow#eb8656is accents.a207.0AA
yellow#fba952is accents.a109.4AAA
darkBlue#729bcf6.3AA
blue#7fb6ee8.5AAA
darkMagenta#9f8fbe6.2AA
magenta#b4a7df8.2AAA
darkCyan#64b3c07.6AAA
cyan#71cfd910.0AAA
black#212f3fis primaries.d401.3Low
gray#5e748bis primaries.m303.8Large
lightGray#c0ccdbis primaries.l1011.1AAA
white#e2e8f2is primaries.l3014.7AAA