JPN · light
Sanshoku Light
- 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
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.active
Active elements such as the cursor line or the active tab- value
- #dde4eb · oklch(0.92 0.012 248)
- from
- primaries.l30
UI foregrounds
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.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.positive3.8Large
Success text- 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.
variable4.5AA
property4.5AA
string4.5AA
constant6.8AA
module6.8AA
boolean6.2AA
number6.2AA
type3.1Large
attribute3.9Large
func3.1Large
constructor3.1Large
keyword3.1Large
operator6.8AA
punctuation5.3AA
comment5.3AA
tag3.1Large
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed8.1AAA
red4.5AA
darkGreen6.2AA
green4.5AA
darkYellow3.9Large
yellow3.1Large
darkBlue6.8AA
blue4.5AA
darkMagenta5.7AA
magenta3.1Large
darkCyan4.9AA
cyan3.1Large
black6.5AA
gray5.3AA
lightGray1.8Low
white1.2Low
··
Files
Generated for Sanshoku Light| 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 |