JPN · dark
Murasaki Dark
- 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
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.active
Active elements such as the cursor line or the active tab- value
- #452a32 · oklch(0.32 0.042 0)
- is
- primaries.d30
UI foregrounds
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.warn9.0AAA
Warning text- value
- #d0e08d · oklch(0.88 0.108 118)
- is
- feedback.warning = palette.yellow = accents.a10
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.
variable8.0AAA
property7.2AAA
string7.3AAA
constant6.0AA
module6.0AA
boolean6.1AA
number6.1AA
type7.3AAA
attribute8.3AAA
func11.1AAA
constructor11.1AAA
keyword6.9AA
operator6.0AA
punctuation5.2AA
comment3.2Large
tag11.1AAA
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed5.5AA
red6.7AA
darkGreen6.1AA
green7.3AAA
darkYellow8.3AAA
yellow11.1AAA
darkBlue6.0AA
blue7.2AAA
darkMagenta6.9AA
magenta6.9AA
darkCyan6.1AA
cyan7.3AAA
black1.7Low
gray3.2Large
lightGray5.2AA
white6.1AA
··
Files
Generated for Murasaki Dark| 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 |