TERRA · light
Winter Light
- 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
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.active
Active elements such as the cursor line or the active tab- value
- #cfd8e5 · oklch(0.88 0.020 257)
- is
- primaries.l10
UI foregrounds
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.positive3.9Large
Success text- value
- #007a92 · oklch(0.53 0.096 218)
- is
- feedback.success = palette.green
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.
variable4.5AA
property5.5AA
string4.3Large
constant3.0Large
module5.5AA
boolean3.5Large
number3.5Large
type3.0Large
attribute3.0Large
func3.0Large
constructor3.0Large
keyword3.0Large
operator12.6AAA
punctuation5.2AA
comment5.2AA
tag3.0Large
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed5.5AA
red4.5AA
darkGreen5.4AA
green4.3Large
darkYellow3.0Large
yellow3.0Large
darkBlue5.5AA
blue4.5AA
darkMagenta3.5Large
magenta3.0Large
darkCyan3.5Large
cyan3.0Large
black7.3AAA
gray5.2AA
lightGray2.2Low
white1.0Low
··
Files
Generated for Winter 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 |