JPN · dark
Tsuki Dark
- 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
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.active
Active elements such as the cursor line or the active tab- value
- #282828 · oklch(0.28 0.000 0)
- is
- primaries.d30
UI foregrounds
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.warn8.1AAA
Warning text- value
- #eab899 · oklch(0.82 0.072 53)
- is
- feedback.warning = palette.yellow = accents.a10
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.
variable10.5AAA
property7.8AAA
string7.8AAA
constant6.0AA
module6.0AA
boolean6.0AA
number6.0AA
type10.4AAA
attribute8.4AAA
func9.6AAA
constructor9.6AAA
keyword7.1AAA
operator6.0AA
punctuation6.4AA
comment3.2Large
tag9.6AAA
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed6.3AA
red7.8AAA
darkGreen6.0AA
green7.8AAA
darkYellow8.4AAA
yellow9.6AAA
darkBlue6.0AA
blue7.8AAA
darkMagenta5.4AA
magenta7.1AAA
darkCyan7.8AAA
cyan10.4AAA
black1.4Low
gray3.2Large
lightGray6.4AA
white8.1AAA
··
Files
Generated for Tsuki 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 |