JPN · dark
Koyo Dark
- 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
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.active
Active elements such as the cursor line or the active tab- value
- #3a2d3f · oklch(0.32 0.036 316)
- is
- primaries.d30
UI foregrounds
fg.accent7.3AAA
Links and text that needs to stand out- value
- #e49e22 · oklch(0.75 0.150 75)
- is
- accents.a10
fg.warn6.3AA
Warning text- value
- #e49e22 · oklch(0.75 0.150 75)
- is
- feedback.warning = palette.yellow = accents.a10
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.
variable10.5AAA
property7.3AAA
string7.8AAA
constant7.2AAA
module7.2AAA
boolean5.3AA
number5.3AA
type7.8AAA
attribute7.1AAA
func7.3AAA
constructor7.3AAA
keyword7.2AAA
operator7.2AAA
punctuation6.2AA
comment3.4Large
tag7.3AAA
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed4.8AA
red7.0AAA
darkGreen5.3AA
green7.8AAA
darkYellow7.1AAA
yellow7.3AAA
darkBlue7.2AAA
blue7.3AAA
darkMagenta5.0AA
magenta7.2AAA
darkCyan5.4AA
cyan7.8AAA
black1.6Low
gray3.4Large
lightGray6.2AA
white8.9AAA
··
Files
Generated for Koyo Dark| 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 |