JPN · light

Koyo Light

Definition ↗
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
1:zsh2:nvim3:lazygit

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.default
Default background
value
#fef2e1 · oklch(0.97 0.026 77)
is
primaries.l30
bg.panel
Sidebars and the status line
value
#f8e7d0 · oklch(0.94 0.036 76)
is
primaries.l20
bg.float
Floating windows and popups
value
#f8e7d0 · oklch(0.94 0.036 76)
is
primaries.l20
bg.active
Active elements such as the cursor line or the active tab
value
#f1e5d4 · oklch(0.93 0.026 77)
from
primaries.l30
bg.disabled
Disabled interactive elements
value
#d1ba9b · oklch(0.80 0.050 75)
is
primaries.m40
bg.hover
Hover state of interactive elements
value
#f8e7d0 · oklch(0.94 0.036 76)
is
primaries.l20
bg.selection
Visual selection
value
#f2daba · oklch(0.90 0.050 75)
is
primaries.l10
bg.search
Search matches
value
#f2daba · oklch(0.90 0.050 75)
is
primaries.l10
bg.contrast
Inverted background
value
#3a2e3b · oklch(0.32 0.028 324)
is
primaries.d20
bg.negative
Errors
value
#f6d8d9 · oklch(0.91 0.033 15)
from
primaries.l30 + feedback.negative
bg.warn
Warnings
value
#f1e1d6 · oklch(0.92 0.023 57)
from
primaries.l30 + feedback.warning
bg.info
Information
value
#e2ddf0 · oklch(0.91 0.026 298)
from
primaries.l30 + feedback.info
bg.hint
Hints
value
#f7e0d6 · oklch(0.92 0.029 45)
from
primaries.l30 + palette.darkYellow
bg.positive
Success
value
#d5e3d5 · oklch(0.90 0.024 145)
from
primaries.l30 + feedback.success
bg.add
Added lines
value
#d8edd9 · oklch(0.93 0.035 147)
from
primaries.l30 + feedback.success
bg.delete
Deleted lines
value
#fddedf · oklch(0.93 0.034 16)
from
primaries.l30 + feedback.negative
bg.modify
Modified lines
value
#eae2fb · oklch(0.93 0.035 300)
from
primaries.l30 + feedback.info

UI foregrounds

fg.default11.6AAA
Default text
value
#3a2e3b · oklch(0.32 0.028 324)
is
primaries.d20
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.disabled1.7Low
Disabled text
value
#d1ba9b · oklch(0.80 0.050 75)
is
primaries.m40
fg.contrast11.6AAA
Text on inverted backgrounds
value
#fef2e1 · oklch(0.97 0.026 77)
is
primaries.l30
fg.negative3.8Large
Error text
value
#dc094a · oklch(0.57 0.225 15)
is
feedback.negative = palette.red
fg.warn2.6Low
Warning text
value
#d27500 · oklch(0.65 0.153 60)
is
feedback.warning = palette.yellow
fg.info3.8Large
Information text
value
#8755cd · oklch(0.56 0.179 300)
is
feedback.info = palette.blue
fg.hint2.6Low
Hint text
value
#ed6100 · oklch(0.66 0.191 44)
is
palette.darkYellow = accents.a20
fg.positive3.8Large
Success text
value
#00812b · oklch(0.53 0.157 147)
is
feedback.success = palette.green
fg.add4.1Large
Added marks
value
#00812b · oklch(0.53 0.157 147)
is
feedback.success = palette.green
fg.delete4.0Large
Deleted marks
value
#dc094a · oklch(0.57 0.225 15)
is
feedback.negative = palette.red
fg.modify4.0Large
Modified marks
value
#8755cd · oklch(0.56 0.179 300)
is
feedback.info = palette.blue
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.

variable#8755cdis palette.blue4.5AA
property#8755cdis palette.blue4.5AA
string#00812bis palette.green4.6AA
constant#d1649cis palette.darkBlue3.2Large
module#d1649cis palette.darkBlue3.2Large
boolean#05893eis palette.darkGreen4.1Large
number#05893eis palette.darkGreen4.1Large
type#00a085is palette.cyan3.0Low
attribute#ed6100is palette.darkYellow = accents.a203.0Large
func#d27500is palette.yellow3.0Large
constructor#d27500is palette.yellow3.0Large
keyword#ed6100is palette.magenta3.0Large
operator#d1649cis palette.darkBlue3.2Large
punctuation#725a73is palette.gray = primaries.m105.5AA
comment#725a73is palette.gray = primaries.m105.5AA
tag#d27500is palette.yellow3.0Large

Terminal

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

darkRed#b7445d4.8AA
red#dc094a4.5AA
darkGreen#05893e4.1Large
green#00812b4.6AA
darkYellow#ed6100is accents.a203.0Large
yellow#d275003.0Large
darkBlue#d1649c3.2Large
blue#8755cd4.5AA
darkMagenta#e469003.0Large
magenta#ed61003.0Large
darkCyan#008c753.8Large
cyan#00a0853.0Low
black#634c64is primaries.d406.9AA
gray#725a73is primaries.m105.5AA
lightGray#d1ba9bis primaries.m401.7Low
white#f2dabais primaries.l101.2Low