JPN · light
Koyo Light
- Collection
- JPN
- 7 themes
- Appearance
- light
- also in dark
- Status
- release
- in the catalog
- Contrast
- 82%
- 8 AAA · 13 AA · 26 large · 10 low
- Accent
- #ed9a00
- a10
black-atom-jpn-koyo-light · black-atom.industries/black-atom/themes/jpn-koyo-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 jpn-koyo-light
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Koyo 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 · #29212ad20 · #3a2e3bd30 · #4e3b4fd40 · #634c64m10 · #725a73m20 · #907691m30 · #9b8568m40 · #d1ba9bl10 · #f2dabal20 · #f8e7d0l30 · #fef2e1l40 · #fff9f1
Palette
black · #634c64is primaries.d40
gray · #725a73is primaries.m10
darkRed · #b7445d
red · #dc094a
darkGreen · #05893e
green · #00812b
darkYellow · #ed6100is accents.a20
yellow · #d27500
darkBlue · #d1649c
blue · #8755cd
darkMagenta · #e46900
magenta · #ed6100
darkCyan · #008c75
cyan · #00a085
lightGray · #d1ba9bis primaries.m40
white · #f2dabais primaries.l10
Accents
a10 · #ed9a00a20 · #ed6100
Feedback
negative · #dc094ais palette.redsuccess · #00812bis palette.greeninfo · #8755cdis palette.bluewarning · #d27500is 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
- #f1e5d4 · oklch(0.93 0.026 77)
- from
- primaries.l30
UI foregrounds
fg.subtle3.2Large
Secondary text such as line numbers- value
- #9b8568 · oklch(0.63 0.049 74)
- is
- primaries.m30
fg.accent2.1Low
Links and text that needs to stand out- value
- #ed9a00 · oklch(0.75 0.162 71)
- is
- accents.a10
fg.positive3.8Large
Success text- value
- #00812b · oklch(0.53 0.157 147)
- is
- feedback.success = palette.green
fg.border1.7Line
Idle borders, separators and guide lines- value
- #d1ba9b · oklch(0.80 0.050 75)
- is
- primaries.m40
Syntax
Comments are dim on purpose, so they sit lower than the rest of the code.
variable4.5AA
property4.5AA
string4.6AA
constant3.2Large
module3.2Large
boolean4.1Large
number4.1Large
type3.0Low
attribute3.0Large
func3.0Large
constructor3.0Large
keyword3.0Large
operator3.2Large
punctuation5.5AA
comment5.5AA
tag3.0Large
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed4.8AA
red4.5AA
darkGreen4.1Large
green4.6AA
darkYellow3.0Large
yellow3.0Large
darkBlue3.2Large
blue4.5AA
darkMagenta3.0Large
magenta3.0Large
darkCyan3.8Large
cyan3.0Low
black6.9AA
gray5.5AA
lightGray1.7Low
white1.2Low
··
Files
Generated for Koyo 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 |