JPN · light

Sanshoku Light

Definition ↗
Collection
JPN
7 themes
Appearance
light
also in dark
Status
release
in the catalog
Contrast
93%
9 AAA · 21 AA · 23 large · 4 low
Accent
#c47600
a10

black-atom-jpn-sanshoku-light · black-atom.industries/black-atom/themes/jpn-sanshoku-light

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-light
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Sanshoku Light
❯ 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 · #0f2336d20 · #192f46d30 · #334a62d40 · #44576bm10 · #52657am20 · #718295m30 · #768595m40 · #acb9c7l10 · #d4dfebl20 · #e1e9f2l30 · #eaf1f8l40 · #f3f7fc

Palette

black · #44576bis primaries.d40
gray · #52657ais primaries.m10
darkRed · #940500
red · #cb3425is accents.a30
darkGreen · #09672e
green · #1d7d3e
darkYellow · #ba5e00
yellow · #c47600is accents.a10
darkBlue · #1f5587
blue · #2d6ebdis accents.a20
darkMagenta · #9e366f
magenta · #cf639a
darkCyan · #00747a
cyan · #19969c
lightGray · #acb9c7is primaries.m40
white · #d4dfebis primaries.l10

Accents

a10 · #c47600a20 · #2d6ebda30 · #cb3425

Feedback

negative · #cb3425is palette.red = accents.a30success · #1d7d3eis palette.greeninfo · #2d6ebdis palette.blue = accents.a20warning · #c47600is 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
#eaf1f8 · oklch(0.95 0.012 248)
is
primaries.l30
bg.panel
Sidebars and the status line
value
#e1e9f2 · oklch(0.93 0.015 251)
is
primaries.l20
bg.float
Floating windows and popups
value
#e1e9f2 · oklch(0.93 0.015 251)
is
primaries.l20
bg.active
Active elements such as the cursor line or the active tab
value
#dde4eb · oklch(0.92 0.012 248)
from
primaries.l30
bg.disabled
Disabled interactive elements
value
#acb9c7 · oklch(0.78 0.025 250)
is
primaries.m40
bg.hover
Hover state of interactive elements
value
#e1e9f2 · oklch(0.93 0.015 251)
is
primaries.l20
bg.selection
Visual selection
value
#d4dfeb · oklch(0.90 0.020 250)
is
primaries.l10
bg.search
Search matches
value
#d4dfeb · oklch(0.90 0.020 250)
is
primaries.l10
bg.contrast
Inverted background
value
#192f46 · oklch(0.30 0.051 251)
is
primaries.d20
bg.negative
Errors
value
#efd6d2 · oklch(0.90 0.028 29)
from
primaries.l30 + feedback.negative
bg.warn
Warnings
value
#ebded2 · oklch(0.91 0.022 65)
from
primaries.l30 + feedback.warning
bg.info
Information
value
#d3ddea · oklch(0.89 0.021 255)
from
primaries.l30 + feedback.info
bg.hint
Hints
value
#eadad1 · oklch(0.90 0.022 52)
from
primaries.l30 + palette.darkYellow
bg.positive
Success
value
#d2dfd4 · oklch(0.89 0.020 150)
from
primaries.l30 + feedback.success
bg.add
Added lines
value
#d3ead7 · oklch(0.91 0.035 151)
from
primaries.l30 + feedback.success
bg.delete
Deleted lines
value
#fadbd5 · oklch(0.92 0.036 31)
from
primaries.l30 + feedback.negative
bg.modify
Modified lines
value
#d4e5fb · oklch(0.92 0.035 255)
from
primaries.l30 + feedback.info

UI foregrounds

fg.default12.0AAA
Default text
value
#192f46 · oklch(0.30 0.051 251)
is
primaries.d20
fg.subtle3.3Large
Secondary text such as line numbers
value
#768595 · oklch(0.61 0.030 250)
is
primaries.m30
fg.accent3.1Large
Links and text that needs to stand out
value
#c47600 · oklch(0.64 0.142 66)
is
accents.a10
fg.disabled1.8Low
Disabled text
value
#acb9c7 · oklch(0.78 0.025 250)
is
primaries.m40
fg.contrast12.0AAA
Text on inverted backgrounds
value
#eaf1f8 · oklch(0.95 0.012 248)
is
primaries.l30
fg.negative3.8Large
Error text
value
#cb3425 · oklch(0.56 0.190 30)
is
feedback.negative = palette.red = accents.a30
fg.warn2.7Low
Warning text
value
#c47600 · oklch(0.64 0.142 66)
is
feedback.warning = palette.yellow = accents.a10
fg.info3.8Large
Information text
value
#2d6ebd · oklch(0.54 0.140 255)
is
feedback.info = palette.blue = accents.a20
fg.hint3.3Large
Hint text
value
#ba5e00 · oklch(0.58 0.145 54)
is
palette.darkYellow
fg.positive3.8Large
Success text
value
#1d7d3e · oklch(0.52 0.130 150)
is
feedback.success = palette.green
fg.add4.1Large
Added marks
value
#1d7d3e · oklch(0.52 0.130 150)
is
feedback.success = palette.green
fg.delete4.0Large
Deleted marks
value
#cb3425 · oklch(0.56 0.190 30)
is
feedback.negative = palette.red = accents.a30
fg.modify4.0Large
Modified marks
value
#2d6ebd · oklch(0.54 0.140 255)
is
feedback.info = palette.blue = accents.a20
fg.border1.8Line
Idle borders, separators and guide lines
value
#acb9c7 · oklch(0.78 0.025 250)
is
primaries.m40

Syntax

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

variable#2d6ebdis palette.blue = accents.a204.5AA
property#2d6ebdis palette.blue = accents.a204.5AA
string#1d7d3eis palette.green4.5AA
constant#1f5587is palette.darkBlue6.8AA
module#1f5587is palette.darkBlue6.8AA
boolean#09672eis palette.darkGreen6.2AA
number#09672eis palette.darkGreen6.2AA
type#19969cis palette.cyan3.1Large
attribute#ba5e00is palette.darkYellow3.9Large
func#c47600is palette.yellow = accents.a103.1Large
constructor#c47600is palette.yellow = accents.a103.1Large
keyword#cf639ais palette.magenta3.1Large
operator#1f5587is palette.darkBlue6.8AA
punctuation#52657ais palette.gray = primaries.m105.3AA
comment#52657ais palette.gray = primaries.m105.3AA
tag#c47600is palette.yellow = accents.a103.1Large

Terminal

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

darkRed#9405008.1AAA
red#cb3425is accents.a304.5AA
darkGreen#09672e6.2AA
green#1d7d3e4.5AA
darkYellow#ba5e003.9Large
yellow#c47600is accents.a103.1Large
darkBlue#1f55876.8AA
blue#2d6ebdis accents.a204.5AA
darkMagenta#9e366f5.7AA
magenta#cf639a3.1Large
darkCyan#00747a4.9AA
cyan#19969c3.1Large
black#44576bis primaries.d406.5AA
gray#52657ais primaries.m105.3AA
lightGray#acb9c7is primaries.m401.8Low
white#d4dfebis primaries.l101.2Low