JPN · light
Murasaki Light
- Collection
- JPN
- 7 themes
- Appearance
- light
- also in dark
- Status
- release
- in the catalog
- Contrast
- 74%
- 8 AAA · 3 AA · 31 large · 15 low
- Accent
- #97a941
- a10
black-atom-jpn-murasaki-light · black-atom.industries/black-atom/themes/jpn-murasaki-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-murasaki-light
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Murasaki 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 · #351b23d20 · #452a32d30 · #553941d40 · #694c54m10 · #754070m20 · #874881m30 · #915495m40 · #ca86cdl10 · #e0c2e3l20 · #f4d0f7l30 · #ffdeffl40 · #ffdaff
Palette
black · #694c54is primaries.d40
gray · #754070is primaries.m10
darkRed · #c13d33
red · #c03b39
darkGreen · #1b855f
green · #007c50
darkYellow · #858b16is accents.a20
yellow · #7c8e00
darkBlue · #367b95
blue · #007498
darkMagenta · #906eb4
magenta · #c56792
darkCyan · #008585
cyan · #009595
lightGray · #ca86cdis primaries.m40
white · #e0c2e3is primaries.l10
Accents
a10 · #97a941a20 · #858b16
Feedback
negative · #c03b39is palette.redsuccess · #007c50is palette.greeninfo · #007498is palette.bluewarning · #7c8e00is palette.yellow
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
- #f2d1f2 · oklch(0.90 0.057 326)
- from
- primaries.l30
UI foregrounds
fg.subtle4.4Large
Secondary text such as line numbers- value
- #915495 · oklch(0.54 0.120 325)
- is
- primaries.m30
fg.accent2.1Low
Links and text that needs to stand out- value
- #97a941 · oklch(0.70 0.131 118)
- is
- accents.a10
fg.positive3.6Large
Success text- value
- #007c50 · oklch(0.52 0.117 160)
- is
- feedback.success = palette.green
fg.border2.2Line
Idle borders, separators and guide lines- value
- #ca86cd · oklch(0.71 0.125 325)
- is
- primaries.m40
Syntax
Comments are dim on purpose, so they sit lower than the rest of the code.
variable4.3Large
property4.3Large
string4.3Large
constant3.9Large
module3.9Large
boolean3.8Large
number3.8Large
type3.0Low
attribute3.0Large
func3.0Low
constructor3.0Low
keyword3.0Low
operator3.9Large
punctuation6.3AA
comment6.3AA
tag3.0Low
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed4.3Large
red4.4Large
darkGreen3.8Large
green4.3Large
darkYellow3.0Large
yellow3.0Low
darkBlue3.9Large
blue4.3Large
darkMagenta3.4Large
magenta3.0Low
darkCyan3.7Large
cyan3.0Low
black6.2AA
gray6.3AA
lightGray2.2Low
white1.3Low
··
Files
Generated for Murasaki 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 |