TERRA · light
Spring Light
- Collection
- TERRA
- 8 themes
- Appearance
- light
- also in dark
- Status
- release
- in the catalog
- Contrast
- 86%
- 7 AAA · 23 AA · 19 large · 8 low
- Accent
- #e66f66
- a10
black-atom-terra-spring-light · black-atom.industries/black-atom/themes/terra-spring-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-spring-light
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Spring 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
Primaries
d10 · #222713d20 · #474e35d30 · #575f42d40 · #656d4dm10 · #626a4dm20 · #a27696m30 · #d4b2cam40 · #e3c8dbl10 · #eadcc5l20 · #f3e6d2l30 · #faf1e2l40 · #fef9f1
Palette
black · #656d4dis primaries.d40
gray · #626a4dis primaries.m10
darkRed · #98374c
red · #b13f3a
darkGreen · #366809
green · #4c730f
darkYellow · #b38537
yellow · #b08506
darkBlue · #3b5697
blue · #4964a3
darkMagenta · #a66ea1
magenta · #b077ab
darkCyan · #4b8c71
cyan · #55977b
lightGray · #e3c8dbis primaries.m40
white · #faf1e2is primaries.l30
Accents
a10 · #e66f66a20 · #cd9c1f
Feedback
negative · #b13f3ais palette.redsuccess · #4c730fis palette.greeninfo · #4964a3is palette.bluewarning · #b08506is 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
- #eadcc5 · oklch(0.90 0.034 80)
- is
- primaries.l10
UI foregrounds
fg.subtle5.1AA
Secondary text such as line numbers- value
- #626a4d · oklch(0.51 0.045 121)
- is
- primaries.m10
fg.accent2.7Low
Links and text that needs to stand out- value
- #e66f66 · oklch(0.68 0.150 26)
- is
- accents.a10
fg.positive4.3Large
Success text- value
- #4c730f · oklch(0.51 0.130 130)
- is
- feedback.success = palette.green
fg.border1.9Line
Idle borders, separators and guide lines- value
- #aeb2a4 · oklch(0.76 0.020 120)
- from
- primaries.m10 + primaries.l30
Syntax
Comments are dim on purpose, so they sit lower than the rest of the code.
variable5.2AA
property6.3AA
string5.0AA
constant3.0Low
module6.3AA
boolean3.5Large
number3.5Large
type3.1Large
attribute3.1Large
func3.0Large
constructor3.0Large
keyword3.1Large
operator7.8AAA
punctuation5.1AA
comment5.1AA
tag3.0Large
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed6.3AA
red5.1AA
darkGreen6.0AA
green5.0AA
darkYellow3.0Low
yellow3.0Large
darkBlue6.3AA
blue5.2AA
darkMagenta3.5Large
magenta3.1Large
darkCyan3.5Large
cyan3.1Large
black4.9AA
gray5.1AA
lightGray1.4Low
white1.0Low
··
Files
Generated for Spring Light| 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 |