JPN · dark

Tsuki Dark

Definition ↗
Collection
JPN
7 themes
Appearance
dark
dark only
Status
release
in the catalog
Contrast
100%
37 AAA · 18 AA · 2 large · 0 low
Accent
#eab899
a10

black-atom-jpn-tsuki-dark · black-atom.industries/black-atom/themes/jpn-tsuki-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-tsuki-dark
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Tsuki 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 · #0f0f0fd20 · #1c1c1cd30 · #282828d40 · #373737m10 · #4f4f61m20 · #69697fm30 · #828299m40 · #9d9dafl10 · #b3b3b3l20 · #cbcbcbl30 · #e6e6e6l40 · #ffffff

Palette

black · #373737is primaries.d40
gray · #69697fis primaries.m20
darkRed · #f2759e
red · #f591b2
darkGreen · #71a584
green · #90b99f
darkYellow · #f6a090is accents.a20
yellow · #eab899is accents.a10
darkBlue · #8699c1
blue · #a1b0cf
darkMagenta · #9789c3
magenta · #aca1cf
darkCyan · #76bdac
cyan · #8dd9c5
lightGray · #9d9dafis primaries.m40
white · #b3b3b3is primaries.l10

Accents

a10 · #eab899a20 · #f6a090

Feedback

negative · #f591b2is palette.redsuccess · #90b99fis palette.greeninfo · #a1b0cfis palette.bluewarning · #eab899is 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
#1c1c1c · oklch(0.23 0.000 0)
is
primaries.d20
bg.panel
Sidebars and the status line
value
#0f0f0f · oklch(0.17 0.000 0)
is
primaries.d10
bg.float
Floating windows and popups
value
#0f0f0f · oklch(0.17 0.000 0)
is
primaries.d10
bg.active
Active elements such as the cursor line or the active tab
value
#282828 · oklch(0.28 0.000 0)
is
primaries.d30
bg.disabled
Disabled interactive elements
value
#4f4f61 · oklch(0.43 0.029 285)
is
primaries.m10
bg.hover
Hover state of interactive elements
value
#282828 · oklch(0.28 0.000 0)
is
primaries.d30
bg.selection
Visual selection
value
#373737 · oklch(0.34 0.000 0)
is
primaries.d40
bg.search
Search matches
value
#373737 · oklch(0.34 0.000 0)
is
primaries.d40
bg.contrast
Inverted background
value
#e6e6e6 · oklch(0.92 0.000 0)
is
primaries.l30
bg.negative
Errors
value
#2f2729 · oklch(0.28 0.012 1)
from
primaries.d20 + feedback.negative
bg.warn
Warnings
value
#2d2927 · oklch(0.28 0.007 48)
from
primaries.d20 + feedback.warning
bg.info
Information
value
#27292b · oklch(0.28 0.005 248)
from
primaries.d20 + feedback.info
bg.hint
Hints
value
#2f2826 · oklch(0.28 0.011 36)
from
primaries.d20 + palette.darkYellow
bg.positive
Success
value
#262927 · oklch(0.28 0.006 157)
from
primaries.d20 + feedback.success
bg.add
Added lines
value
#1e3226 · oklch(0.30 0.034 157)
from
primaries.d20 + feedback.success
bg.delete
Deleted lines
value
#3c262c · oklch(0.30 0.035 2)
from
primaries.d20 + feedback.negative
bg.modify
Modified lines
value
#242d3f · oklch(0.30 0.035 264)
from
primaries.d20 + feedback.info

UI foregrounds

fg.default13.7AAA
Default text
value
#e6e6e6 · oklch(0.92 0.000 0)
is
primaries.l30
fg.subtle6.4AA
Secondary text such as line numbers
value
#9d9daf · oklch(0.70 0.026 286)
is
primaries.m40
fg.accent9.6AAA
Links and text that needs to stand out
value
#eab899 · oklch(0.82 0.072 53)
is
accents.a10
fg.disabled4.5AA
Disabled text
value
#828299 · oklch(0.61 0.035 285)
is
primaries.m30
fg.contrast13.7AAA
Text on inverted backgrounds
value
#1c1c1c · oklch(0.23 0.000 0)
is
primaries.d20
fg.negative6.6AA
Error text
value
#f591b2 · oklch(0.77 0.126 359)
is
feedback.negative = palette.red
fg.warn8.1AAA
Warning text
value
#eab899 · oklch(0.82 0.072 53)
is
feedback.warning = palette.yellow = accents.a10
fg.info6.7AA
Information text
value
#a1b0cf · oklch(0.76 0.048 265)
is
feedback.info = palette.blue
fg.hint7.1AAA
Hint text
value
#f6a090 · oklch(0.79 0.106 31)
is
palette.darkYellow = accents.a20
fg.positive6.7AA
Success text
value
#90b99f · oklch(0.75 0.058 157)
is
feedback.success = palette.green
fg.add6.3AA
Added marks
value
#90b99f · oklch(0.75 0.058 157)
is
feedback.success = palette.green
fg.delete6.4AA
Deleted marks
value
#f591b2 · oklch(0.77 0.126 359)
is
feedback.negative = palette.red
fg.modify6.3AA
Modified marks
value
#a1b0cf · oklch(0.76 0.048 265)
is
feedback.info = palette.blue
fg.border2.1Line
Idle borders, separators and guide lines
value
#4f4f61 · oklch(0.43 0.029 285)
is
primaries.m10

Syntax

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

variable#cbcbcbis primaries.l2010.5AAA
property#a1b0cfis palette.blue7.8AAA
string#90b99fis palette.green7.8AAA
constant#8699c1is palette.darkBlue6.0AA
module#8699c1is palette.darkBlue6.0AA
boolean#71a584is palette.darkGreen6.0AA
number#71a584is palette.darkGreen6.0AA
type#8dd9c5is palette.cyan10.4AAA
attribute#f6a090is palette.darkYellow = accents.a208.4AAA
func#eab899is palette.yellow = accents.a109.6AAA
constructor#eab899is palette.yellow = accents.a109.6AAA
keyword#aca1cfis palette.magenta7.1AAA
operator#8699c1is palette.darkBlue6.0AA
punctuation#9d9dafis palette.lightGray = primaries.m406.4AA
comment#69697fis palette.gray = primaries.m203.2Large
tag#eab899is palette.yellow = accents.a109.6AAA

Terminal

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

darkRed#f2759e6.3AA
red#f591b27.8AAA
darkGreen#71a5846.0AA
green#90b99f7.8AAA
darkYellow#f6a090is accents.a208.4AAA
yellow#eab899is accents.a109.6AAA
darkBlue#8699c16.0AA
blue#a1b0cf7.8AAA
darkMagenta#9789c35.4AA
magenta#aca1cf7.1AAA
darkCyan#76bdac7.8AAA
cyan#8dd9c510.4AAA
black#373737is primaries.d401.4Low
gray#69697fis primaries.m203.2Large
lightGray#9d9dafis primaries.m406.4AA
white#b3b3b3is primaries.l108.1AAA