JPN · dark

Murasaki Dark

Definition ↗
Collection
JPN
7 themes
Appearance
dark
also in light
Status
release
in the catalog
Contrast
100%
27 AAA · 27 AA · 3 large · 0 low
Accent
#d0e08d
a10

black-atom-jpn-murasaki-dark · black-atom.industries/black-atom/themes/jpn-murasaki-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-murasaki-dark
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Murasaki 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 · #250d15d20 · #351b23d30 · #452a32d40 · #5b3e47m10 · #7b354bm20 · #965e90m30 · #a571a7m40 · #b883bal10 · #b796b8l20 · #c9b1cbl30 · #d4bfd6l40 · #e8dbe9

Palette

black · #5b3e47is primaries.d40
gray · #965e90is primaries.m20
darkRed · #ed7668
red · #ff857b
darkGreen · #72ad91
green · #80bda2
darkYellow · #bbc183is accents.a20
yellow · #d0e08dis accents.a10
darkBlue · #7ea5b7
blue · #8cb6c5
darkMagenta · #b9a2d4
magenta · #d49bb2
darkCyan · #62adac
cyan · #72bdbc
lightGray · #b883bais primaries.m40
white · #b796b8is primaries.l10

Accents

a10 · #d0e08da20 · #bbc183

Feedback

negative · #ff857bis palette.redsuccess · #80bda2is palette.greeninfo · #8cb6c5is palette.bluewarning · #d0e08dis 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
#351b23 · oklch(0.26 0.043 1)
is
primaries.d20
bg.panel
Sidebars and the status line
value
#250d15 · oklch(0.20 0.042 0)
is
primaries.d10
bg.float
Floating windows and popups
value
#250d15 · oklch(0.20 0.042 0)
is
primaries.d10
bg.active
Active elements such as the cursor line or the active tab
value
#452a32 · oklch(0.32 0.042 0)
is
primaries.d30
bg.disabled
Disabled interactive elements
value
#7b354b · oklch(0.43 0.100 2)
is
primaries.m10
bg.hover
Hover state of interactive elements
value
#452a32 · oklch(0.32 0.042 0)
is
primaries.d30
bg.selection
Visual selection
value
#5b3e47 · oklch(0.40 0.043 359)
is
primaries.d40
bg.search
Search matches
value
#5b3e47 · oklch(0.40 0.043 359)
is
primaries.d40
bg.contrast
Inverted background
value
#d4bfd6 · oklch(0.83 0.039 323)
is
primaries.l30
bg.negative
Errors
value
#47242b · oklch(0.31 0.054 8)
from
primaries.d20 + feedback.negative
bg.warn
Warnings
value
#442c2d · oklch(0.32 0.036 16)
from
primaries.d20 + feedback.warning
bg.info
Information
value
#3f2931 · oklch(0.31 0.035 356)
from
primaries.d20 + feedback.info
bg.hint
Hints
value
#422a2c · oklch(0.31 0.036 14)
from
primaries.d20 + palette.darkYellow
bg.positive
Success
value
#3e2a2e · oklch(0.31 0.030 6)
from
primaries.d20 + feedback.success
bg.add
Added lines
value
#1f3d30 · oklch(0.33 0.043 164)
from
primaries.d20 + feedback.success
bg.delete
Deleted lines
value
#492d2a · oklch(0.33 0.042 26)
from
primaries.d20 + feedback.negative
bg.modify
Modified lines
value
#1a3b45 · oklch(0.33 0.042 220)
from
primaries.d20 + feedback.info

UI foregrounds

fg.default9.2AAA
Default text
value
#d4bfd6 · oklch(0.83 0.039 323)
is
primaries.l30
fg.subtle5.2AA
Secondary text such as line numbers
value
#b883ba · oklch(0.68 0.099 325)
is
primaries.m40
fg.accent11.1AAA
Links and text that needs to stand out
value
#d0e08d · oklch(0.88 0.108 118)
is
accents.a10
fg.disabled4.1Large
Disabled text
value
#a571a7 · oklch(0.62 0.099 325)
is
primaries.m30
fg.contrast9.2AAA
Text on inverted backgrounds
value
#351b23 · oklch(0.26 0.043 1)
is
primaries.d20
fg.negative5.7AA
Error text
value
#ff857b · oklch(0.75 0.150 26)
is
feedback.negative = palette.red
fg.warn9.0AAA
Warning text
value
#d0e08d · oklch(0.88 0.108 118)
is
feedback.warning = palette.yellow = accents.a10
fg.info6.1AA
Information text
value
#8cb6c5 · oklch(0.75 0.050 222)
is
feedback.info = palette.blue
fg.hint6.9AA
Hint text
value
#bbc183 · oklch(0.79 0.082 113)
is
palette.darkYellow = accents.a20
fg.positive6.2AA
Success text
value
#80bda2 · oklch(0.75 0.074 165)
is
feedback.success = palette.green
fg.add5.5AA
Added marks
value
#80bda2 · oklch(0.75 0.074 165)
is
feedback.success = palette.green
fg.delete5.3AA
Deleted marks
value
#ff857b · oklch(0.75 0.150 26)
is
feedback.negative = palette.red
fg.modify5.5AA
Modified marks
value
#8cb6c5 · oklch(0.75 0.050 222)
is
feedback.info = palette.blue
fg.border1.8Line
Idle borders, separators and guide lines
value
#7b354b · oklch(0.43 0.100 2)
is
primaries.m10

Syntax

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

variable#c9b1cbis primaries.l208.0AAA
property#8cb6c5is palette.blue7.2AAA
string#80bda2is palette.green7.3AAA
constant#7ea5b7is palette.darkBlue6.0AA
module#7ea5b7is palette.darkBlue6.0AA
boolean#72ad91is palette.darkGreen6.1AA
number#72ad91is palette.darkGreen6.1AA
type#72bdbcis palette.cyan7.3AAA
attribute#bbc183is palette.darkYellow = accents.a208.3AAA
func#d0e08dis palette.yellow = accents.a1011.1AAA
constructor#d0e08dis palette.yellow = accents.a1011.1AAA
keyword#d49bb2is palette.magenta6.9AA
operator#7ea5b7is palette.darkBlue6.0AA
punctuation#b883bais palette.lightGray = primaries.m405.2AA
comment#965e90is palette.gray = primaries.m203.2Large
tag#d0e08dis palette.yellow = accents.a1011.1AAA

Terminal

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

darkRed#ed76685.5AA
red#ff857b6.7AA
darkGreen#72ad916.1AA
green#80bda27.3AAA
darkYellow#bbc183is accents.a208.3AAA
yellow#d0e08dis accents.a1011.1AAA
darkBlue#7ea5b76.0AA
blue#8cb6c57.2AAA
darkMagenta#b9a2d46.9AA
magenta#d49bb26.9AA
darkCyan#62adac6.1AA
cyan#72bdbc7.3AAA
black#5b3e47is primaries.d401.7Low
gray#965e90is primaries.m203.2Large
lightGray#b883bais primaries.m405.2AA
white#b796b8is primaries.l106.1AA