TERRA · dark
Spring Dark
- 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
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.active
Active elements such as the cursor line or the active tab- value
- #272b1e · oklch(0.28 0.024 122)
- is
- primaries.d30
UI foregrounds
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.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.
variable9.0AAA
property6.8AA
constant7.5AAA
module6.8AA
string9.3AAA
boolean7.0AAA
number7.0AAA
type9.3AAA
attribute9.3AAA
func10.9AAA
constructor10.9AAA
operator7.3AAA
keyword8.5AAA
punctuation7.3AAA
comment5.0AA
tag10.9AAA
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed6.5AA
red8.0AAA
darkGreen7.0AAA
green9.3AAA
darkYellow7.5AAA
yellow10.9AAA
darkBlue6.8AA
blue9.0AAA
darkMagenta6.6AA
magenta8.5AAA
darkCyan7.0AAA
cyan9.3AAA
black1.4Low
gray5.0AA
lightGray7.3AAA
white11.0AAA
··
Files
Generated for Spring 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 |