JPN · light

Murasaki Light

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

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.default
Default background
value
#ffdeff · oklch(0.94 0.056 326)
is
primaries.l30
bg.panel
Sidebars and the status line
value
#f4d0f7 · oklch(0.90 0.065 324)
is
primaries.l20
bg.float
Floating windows and popups
value
#f4d0f7 · oklch(0.90 0.065 324)
is
primaries.l20
bg.active
Active elements such as the cursor line or the active tab
value
#f2d1f2 · oklch(0.90 0.057 326)
from
primaries.l30
bg.disabled
Disabled interactive elements
value
#ca86cd · oklch(0.71 0.125 325)
is
primaries.m40
bg.hover
Hover state of interactive elements
value
#f4d0f7 · oklch(0.90 0.065 324)
is
primaries.l20
bg.selection
Visual selection
value
#e0c2e3 · oklch(0.85 0.056 323)
is
primaries.l10
bg.search
Search matches
value
#e0c2e3 · oklch(0.85 0.056 323)
is
primaries.l10
bg.contrast
Inverted background
value
#452a32 · oklch(0.32 0.042 0)
is
primaries.d20
bg.negative
Errors
value
#e8d1ce · oklch(0.88 0.026 27)
from
primaries.l30 + feedback.negative
bg.warn
Warnings
value
#d8dccd · oklch(0.89 0.021 119)
from
primaries.l30 + feedback.warning
bg.info
Information
value
#ccd8de · oklch(0.87 0.015 229)
from
primaries.l30 + feedback.info
bg.hint
Hints
value
#dadccd · oklch(0.89 0.020 113)
from
primaries.l30 + palette.darkYellow
bg.positive
Success
value
#ccd9d2 · oklch(0.87 0.017 163)
from
primaries.l30 + feedback.success
bg.add
Added lines
value
#bee9d1 · oklch(0.90 0.055 161)
from
primaries.l30 + feedback.success
bg.delete
Deleted lines
value
#ffd0cb · oklch(0.90 0.054 25)
from
primaries.l30 + feedback.negative
bg.modify
Modified lines
value
#b7e5fb · oklch(0.90 0.056 229)
from
primaries.l30 + feedback.info

UI foregrounds

fg.default10.5AAA
Default text
value
#452a32 · oklch(0.32 0.042 0)
is
primaries.d20
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.disabled2.2Low
Disabled text
value
#ca86cd · oklch(0.71 0.125 325)
is
primaries.m40
fg.contrast10.5AAA
Text on inverted backgrounds
value
#ffdeff · oklch(0.94 0.056 326)
is
primaries.l30
fg.negative3.7Large
Error text
value
#c03b39 · oklch(0.55 0.170 25)
is
feedback.negative = palette.red
fg.warn2.6Low
Warning text
value
#7c8e00 · oklch(0.61 0.143 118)
is
feedback.warning = palette.yellow
fg.info3.7Large
Information text
value
#007498 · oklch(0.52 0.102 228)
is
feedback.info = palette.blue
fg.hint2.6Low
Hint text
value
#858b16 · oklch(0.61 0.130 113)
is
palette.darkYellow = accents.a20
fg.positive3.6Large
Success text
value
#007c50 · oklch(0.52 0.117 160)
is
feedback.success = palette.green
fg.add3.9Large
Added marks
value
#007c50 · oklch(0.52 0.117 160)
is
feedback.success = palette.green
fg.delete3.9Large
Deleted marks
value
#c03b39 · oklch(0.55 0.170 25)
is
feedback.negative = palette.red
fg.modify4.0Large
Modified marks
value
#007498 · oklch(0.52 0.102 228)
is
feedback.info = palette.blue
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.

variable#007498is palette.blue4.3Large
property#007498is palette.blue4.3Large
string#007c50is palette.green4.3Large
constant#367b95is palette.darkBlue3.9Large
module#367b95is palette.darkBlue3.9Large
boolean#1b855fis palette.darkGreen3.8Large
number#1b855fis palette.darkGreen3.8Large
type#009595is palette.cyan3.0Low
attribute#858b16is palette.darkYellow = accents.a203.0Large
func#7c8e00is palette.yellow3.0Low
constructor#7c8e00is palette.yellow3.0Low
keyword#c56792is palette.magenta3.0Low
operator#367b95is palette.darkBlue3.9Large
punctuation#754070is palette.gray = primaries.m106.3AA
comment#754070is palette.gray = primaries.m106.3AA
tag#7c8e00is palette.yellow3.0Low

Terminal

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

darkRed#c13d334.3Large
red#c03b394.4Large
darkGreen#1b855f3.8Large
green#007c504.3Large
darkYellow#858b16is accents.a203.0Large
yellow#7c8e003.0Low
darkBlue#367b953.9Large
blue#0074984.3Large
darkMagenta#906eb43.4Large
magenta#c567923.0Low
darkCyan#0085853.7Large
cyan#0095953.0Low
black#694c54is primaries.d406.2AA
gray#754070is primaries.m106.3AA
lightGray#ca86cdis primaries.m402.2Low
white#e0c2e3is primaries.l101.3Low