TERRA · light

Winter Light

Definition ↗
Collection
TERRA
8 themes
Appearance
light
also in dark
Status
release
in the catalog
Contrast
91%
9 AAA · 16 AA · 27 large · 5 low
Accent
#fa9916
a10

black-atom-terra-winter-light · black-atom.industries/black-atom/themes/terra-winter-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-winter-light
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Winter 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 · #0e1721d20 · #1e2a37d30 · #2d3c4cd40 · #3c4f62m10 · #4f667cm20 · #647d97m30 · #7c91aam40 · #94a6bel10 · #cfd8e5l20 · #dfe5efl30 · #ebeff5l40 · #f6f9fc

Palette

black · #3c4f62is primaries.d40
gray · #4f667cis primaries.m10
darkRed · #62559c
red · #6964ac
darkGreen · #006a84
green · #007a92
darkYellow · #e95d00is accents.a20
yellow · #cf7100
darkBlue · #2460a8
blue · #2c70af
darkMagenta · #8b73b4
magenta · #9080c3
darkCyan · #078b9c
cyan · #0098a5
lightGray · #94a6beis primaries.m40
white · #ebeff5is primaries.l30

Accents

a10 · #fa9916a20 · #e95d00

Feedback

negative · #6964acis palette.redsuccess · #007a92is palette.greeninfo · #2c70afis palette.bluewarning · #cf7100is 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
#ebeff5 · oklch(0.95 0.009 258)
is
primaries.l30
bg.panel
Sidebars and the status line
value
#dfe5ef · oklch(0.92 0.015 261)
is
primaries.l20
bg.float
Floating windows and popups
value
#dfe5ef · oklch(0.92 0.015 261)
is
primaries.l20
bg.active
Active elements such as the cursor line or the active tab
value
#cfd8e5 · oklch(0.88 0.020 257)
is
primaries.l10
bg.disabled
Disabled interactive elements
value
#7c91aa · oklch(0.65 0.045 253)
is
primaries.m30
bg.hover
Hover state of interactive elements
value
#cfd8e5 · oklch(0.88 0.020 257)
is
primaries.l10
bg.selection
Visual selection
value
#f6f9fc · oklch(0.98 0.005 248)
is
primaries.l40
bg.search
Search matches
value
#f6f9fc · oklch(0.98 0.005 248)
is
primaries.l40
bg.contrast
Inverted background
value
#1e2a37 · oklch(0.28 0.029 251)
is
primaries.d20
bg.negative
Errors
value
#e2e2ee · oklch(0.92 0.016 286)
from
primaries.l40 + feedback.negative
bg.warn
Warnings
value
#f5e5da · oklch(0.93 0.023 57)
from
primaries.l40 + feedback.warning
bg.info
Information
value
#dae4ef · oklch(0.91 0.018 251)
from
primaries.l40 + feedback.info
bg.hint
Hints
value
#fae3da · oklch(0.93 0.028 43)
from
primaries.l40 + palette.darkYellow
bg.positive
Success
value
#d9e5e9 · oklch(0.91 0.014 220)
from
primaries.l40 + feedback.success
bg.add
Added lines
value
#c9e8f1 · oklch(0.91 0.035 217)
from
primaries.l30 + feedback.success
bg.delete
Deleted lines
value
#dfdff9 · oklch(0.91 0.035 286)
from
primaries.l30 + feedback.negative
bg.modify
Modified lines
value
#d1e4f9 · oklch(0.91 0.035 251)
from
primaries.l30 + feedback.info

UI foregrounds

fg.default12.6AAA
Default text
value
#1e2a37 · oklch(0.28 0.029 251)
is
primaries.d20
fg.subtle5.2AA
Secondary text such as line numbers
value
#4f667c · oklch(0.50 0.045 248)
is
primaries.m10
fg.accent1.9Low
Links and text that needs to stand out
value
#fa9916 · oklch(0.77 0.167 65)
is
accents.a10
fg.disabled3.7Large
Disabled text
value
#647d97 · oklch(0.58 0.050 250)
is
primaries.m20
fg.contrast12.6AAA
Text on inverted backgrounds
value
#ebeff5 · oklch(0.95 0.009 258)
is
primaries.l30
fg.negative4.1Large
Error text
value
#6964ac · oklch(0.54 0.111 285)
is
feedback.negative = palette.red
fg.warn2.8Low
Warning text
value
#cf7100 · oklch(0.64 0.153 59)
is
feedback.warning = palette.yellow
fg.info4.0Large
Information text
value
#2c70af · oklch(0.53 0.120 250)
is
feedback.info = palette.blue
fg.hint2.8Low
Hint text
value
#e95d00 · oklch(0.65 0.190 44)
is
palette.darkYellow = accents.a20
fg.positive3.9Large
Success text
value
#007a92 · oklch(0.53 0.096 218)
is
feedback.success = palette.green
fg.add3.9Large
Added marks
value
#007a92 · oklch(0.53 0.096 218)
is
feedback.success = palette.green
fg.delete4.0Large
Deleted marks
value
#6964ac · oklch(0.54 0.111 285)
is
feedback.negative = palette.red
fg.modify4.0Large
Modified marks
value
#2c70af · oklch(0.53 0.120 250)
is
feedback.info = palette.blue
fg.border1.9Line
Idle borders, separators and guide lines
value
#a4afba · oklch(0.75 0.020 248)
from
primaries.m10 + primaries.l30

Syntax

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

variable#2c70afis palette.blue4.5AA
property#2460a8is palette.darkBlue5.5AA
string#007a92is palette.green4.3Large
constant#e95d00is palette.darkYellow = accents.a203.0Large
module#2460a8is palette.darkBlue5.5AA
boolean#078b9cis palette.darkCyan3.5Large
number#078b9cis palette.darkCyan3.5Large
type#0098a5is palette.cyan3.0Large
attribute#0098a5is palette.cyan3.0Large
func#cf7100is palette.yellow3.0Large
constructor#cf7100is palette.yellow3.0Large
keyword#9080c3is palette.magenta3.0Large
operator#1e2a37is primaries.d2012.6AAA
punctuation#4f667cis palette.gray = primaries.m105.2AA
comment#4f667cis palette.gray = primaries.m105.2AA
tag#cf7100is palette.yellow3.0Large

Terminal

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

darkRed#62559c5.5AA
red#6964ac4.5AA
darkGreen#006a845.4AA
green#007a924.3Large
darkYellow#e95d00is accents.a203.0Large
yellow#cf71003.0Large
darkBlue#2460a85.5AA
blue#2c70af4.5AA
darkMagenta#8b73b43.5Large
magenta#9080c33.0Large
darkCyan#078b9c3.5Large
cyan#0098a53.0Large
black#3c4f62is primaries.d407.3AAA
gray#4f667cis primaries.m105.2AA
lightGray#94a6beis primaries.m402.2Low
white#ebeff5is primaries.l301.0Low