TERRA · dark

Summer Dark

Definition ↗
Collection
TERRA
8 themes
Appearance
dark
also in light
Status
release
in the catalog
Contrast
100%
32 AAA · 25 AA · 0 large · 0 low
Accent
#d8bd51
a10

black-atom-terra-summer-dark · black-atom.industries/black-atom/themes/terra-summer-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-summer-dark
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Summer 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
1:zsh2:nvim3:lazygit

Primaries

d10 · #001113d20 · #001b1ad30 · #092520d40 · #2a433am10 · #2e503em20 · #4f6c54m30 · #71886cm40 · #94a585l10 · #baad8al20 · #cdbc9al30 · #dfcbaal40 · #f9e1c0

Palette

black · #2a433ais primaries.d40
gray · #71886cis primaries.m30
darkRed · #c88b94
red · #c88f7b
darkGreen · #69a45c
green · #8cbf70
darkYellow · #e99e5eis accents.a20
yellow · #d8bd51is accents.a10
darkBlue · #65a281
blue · #80be9d
darkMagenta · #b87ca4
magenta · #dc96b1
darkCyan · #4ba39c
cyan · #6dc3b8
lightGray · #baad8ais primaries.l10
white · #dfcbaais primaries.l30

Accents

a10 · #d8bd51a20 · #e99e5e

Feedback

negative · #c88f7bis palette.redsuccess · #8cbf70is palette.greeninfo · #80be9dis palette.bluewarning · #d8bd51is palette.yellow = accents.a10
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
#001b1a · oklch(0.20 0.034 191)
is
primaries.d20
bg.panel
Sidebars and the status line
value
#001113 · oklch(0.16 0.028 204)
is
primaries.d10
bg.float
Floating windows and popups
value
#001113 · oklch(0.16 0.028 204)
is
primaries.d10
bg.active
Active elements such as the cursor line or the active tab
value
#092520 · oklch(0.24 0.035 179)
is
primaries.d30
bg.disabled
Disabled interactive elements
value
#2e503e · oklch(0.40 0.050 160)
is
primaries.m10
bg.hover
Hover state of interactive elements
value
#092520 · oklch(0.24 0.035 179)
is
primaries.d30
bg.selection
Visual selection
value
#2a433a · oklch(0.36 0.035 170)
is
primaries.d40
bg.search
Search matches
value
#2a433a · oklch(0.36 0.035 170)
is
primaries.d40
bg.contrast
Inverted background
value
#dfcbaa · oklch(0.85 0.049 80)
is
primaries.l30
bg.negative
Errors
value
#3f302b · oklch(0.32 0.024 39)
from
primaries.d10 + feedback.negative
bg.warn
Warnings
value
#423c24 · oklch(0.36 0.039 96)
from
primaries.d10 + feedback.warning
bg.info
Information
value
#2d3c34 · oklch(0.34 0.024 162)
from
primaries.d10 + feedback.info
bg.hint
Hints
value
#473425 · oklch(0.34 0.037 59)
from
primaries.d10 + palette.darkYellow
bg.positive
Success
value
#303c29 · oklch(0.34 0.036 134)
from
primaries.d10 + feedback.success
bg.add
Added lines
value
#1f2a19 · oklch(0.27 0.034 135)
from
primaries.d20 + feedback.success
bg.delete
Deleted lines
value
#352119 · oklch(0.27 0.034 43)
from
primaries.d20 + feedback.negative
bg.modify
Modified lines
value
#162c21 · oklch(0.27 0.035 161)
from
primaries.d20 + feedback.info

UI foregrounds

fg.default11.3AAA
Default text
value
#dfcbaa · oklch(0.85 0.049 80)
is
primaries.l30
fg.subtle6.8AA
Secondary text such as line numbers
value
#94a585 · oklch(0.70 0.049 130)
is
primaries.m40
fg.accent9.7AAA
Links and text that needs to stand out
value
#d8bd51 · oklch(0.80 0.130 95)
is
accents.a10
fg.disabled4.6AA
Disabled text
value
#71886c · oklch(0.60 0.049 140)
is
primaries.m30
fg.contrast11.3AAA
Text on inverted backgrounds
value
#001b1a · oklch(0.20 0.034 191)
is
primaries.d20
fg.negative4.6AA
Error text
value
#c88f7b · oklch(0.70 0.076 40)
is
feedback.negative = palette.red
fg.warn5.9AA
Warning text
value
#d8bd51 · oklch(0.80 0.130 95)
is
feedback.warning = palette.yellow = accents.a10
fg.info5.4AA
Information text
value
#80be9d · oklch(0.75 0.080 160)
is
feedback.info = palette.blue
fg.hint5.3AA
Hint text
value
#e99e5e · oklch(0.76 0.120 60)
is
palette.darkYellow = accents.a20
fg.positive5.4AA
Success text
value
#8cbf70 · oklch(0.75 0.120 135)
is
feedback.success = palette.green
fg.add7.0AA
Added marks
value
#8cbf70 · oklch(0.75 0.120 135)
is
feedback.success = palette.green
fg.delete5.5AA
Deleted marks
value
#c88f7b · oklch(0.70 0.076 40)
is
feedback.negative = palette.red
fg.modify6.9AA
Modified marks
value
#80be9d · oklch(0.75 0.080 160)
is
feedback.info = palette.blue
fg.border2.0Line
Idle borders, separators and guide lines
value
#2e503e · oklch(0.40 0.050 160)
is
primaries.m10

Syntax

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

variable#80be9dis palette.blue8.3AAA
property#65a281is palette.darkBlue6.0AA
constant#e99e5eis palette.darkYellow = accents.a208.1AAA
module#65a281is palette.darkBlue6.0AA
string#8cbf70is palette.green8.4AAA
boolean#4ba39cis palette.darkCyan6.0AA
number#4ba39cis palette.darkCyan6.0AA
type#6dc3b8is palette.cyan8.7AAA
attribute#6dc3b8is palette.cyan8.7AAA
func#d8bd51is palette.yellow = accents.a109.7AAA
constructor#d8bd51is palette.yellow = accents.a109.7AAA
operator#baad8ais palette.lightGray = primaries.l108.1AAA
keyword#dc96b1is palette.magenta7.7AAA
punctuation#baad8ais palette.lightGray = primaries.l108.1AAA
comment#71886cis palette.gray = primaries.m304.6AA
tag#d8bd51is palette.yellow = accents.a109.7AAA

Terminal

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

darkRed#c88b946.5AA
red#c88f7b6.5AA
darkGreen#69a45c6.0AA
green#8cbf708.4AAA
darkYellow#e99e5eis accents.a208.1AAA
yellow#d8bd51is accents.a109.7AAA
darkBlue#65a2816.0AA
blue#80be9d8.3AAA
darkMagenta#b87ca45.5AA
magenta#dc96b17.7AAA
darkCyan#4ba39c6.0AA
cyan#6dc3b88.7AAA
black#2a433ais primaries.d401.7Low
gray#71886cis primaries.m304.6AA
lightGray#baad8ais primaries.l108.1AAA
white#dfcbaais primaries.l3011.3AAA