TERRA · light

Fall Light

Definition ↗
Collection
TERRA
8 themes
Appearance
light
also in dark
Status
release
in the catalog
Contrast
93%
9 AAA · 17 AA · 27 large · 4 low
Accent
#c96600
a10

black-atom-terra-fall-light · black-atom.industries/black-atom/themes/terra-fall-light

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-light
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Fall Light
❯ 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 · #280e01d20 · #422616d30 · #4f3222d40 · #694a39m10 · #815136m20 · #9b6a4fm30 · #b68367m40 · #d39e81l10 · #eec5a3l20 · #ffd5b3l30 · #ffddbbl40 · #ffe7bf

Palette

black · #694a39is primaries.d40
gray · #815136is primaries.m10
darkRed · #b8492e
red · #c45034
darkGreen · #495f2c
green · #566b38
darkYellow · #ce5d42is accents.a20
yellow · #c96600is accents.a10
darkBlue · #784d34
blue · #8c583b
darkMagenta · #654872
magenta · #826490
darkCyan · #577862
cyan · #63836d
lightGray · #d39e81is primaries.m40
white · #ffddbbis primaries.l30

Accents

a10 · #c96600a20 · #ce5d42

Feedback

negative · #c45034is palette.redsuccess · #566b38is palette.greeninfo · #8c583bis palette.bluewarning · #c96600is 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
#ffddbb · oklch(0.92 0.059 67)
is
primaries.l30
bg.panel
Sidebars and the status line
value
#ffd5b3 · oklch(0.90 0.065 61)
is
primaries.l20
bg.float
Floating windows and popups
value
#ffd5b3 · oklch(0.90 0.065 61)
is
primaries.l20
bg.active
Active elements such as the cursor line or the active tab
value
#eec5a3 · oklch(0.85 0.065 61)
is
primaries.l10
bg.disabled
Disabled interactive elements
value
#b68367 · oklch(0.65 0.075 50)
is
primaries.m30
bg.hover
Hover state of interactive elements
value
#eec5a3 · oklch(0.85 0.065 61)
is
primaries.l10
bg.selection
Visual selection
value
#ffe7bf · oklch(0.94 0.058 80)
is
primaries.l40
bg.search
Search matches
value
#ffe7bf · oklch(0.94 0.058 80)
is
primaries.l40
bg.contrast
Inverted background
value
#422616 · oklch(0.30 0.050 50)
is
primaries.d20
bg.negative
Errors
value
#e7d4ce · oklch(0.88 0.023 38)
from
primaries.l40 + feedback.negative
bg.warn
Warnings
value
#e7d7cc · oklch(0.89 0.023 57)
from
primaries.l40 + feedback.warning
bg.info
Information
value
#dcd3ce · oklch(0.87 0.012 51)
from
primaries.l40 + feedback.info
bg.hint
Hints
value
#e9d5d0 · oklch(0.89 0.023 34)
from
primaries.l40 + palette.darkYellow
bg.positive
Success
value
#d2d6ce · oklch(0.87 0.012 129)
from
primaries.l40 + feedback.success
bg.add
Added lines
value
#ccdeb5 · oklch(0.88 0.058 127)
from
primaries.l30 + feedback.success
bg.delete
Deleted lines
value
#fbcabd · oklch(0.88 0.059 35)
from
primaries.l30 + feedback.negative
bg.modify
Modified lines
value
#f8ccb5 · oklch(0.88 0.059 49)
from
primaries.l30 + feedback.info

UI foregrounds

fg.default10.7AAA
Default text
value
#422616 · oklch(0.30 0.050 50)
is
primaries.d20
fg.subtle5.2AA
Secondary text such as line numbers
value
#815136 · oklch(0.48 0.076 50)
is
primaries.m10
fg.accent3.0Large
Links and text that needs to stand out
value
#c96600 · oklch(0.62 0.154 54)
is
accents.a10
fg.disabled3.6Large
Disabled text
value
#9b6a4f · oklch(0.57 0.074 50)
is
primaries.m20
fg.contrast10.7AAA
Text on inverted backgrounds
value
#ffddbb · oklch(0.92 0.059 67)
is
primaries.l30
fg.negative3.2Large
Error text
value
#c45034 · oklch(0.58 0.155 35)
is
feedback.negative = palette.red
fg.warn2.8Low
Warning text
value
#c96600 · oklch(0.62 0.154 54)
is
feedback.warning = palette.yellow = accents.a10
fg.info4.0Large
Information text
value
#8c583b · oklch(0.51 0.081 49)
is
feedback.info = palette.blue
fg.hint2.8Low
Hint text
value
#ce5d42 · oklch(0.61 0.150 35)
is
palette.darkYellow = accents.a20
fg.positive4.0Large
Success text
value
#566b38 · oklch(0.50 0.079 127)
is
feedback.success = palette.green
fg.add4.1Large
Added marks
value
#566b38 · oklch(0.50 0.079 127)
is
feedback.success = palette.green
fg.delete3.1Large
Deleted marks
value
#c45034 · oklch(0.58 0.155 35)
is
feedback.negative = palette.red
fg.modify4.0Large
Modified marks
value
#8c583b · oklch(0.51 0.081 49)
is
feedback.info = palette.blue
fg.border1.9Line
Idle borders, separators and guide lines
value
#b8a093 · oklch(0.72 0.034 50)
from
primaries.m10 + primaries.l30

Syntax

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

variable#8c583bis palette.blue4.6AA
property#784d34is palette.darkBlue5.6AA
string#566b38is palette.green4.6AA
constant#ce5d42is palette.darkYellow = accents.a203.1Large
module#784d34is palette.darkBlue5.6AA
boolean#577862is palette.darkCyan3.8Large
number#577862is palette.darkCyan3.8Large
type#63836dis palette.cyan3.3Large
attribute#63836dis palette.cyan3.3Large
func#c96600is palette.yellow = accents.a103.0Large
constructor#c96600is palette.yellow = accents.a103.0Large
keyword#826490is palette.magenta3.9Large
operator#422616is primaries.d2010.7AAA
punctuation#815136is palette.gray = primaries.m105.2AA
comment#815136is palette.gray = primaries.m105.2AA
tag#c96600is palette.yellow = accents.a103.0Large

Terminal

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

darkRed#b8492e4.0Large
red#c450343.6Large
darkGreen#495f2c5.5AA
green#566b384.6AA
darkYellow#ce5d42is accents.a203.1Large
yellow#c96600is accents.a103.0Large
darkBlue#784d345.6AA
blue#8c583b4.6AA
darkMagenta#6548726.0AA
magenta#8264903.9Large
darkCyan#5778623.8Large
cyan#63836d3.3Large
black#694a39is primaries.d406.2AA
gray#815136is primaries.m105.2AA
lightGray#d39e81is primaries.m401.8Low
white#ffddbbis primaries.l301.0Low