TERRA · light

Spring Light

Definition ↗
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
1:zsh2:nvim3:lazygit

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.default
Default background
value
#faf1e2 · oklch(0.96 0.022 81)
is
primaries.l30
bg.panel
Sidebars and the status line
value
#f3e6d2 · oklch(0.93 0.030 79)
is
primaries.l20
bg.float
Floating windows and popups
value
#f3e6d2 · oklch(0.93 0.030 79)
is
primaries.l20
bg.active
Active elements such as the cursor line or the active tab
value
#eadcc5 · oklch(0.90 0.034 80)
is
primaries.l10
bg.disabled
Disabled interactive elements
value
#d4b2ca · oklch(0.80 0.051 337)
is
primaries.m30
bg.hover
Hover state of interactive elements
value
#eadcc5 · oklch(0.90 0.034 80)
is
primaries.l10
bg.selection
Visual selection
value
#fef9f1 · oklch(0.98 0.012 80)
is
primaries.l40
bg.search
Search matches
value
#fef9f1 · oklch(0.98 0.012 80)
is
primaries.l40
bg.contrast
Inverted background
value
#474e35 · oklch(0.41 0.041 121)
is
primaries.d20
bg.negative
Errors
value
#f2dedc · oklch(0.92 0.022 24)
from
primaries.l40 + feedback.negative
bg.warn
Warnings
value
#efe8db · oklch(0.93 0.019 83)
from
primaries.l40 + feedback.warning
bg.info
Information
value
#dde3ee · oklch(0.91 0.016 263)
from
primaries.l40 + feedback.info
bg.hint
Hints
value
#f0e8dd · oklch(0.93 0.017 76)
from
primaries.l40 + palette.darkYellow
bg.positive
Success
value
#dee5d8 · oklch(0.91 0.019 130)
from
primaries.l40 + feedback.success
bg.add
Added lines
value
#ddead2 · oklch(0.92 0.035 130)
from
primaries.l30 + feedback.success
bg.delete
Deleted lines
value
#fcddd9 · oklch(0.92 0.035 27)
from
primaries.l30 + feedback.negative
bg.modify
Modified lines
value
#dae5fd · oklch(0.92 0.035 266)
from
primaries.l30 + feedback.info

UI foregrounds

fg.default7.8AAA
Default text
value
#474e35 · oklch(0.41 0.041 121)
is
primaries.d20
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.disabled3.4Large
Disabled text
value
#a27696 · oklch(0.62 0.071 337)
is
primaries.m20
fg.contrast7.8AAA
Text on inverted backgrounds
value
#faf1e2 · oklch(0.96 0.022 81)
is
primaries.l30
fg.negative4.5Large
Error text
value
#b13f3a · oklch(0.53 0.150 26)
is
feedback.negative = palette.red
fg.warn2.8Low
Warning text
value
#b08506 · oklch(0.64 0.130 85)
is
feedback.warning = palette.yellow
fg.info4.5Large
Information text
value
#4964a3 · oklch(0.51 0.105 265)
is
feedback.info = palette.blue
fg.hint2.7Low
Hint text
value
#b38537 · oklch(0.65 0.110 78)
is
palette.darkYellow
fg.positive4.3Large
Success text
value
#4c730f · oklch(0.51 0.130 130)
is
feedback.success = palette.green
fg.add4.5Large
Added marks
value
#4c730f · oklch(0.51 0.130 130)
is
feedback.success = palette.green
fg.delete4.5AA
Deleted marks
value
#b13f3a · oklch(0.53 0.150 26)
is
feedback.negative = palette.red
fg.modify4.6AA
Modified marks
value
#4964a3 · oklch(0.51 0.105 265)
is
feedback.info = palette.blue
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.

variable#4964a3is palette.blue5.2AA
property#3b5697is palette.darkBlue6.3AA
string#4c730fis palette.green5.0AA
constant#b38537is palette.darkYellow3.0Low
module#3b5697is palette.darkBlue6.3AA
boolean#4b8c71is palette.darkCyan3.5Large
number#4b8c71is palette.darkCyan3.5Large
type#55977bis palette.cyan3.1Large
attribute#55977bis palette.cyan3.1Large
func#b08506is palette.yellow3.0Large
constructor#b08506is palette.yellow3.0Large
keyword#b077abis palette.magenta3.1Large
operator#474e35is primaries.d207.8AAA
punctuation#626a4dis palette.gray = primaries.m105.1AA
comment#626a4dis palette.gray = primaries.m105.1AA
tag#b08506is palette.yellow3.0Large

Terminal

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

darkRed#98374c6.3AA
red#b13f3a5.1AA
darkGreen#3668096.0AA
green#4c730f5.0AA
darkYellow#b385373.0Low
yellow#b085063.0Large
darkBlue#3b56976.3AA
blue#4964a35.2AA
darkMagenta#a66ea13.5Large
magenta#b077ab3.1Large
darkCyan#4b8c713.5Large
cyan#55977b3.1Large
black#656d4dis primaries.d404.9AA
gray#626a4dis primaries.m105.1AA
lightGray#e3c8dbis primaries.m401.4Low
white#faf1e2is primaries.l301.0Low