Default · light
Light
- Collection
- Default
- 4 themes
- Appearance
- light
- also in dark
- Status
- release
- in the catalog
- Contrast
- 96%
- 19 AAA · 9 AA · 27 large · 2 low
- Accent
- #009044
- a10
black-atom-default-light · black-atom.industries/black-atom/themes/default-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 default-light
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on 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 · #03060ad20 · #0e1217d30 · #1b2025d40 · #292e34m10 · #43484em20 · #53595fm30 · #646a70m40 · #757b81l10 · #a8afb5l20 · #e7eef5l30 · #eff6fdl40 · #f6fdff
Palette
black · #0e1217is primaries.d20
gray · #43484eis primaries.m10
darkRed · #a12f2f
red · #bc4945
darkGreen · #008c11is accents.a20
green · #009044is accents.a10
darkYellow · #835300
yellow · #9c6a00
darkBlue · #2a54cafrom accents.a30
blue · #3f6de5is accents.a30
darkMagenta · #bd0053from accents.a40
magenta · #da1d69is accents.a40
darkCyan · #007078
cyan · #008890
lightGray · #757b81is primaries.m40
white · #a8afb5is primaries.l10
Accents
a10 · #009044a20 · #008c11a30 · #3f6de5a40 · #da1d69
Feedback
negative · #c23870success · #008c11info · #00848bwarning · #d07600
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
- #e2e9f0 · oklch(0.93 0.012 248)
- from
- primaries.l30
UI foregrounds
fg.subtle8.5AAA
Secondary text such as line numbers- value
- #43484e · oklch(0.40 0.012 253)
- is
- primaries.m10
fg.accent3.8Large
Links and text that needs to stand out- value
- #009044 · oklch(0.57 0.154 151)
- is
- accents.a10
fg.border2.1Line
Idle borders, separators and guide lines- value
- #a6aaae · oklch(0.74 0.007 248)
- from
- primaries.m40 + primaries.l30
Syntax
Comments are dim on purpose, so they sit lower than the rest of the code.
variable12.6AAA
property6.5AA
string4.0Large
constant12.6AAA
module15.1AAA
boolean4.0Large
number4.0Large
type3.8Large
attribute3.8Large
func15.1AAA
constructor15.1AAA
keyword4.3Large
operator15.1AAA
punctuation12.6AAA
comment3.9Large
tag3.8Large
Terminal
Gray is the terminal's dim text, the counterpart of comments.
black17.2AAA
gray8.5AAA
darkRed6.5AA
red4.6AA
darkYellow6.0AA
yellow4.3Large
darkGreen4.0Large
green3.8Large
darkCyan5.4AA
cyan3.9Large
darkBlue6.0AA
blue4.3Large
darkMagenta5.9AA
magenta4.4Large
lightGray3.9Large
white2.0Low
··
Files
Generated for 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 |