TERRA · dark

Fall Dark

Definition ↗
Collection
TERRA
8 themes
Appearance
dark
also in light
Status
release
in the catalog
Contrast
100%
22 AAA · 31 AA · 4 large · 0 low
Accent
#ce903a
a10

black-atom-terra-fall-dark · black-atom.industries/black-atom/themes/terra-fall-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-fall-dark
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Fall 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 · #20120cd20 · #241711d30 · #2e201ad40 · #392a23m10 · #86563bm20 · #a57357m30 · #a98774m40 · #c59174l10 · #c9a592l20 · #d9b5a2l30 · #eac5b1l40 · #f7d6c5

Palette

black · #392a23is primaries.d40
gray · #a98774is primaries.m30
darkRed · #cd6c5d
red · #f69181
darkGreen · #889776
green · #95a483
darkYellow · #dc8652is accents.a20
yellow · #ce903ais accents.a10
darkBlue · #c49a83
blue · #e2baa5
darkMagenta · #8c7895
magenta · #9e89a8
darkCyan · #92ac9a
cyan · #a4bfac
lightGray · #c9a592is primaries.l10
white · #eac5b1is primaries.l30

Accents

a10 · #ce903aa20 · #dc8652

Feedback

negative · #f69181is palette.redsuccess · #95a483is palette.greeninfo · #e2baa5is palette.bluewarning · #ce903ais 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
#241711 · oklch(0.22 0.024 46)
is
primaries.d20
bg.panel
Sidebars and the status line
value
#20120c · oklch(0.20 0.026 44)
is
primaries.d10
bg.float
Floating windows and popups
value
#20120c · oklch(0.20 0.026 44)
is
primaries.d10
bg.active
Active elements such as the cursor line or the active tab
value
#2e201a · oklch(0.26 0.024 44)
is
primaries.d30
bg.disabled
Disabled interactive elements
value
#86563b · oklch(0.50 0.075 50)
is
primaries.m10
bg.hover
Hover state of interactive elements
value
#2e201a · oklch(0.26 0.024 44)
is
primaries.d30
bg.selection
Visual selection
value
#392a23 · oklch(0.30 0.026 46)
is
primaries.d40
bg.search
Search matches
value
#392a23 · oklch(0.30 0.026 46)
is
primaries.d40
bg.contrast
Inverted background
value
#eac5b1 · oklch(0.85 0.050 50)
is
primaries.l30
bg.negative
Errors
value
#513833 · oklch(0.37 0.037 32)
from
primaries.d10 + feedback.negative
bg.warn
Warnings
value
#473724 · oklch(0.35 0.038 71)
from
primaries.d10 + feedback.warning
bg.info
Information
value
#4c413c · oklch(0.39 0.017 46)
from
primaries.d10 + feedback.info
bg.hint
Hints
value
#4b3529 · oklch(0.35 0.038 50)
from
primaries.d10 + palette.darkYellow
bg.positive
Success
value
#383c34 · oklch(0.35 0.015 129)
from
primaries.d10 + feedback.success
bg.add
Added lines
value
#262f1b · oklch(0.29 0.037 128)
from
primaries.d20 + feedback.success
bg.delete
Deleted lines
value
#3b2521 · oklch(0.29 0.035 31)
from
primaries.d20 + feedback.negative
bg.modify
Modified lines
value
#3a261b · oklch(0.29 0.036 50)
from
primaries.d20 + feedback.info

UI foregrounds

fg.default10.9AAA
Default text
value
#eac5b1 · oklch(0.85 0.050 50)
is
primaries.l30
fg.subtle6.4AA
Secondary text such as line numbers
value
#c59174 · oklch(0.70 0.075 50)
is
primaries.m40
fg.accent6.4AA
Links and text that needs to stand out
value
#ce903a · oklch(0.70 0.125 72)
is
accents.a10
fg.disabled5.3AA
Disabled text
value
#a98774 · oklch(0.65 0.050 51)
is
primaries.m30
fg.contrast10.9AAA
Text on inverted backgrounds
value
#241711 · oklch(0.22 0.024 46)
is
primaries.d20
fg.negative4.7AA
Error text
value
#f69181 · oklch(0.76 0.125 30)
is
feedback.negative = palette.red
fg.warn4.2Large
Warning text
value
#ce903a · oklch(0.70 0.125 72)
is
feedback.warning = palette.yellow = accents.a10
fg.info5.5AA
Information text
value
#e2baa5 · oklch(0.82 0.055 49)
is
feedback.info = palette.blue
fg.hint4.1Large
Hint text
value
#dc8652 · oklch(0.70 0.125 51)
is
palette.darkYellow = accents.a20
fg.positive4.2Large
Success text
value
#95a483 · oklch(0.70 0.050 128)
is
feedback.success = palette.green
fg.add5.3AA
Added marks
value
#95a483 · oklch(0.70 0.050 128)
is
feedback.success = palette.green
fg.delete6.3AA
Deleted marks
value
#f69181 · oklch(0.76 0.125 30)
is
feedback.negative = palette.red
fg.modify8.0AAA
Modified marks
value
#e2baa5 · oklch(0.82 0.055 49)
is
feedback.info = palette.blue
fg.border2.8Line
Idle borders, separators and guide lines
value
#86563b · oklch(0.50 0.075 50)
is
primaries.m10

Syntax

Comments are dim on purpose, so they sit lower than the rest of the code.

variable#e2baa5is palette.blue9.8AAA
property#c49a83is palette.darkBlue6.9AA
constant#dc8652is palette.darkYellow = accents.a206.3AA
module#c49a83is palette.darkBlue6.9AA
string#95a483is palette.green6.6AA
boolean#92ac9ais palette.darkCyan7.1AAA
number#92ac9ais palette.darkCyan7.1AAA
type#a4bfacis palette.cyan8.8AAA
attribute#a4bfacis palette.cyan8.8AAA
func#ce903ais palette.yellow = accents.a106.4AA
constructor#ce903ais palette.yellow = accents.a106.4AA
operator#c9a592is palette.lightGray = primaries.l107.7AAA
keyword#9e89a8is palette.magenta5.5AA
punctuation#c9a592is palette.lightGray = primaries.l107.7AAA
comment#a98774is palette.gray = primaries.m305.3AA
tag#ce903ais palette.yellow = accents.a106.4AA

Terminal

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

darkRed#cd6c5d4.9AA
red#f691817.7AAA
darkGreen#8897765.6AA
green#95a4836.6AA
darkYellow#dc8652is accents.a206.3AA
yellow#ce903ais accents.a106.4AA
darkBlue#c49a836.9AA
blue#e2baa59.8AAA
darkMagenta#8c78954.3Large
magenta#9e89a85.5AA
darkCyan#92ac9a7.1AAA
cyan#a4bfac8.8AAA
black#392a23is primaries.d401.3Low
gray#a98774is primaries.m305.3AA
lightGray#c9a592is primaries.l107.7AAA
white#eac5b1is primaries.l3010.9AAA