JPN · dark

Sanshoku Dark

Definition ↗
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
1:zsh2:nvim3:lazygit

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.default
Default background
value
#1d364f · oklch(0.33 0.055 250)
is
primaries.d20
bg.panel
Sidebars and the status line
value
#162f48 · oklch(0.30 0.055 250)
is
primaries.d10
bg.float
Floating windows and popups
value
#162f48 · oklch(0.30 0.055 250)
is
primaries.d10
bg.active
Active elements such as the cursor line or the active tab
value
#27405a · oklch(0.36 0.055 250)
is
primaries.d30
bg.disabled
Disabled interactive elements
value
#4f759c · oklch(0.55 0.075 250)
is
primaries.m10
bg.hover
Hover state of interactive elements
value
#27405a · oklch(0.36 0.055 250)
is
primaries.d30
bg.selection
Visual selection
value
#2a435d · oklch(0.37 0.055 250)
is
primaries.d40
bg.search
Search matches
value
#2a435d · oklch(0.37 0.055 250)
is
primaries.d40
bg.contrast
Inverted background
value
#e2ebf3 · oklch(0.94 0.015 245)
is
primaries.l30
bg.negative
Errors
value
#353d52 · oklch(0.36 0.038 268)
from
primaries.d20 + feedback.negative
bg.warn
Warnings
value
#324252 · oklch(0.37 0.035 249)
from
primaries.d20 + feedback.warning
bg.info
Information
value
#25415f · oklch(0.37 0.062 251)
from
primaries.d20 + feedback.info
bg.hint
Hints
value
#303f4f · oklch(0.36 0.034 250)
from
primaries.d20 + palette.darkYellow
bg.positive
Success
value
#244355 · oklch(0.37 0.048 236)
from
primaries.d20 + feedback.success
bg.add
Added lines
value
#304f37 · oklch(0.40 0.055 150)
from
primaries.d20 + feedback.success
bg.delete
Deleted lines
value
#603b35 · oklch(0.39 0.054 30)
from
primaries.d20 + feedback.negative
bg.modify
Modified lines
value
#324863 · oklch(0.40 0.054 254)
from
primaries.d20 + feedback.info

UI foregrounds

fg.default10.3AAA
Default text
value
#e2ebf3 · oklch(0.94 0.015 245)
is
primaries.l30
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.disabled3.9Large
Disabled text
value
#6c93bc · oklch(0.65 0.075 250)
is
primaries.m30
fg.contrast10.3AAA
Text on inverted backgrounds
value
#1d364f · oklch(0.33 0.055 250)
is
primaries.d20
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.hint3.9Large
Hint text
value
#d78c00 · oklch(0.70 0.150 72)
is
palette.darkYellow
fg.positive4.9AA
Success text
value
#6fc483 · oklch(0.75 0.125 150)
is
feedback.success = palette.green
fg.add4.3Large
Added marks
value
#6fc483 · oklch(0.75 0.125 150)
is
feedback.success = palette.green
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.

variable#d2dae3is primaries.l208.8AAA
property#76b1fcis palette.blue = accents.a205.6AA
string#6fc483is palette.green5.8AA
constant#5891dais palette.darkBlue3.8Large
module#5891dais palette.darkBlue3.8Large
boolean#50a465is palette.darkGreen4.0Large
number#50a465is palette.darkGreen4.0Large
type#53c1c7is palette.cyan5.8AA
attribute#d78c00is palette.darkYellow4.5AA
func#f8ac3dis palette.yellow = accents.a106.5AA
constructor#f8ac3dis palette.yellow = accents.a106.5AA
keyword#f86c59is accents.a304.3Large
operator#5891dais palette.darkBlue3.8Large
punctuation#8ab2dcis palette.lightGray = primaries.m405.6AA
comment#5d84acis palette.gray = primaries.m203.2Large
tag#f8ac3dis palette.yellow = accents.a106.5AA

Terminal

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

darkRed#ea5f4d3.7Large
red#f86c59is accents.a304.3Large
darkGreen#50a4654.0Large
green#6fc4835.8AA
darkYellow#d78c004.5AA
yellow#f8ac3dis accents.a106.5AA
darkBlue#5891da3.8Large
blue#76b1fcis accents.a205.6AA
darkMagenta#d4679f3.7Large
magenta#e274ab4.3Large
darkCyan#2ba1a74.0Large
cyan#53c1c75.8AA
black#2a435dis primaries.d401.2Low
gray#5d84acis primaries.m203.2Large
lightGray#8ab2dcis primaries.m405.6AA
white#c2cad3is primaries.l107.5AAA