TERRA · dark

Spring Dark

Definition ↗
Collection
TERRA
8 themes
Appearance
dark
also in light
Status
release
in the catalog
Contrast
100%
42 AAA · 15 AA · 0 large · 0 low
Accent
#fb988f
a10

black-atom-terra-spring-dark · black-atom.industries/black-atom/themes/terra-spring-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-spring-dark
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Spring 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 · #10130ad20 · #1c1e14d30 · #272b1ed40 · #363a2bm10 · #464a3bm20 · #7a5670m30 · #ab7f9fm40 · #be97b2l10 · #b7a992l20 · #cabca5l30 · #dccfbcl40 · #ede3d2

Palette

black · #363a2bis primaries.d40
gray · #ab7f9fis primaries.m30
darkRed · #db8a96
red · #fb988f
darkGreen · #89b373
green · #a8cb86
darkYellow · #caa873
yellow · #f8ca65
darkBlue · #8ca4d8
blue · #a6beef
darkMagenta · #be95ba
magenta · #d5abd0
darkCyan · #7eb29a
cyan · #9acbb4
lightGray · #b7a992is primaries.l10
white · #dccfbcis primaries.l30

Accents

a10 · #fb988fa20 · #fbc959

Feedback

negative · #fb988fis palette.redsuccess · #a8cb86is palette.greeninfo · #a6beefis palette.bluewarning · #f8ca65is palette.yellow
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
#1c1e14 · oklch(0.23 0.019 117)
is
primaries.d20
bg.panel
Sidebars and the status line
value
#10130a · oklch(0.18 0.018 123)
is
primaries.d10
bg.float
Floating windows and popups
value
#10130a · oklch(0.18 0.018 123)
is
primaries.d10
bg.active
Active elements such as the cursor line or the active tab
value
#272b1e · oklch(0.28 0.024 122)
is
primaries.d30
bg.disabled
Disabled interactive elements
value
#464a3b · oklch(0.40 0.025 120)
is
primaries.m10
bg.hover
Hover state of interactive elements
value
#272b1e · oklch(0.28 0.024 122)
is
primaries.d30
bg.selection
Visual selection
value
#363a2b · oklch(0.34 0.026 120)
is
primaries.d40
bg.search
Search matches
value
#363a2b · oklch(0.34 0.026 120)
is
primaries.d40
bg.contrast
Inverted background
value
#dccfbc · oklch(0.86 0.029 78)
is
primaries.l30
bg.negative
Errors
value
#4f3634 · oklch(0.36 0.036 24)
from
primaries.d10 + feedback.negative
bg.warn
Warnings
value
#4d422b · oklch(0.38 0.039 85)
from
primaries.d10 + feedback.warning
bg.info
Information
value
#393f4b · oklch(0.37 0.022 264)
from
primaries.d10 + feedback.info
bg.hint
Hints
value
#423a2d · oklch(0.35 0.024 80)
from
primaries.d10 + palette.darkYellow
bg.positive
Success
value
#3a4232 · oklch(0.37 0.029 129)
from
primaries.d10 + feedback.success
bg.add
Added lines
value
#28311f · oklch(0.30 0.034 130)
from
primaries.d20 + feedback.success
bg.delete
Deleted lines
value
#3e2724 · oklch(0.30 0.035 28)
from
primaries.d20 + feedback.negative
bg.modify
Modified lines
value
#252e3f · oklch(0.30 0.033 263)
from
primaries.d20 + feedback.info

UI foregrounds

fg.default11.0AAA
Default text
value
#dccfbc · oklch(0.86 0.029 78)
is
primaries.l30
fg.subtle6.6AA
Secondary text such as line numbers
value
#be97b2 · oklch(0.72 0.059 338)
is
primaries.m40
fg.accent8.0AAA
Links and text that needs to stand out
value
#fb988f · oklch(0.78 0.120 26)
is
accents.a10
fg.disabled5.0AA
Disabled text
value
#ab7f9f · oklch(0.65 0.070 337)
is
primaries.m30
fg.contrast11.0AAA
Text on inverted backgrounds
value
#1c1e14 · oklch(0.23 0.019 117)
is
primaries.d20
fg.negative5.2AA
Error text
value
#fb988f · oklch(0.78 0.120 26)
is
feedback.negative = palette.red
fg.warn6.4AA
Warning text
value
#f8ca65 · oklch(0.86 0.130 85)
is
feedback.warning = palette.yellow
fg.info5.7AA
Information text
value
#a6beef · oklch(0.80 0.075 264)
is
feedback.info = palette.blue
fg.hint5.0AA
Hint text
value
#caa873 · oklch(0.75 0.080 78)
is
palette.darkYellow
fg.positive5.8AA
Success text
value
#a8cb86 · oklch(0.80 0.100 130)
is
feedback.success = palette.green
fg.add7.5AAA
Added marks
value
#a8cb86 · oklch(0.80 0.100 130)
is
feedback.success = palette.green
fg.delete6.6AA
Deleted marks
value
#fb988f · oklch(0.78 0.120 26)
is
feedback.negative = palette.red
fg.modify7.3AAA
Modified marks
value
#a6beef · oklch(0.80 0.075 264)
is
feedback.info = palette.blue
fg.border1.8Line
Idle borders, separators and guide lines
value
#464a3b · oklch(0.40 0.025 120)
is
primaries.m10

Syntax

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

variable#a6beefis palette.blue9.0AAA
property#8ca4d8is palette.darkBlue6.8AA
constant#caa873is palette.darkYellow7.5AAA
module#8ca4d8is palette.darkBlue6.8AA
string#a8cb86is palette.green9.3AAA
boolean#7eb29ais palette.darkCyan7.0AAA
number#7eb29ais palette.darkCyan7.0AAA
type#9acbb4is palette.cyan9.3AAA
attribute#9acbb4is palette.cyan9.3AAA
func#f8ca65is palette.yellow10.9AAA
constructor#f8ca65is palette.yellow10.9AAA
operator#b7a992is palette.lightGray = primaries.l107.3AAA
keyword#d5abd0is palette.magenta8.5AAA
punctuation#b7a992is palette.lightGray = primaries.l107.3AAA
comment#ab7f9fis palette.gray = primaries.m305.0AA
tag#f8ca65is palette.yellow10.9AAA

Terminal

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

darkRed#db8a966.5AA
red#fb988f8.0AAA
darkGreen#89b3737.0AAA
green#a8cb869.3AAA
darkYellow#caa8737.5AAA
yellow#f8ca6510.9AAA
darkBlue#8ca4d86.8AA
blue#a6beef9.0AAA
darkMagenta#be95ba6.6AA
magenta#d5abd08.5AAA
darkCyan#7eb29a7.0AAA
cyan#9acbb49.3AAA
black#363a2bis primaries.d401.4Low
gray#ab7f9fis primaries.m305.0AA
lightGray#b7a992is primaries.l107.3AAA
white#dccfbcis primaries.l3011.0AAA