JPN · dark

Koyo Dark

Definition ↗
Collection
JPN
7 themes
Appearance
dark
also in light
Status
release
in the catalog
Contrast
100%
34 AAA · 20 AA · 3 large · 0 low
Accent
#e49e22
a10

black-atom-jpn-koyo-dark · black-atom.industries/black-atom/themes/jpn-koyo-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 jpn-koyo-dark
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Koyo 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 · #1c1121d20 · #261a2ad30 · #3a2d3fd40 · #4a3d50m10 · #59506am20 · #756c89m30 · #927c5fm40 · #b19b7cl10 · #d1ba9bl20 · #e1caaal30 · #ead2b2l40 · #fae2c2

Palette

black · #4a3d50is primaries.d40
gray · #756c89is primaries.m20
darkRed · #da637a
red · #fe838f
darkGreen · #60a06e
green · #7fc08c
darkYellow · #f88f4fis accents.a20
yellow · #e49e22is accents.a10
darkBlue · #d39bb5
blue · #b5a4d7
darkMagenta · #c07d55
magenta · #e19b73
darkCyan · #38a391
cyan · #5cc3b0
lightGray · #b19b7cis primaries.m40
white · #d1ba9bis primaries.l10

Accents

a10 · #e49e22a20 · #f88f4f

Feedback

negative · #fe838fis palette.redsuccess · #7fc08cis palette.greeninfo · #b5a4d7is palette.bluewarning · #e49e22is 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
#261a2a · oklch(0.24 0.034 318)
is
primaries.d20
bg.panel
Sidebars and the status line
value
#1c1121 · oklch(0.20 0.035 315)
is
primaries.d10
bg.float
Floating windows and popups
value
#1c1121 · oklch(0.20 0.035 315)
is
primaries.d10
bg.active
Active elements such as the cursor line or the active tab
value
#3a2d3f · oklch(0.32 0.036 316)
is
primaries.d30
bg.disabled
Disabled interactive elements
value
#59506a · oklch(0.45 0.043 301)
is
primaries.m10
bg.hover
Hover state of interactive elements
value
#3a2d3f · oklch(0.32 0.036 316)
is
primaries.d30
bg.selection
Visual selection
value
#4a3d50 · oklch(0.38 0.036 315)
is
primaries.d40
bg.search
Search matches
value
#4a3d50 · oklch(0.38 0.036 315)
is
primaries.d40
bg.contrast
Inverted background
value
#ead2b2 · oklch(0.88 0.050 75)
is
primaries.l30
bg.negative
Errors
value
#382434 · oklch(0.29 0.040 334)
from
primaries.d20 + feedback.negative
bg.warn
Warnings
value
#36262e · oklch(0.29 0.027 347)
from
primaries.d20 + feedback.warning
bg.info
Information
value
#332639 · oklch(0.29 0.038 315)
from
primaries.d20 + feedback.info
bg.hint
Hints
value
#382530 · oklch(0.29 0.034 344)
from
primaries.d20 + palette.darkYellow
bg.positive
Success
value
#2f2933 · oklch(0.29 0.020 312)
from
primaries.d20 + feedback.success
bg.add
Added lines
value
#233527 · oklch(0.31 0.034 151)
from
primaries.d20 + feedback.success
bg.delete
Deleted lines
value
#40292a · oklch(0.31 0.035 16)
from
primaries.d20 + feedback.negative
bg.modify
Modified lines
value
#332c40 · oklch(0.31 0.036 300)
from
primaries.d20 + feedback.info

UI foregrounds

fg.default11.4AAA
Default text
value
#ead2b2 · oklch(0.88 0.050 75)
is
primaries.l30
fg.subtle6.2AA
Secondary text such as line numbers
value
#b19b7c · oklch(0.70 0.050 76)
is
primaries.m40
fg.accent7.3AAA
Links and text that needs to stand out
value
#e49e22 · oklch(0.75 0.150 75)
is
accents.a10
fg.disabled4.2Large
Disabled text
value
#927c5f · oklch(0.60 0.050 74)
is
primaries.m30
fg.contrast11.4AAA
Text on inverted backgrounds
value
#261a2a · oklch(0.24 0.034 318)
is
primaries.d20
fg.negative6.0AA
Error text
value
#fe838f · oklch(0.75 0.150 15)
is
feedback.negative = palette.red
fg.warn6.3AA
Warning text
value
#e49e22 · oklch(0.75 0.150 75)
is
feedback.warning = palette.yellow = accents.a10
fg.info6.3AA
Information text
value
#b5a4d7 · oklch(0.75 0.074 300)
is
feedback.info = palette.blue
fg.hint6.1AA
Hint text
value
#f88f4f · oklch(0.75 0.150 50)
is
palette.darkYellow = accents.a20
fg.positive6.6AA
Success text
value
#7fc08c · oklch(0.75 0.100 150)
is
feedback.success = palette.green
fg.add6.1AA
Added marks
value
#7fc08c · oklch(0.75 0.100 150)
is
feedback.success = palette.green
fg.delete5.6AA
Deleted marks
value
#fe838f · oklch(0.75 0.150 15)
is
feedback.negative = palette.red
fg.modify5.9AA
Modified marks
value
#b5a4d7 · oklch(0.75 0.074 300)
is
feedback.info = palette.blue
fg.border2.2Line
Idle borders, separators and guide lines
value
#59506a · oklch(0.45 0.043 301)
is
primaries.m10

Syntax

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

variable#e1caaais primaries.l2010.5AAA
property#b5a4d7is palette.blue7.3AAA
string#7fc08cis palette.green7.8AAA
constant#d39bb5is palette.darkBlue7.2AAA
module#d39bb5is palette.darkBlue7.2AAA
boolean#60a06eis palette.darkGreen5.3AA
number#60a06eis palette.darkGreen5.3AA
type#5cc3b0is palette.cyan7.8AAA
attribute#f88f4fis palette.darkYellow = accents.a207.1AAA
func#e49e22is palette.yellow = accents.a107.3AAA
constructor#e49e22is palette.yellow = accents.a107.3AAA
keyword#e19b73is palette.magenta7.2AAA
operator#d39bb5is palette.darkBlue7.2AAA
punctuation#b19b7cis palette.lightGray = primaries.m406.2AA
comment#756c89is palette.gray = primaries.m203.4Large
tag#e49e22is palette.yellow = accents.a107.3AAA

Terminal

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

darkRed#da637a4.8AA
red#fe838f7.0AAA
darkGreen#60a06e5.3AA
green#7fc08c7.8AAA
darkYellow#f88f4fis accents.a207.1AAA
yellow#e49e22is accents.a107.3AAA
darkBlue#d39bb57.2AAA
blue#b5a4d77.3AAA
darkMagenta#c07d555.0AA
magenta#e19b737.2AAA
darkCyan#38a3915.4AA
cyan#5cc3b07.8AAA
black#4a3d50is primaries.d401.6Low
gray#756c89is primaries.m203.4Large
lightGray#b19b7cis primaries.m406.2AA
white#d1ba9bis primaries.l108.9AAA