JPN · dark
Sanshoku Dark
- Collection
- JPN
- 7 themes
- Appearance
- dark
- also in light
- Status
- release
- in the catalog
- Contrast
- 100%
- 11 AAA · 24 AA · 22 large · 0 low
- Accent
- #f8ac3d
- a10
black-atom-jpn-sanshoku-dark · black-atom.industries/black-atom/themes/jpn-sanshoku-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-sanshoku-dark
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Sanshoku 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 · #162f48d20 · #1d364fd30 · #27405ad40 · #2a435dm10 · #4f759cm20 · #5d84acm30 · #6c93bcm40 · #8ab2dcl10 · #c2cad3l20 · #d2dae3l30 · #e2ebf3l40 · #f8fafd
Palette
black · #2a435dis primaries.d40
gray · #5d84acis primaries.m20
darkRed · #ea5f4d
red · #f86c59is accents.a30
darkGreen · #50a465
green · #6fc483
darkYellow · #d78c00
yellow · #f8ac3dis accents.a10
darkBlue · #5891da
blue · #76b1fcis accents.a20
darkMagenta · #d4679f
magenta · #e274ab
darkCyan · #2ba1a7
cyan · #53c1c7
lightGray · #8ab2dcis primaries.m40
white · #c2cad3is primaries.l10
Accents
a10 · #f8ac3da20 · #76b1fca30 · #f86c59
Feedback
negative · #f86c59is palette.red = accents.a30success · #6fc483is palette.greeninfo · #76b1fcis palette.blue = accents.a20warning · #f8ac3dis 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
- #27405a · oklch(0.36 0.055 250)
- is
- primaries.d30
UI foregrounds
fg.subtle5.6AA
Secondary text such as line numbers- value
- #8ab2dc · oklch(0.75 0.075 250)
- is
- primaries.m40
fg.accent6.5AA
Links and text that needs to stand out- value
- #f8ac3d · oklch(0.80 0.150 72)
- is
- accents.a10
fg.negative3.8Large
Error text- value
- #f86c59 · oklch(0.70 0.176 30)
- is
- feedback.negative = palette.red = accents.a30
fg.warn5.4AA
Warning text- value
- #f8ac3d · oklch(0.80 0.150 72)
- is
- feedback.warning = palette.yellow = accents.a10
fg.info4.7AA
Information text- value
- #76b1fc · oklch(0.75 0.125 255)
- is
- feedback.info = palette.blue = accents.a20
fg.delete3.3Large
Deleted marks- value
- #f86c59 · oklch(0.70 0.176 30)
- is
- feedback.negative = palette.red = accents.a30
fg.modify4.2Large
Modified marks- value
- #76b1fc · oklch(0.75 0.125 255)
- is
- feedback.info = palette.blue = accents.a20
fg.border2.6Line
Idle borders, separators and guide lines- value
- #4f759c · oklch(0.55 0.075 250)
- is
- primaries.m10
Syntax
Comments are dim on purpose, so they sit lower than the rest of the code.
variable8.8AAA
property5.6AA
string5.8AA
constant3.8Large
module3.8Large
boolean4.0Large
number4.0Large
type5.8AA
attribute4.5AA
func6.5AA
constructor6.5AA
keyword4.3Large
operator3.8Large
punctuation5.6AA
comment3.2Large
tag6.5AA
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed3.7Large
red4.3Large
darkGreen4.0Large
green5.8AA
darkYellow4.5AA
yellow6.5AA
darkBlue3.8Large
blue5.6AA
darkMagenta3.7Large
magenta4.3Large
darkCyan4.0Large
cyan5.8AA
black1.2Low
gray3.2Large
lightGray5.6AA
white7.5AAA
··
Files
Generated for Sanshoku 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 |