Minium · dark

Viridian Dark

Definition ↗
Collection
Minium
4 themes
Appearance
dark
also in light
Status
release
in the catalog
Contrast
100%
18 AAA · 24 AA · 15 large · 0 low
Accent
#e69173
a10

black-atom-minium-viridian-dark · black-atom.industries/black-atom/themes/minium-viridian-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 minium-viridian-dark
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Viridian 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 · #0d3530d20 · #13403ad30 · #194c45d40 · #00564dm10 · #308176m20 · #4d9c91m30 · #67b5a9m40 · #80cfc2l10 · #abd5cdl20 · #bfdfd9l30 · #daf1edl40 · #f0fbf9

Palette

black · #00564dis primaries.d40
gray · #67b5a9is primaries.m30
darkRed · #c47255from accents.a10
red · #e69173is accents.a10
darkGreen · #4fa465from accents.a20
green · #6fc483is accents.a20
darkYellow · #bf8029from accents.a30
yellow · #e09f4dis accents.a30
darkBlue · #5e94ca
blue · #7cb3eb
darkMagenta · #cba1a9
magenta · #ecc1c9
darkCyan · #00a796from accents.a40
cyan · #2cc7b5is accents.a40
lightGray · #80cfc2is primaries.m40
white · #bfdfd9is primaries.l20

Accents

a10 · #e69173a20 · #6fc483a30 · #e09f4da40 · #2cc7b5

Feedback

negative · #f47a7dsuccess · #a9ba78info · #79b5ccwarning · #d6b174
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
#13403a · oklch(0.34 0.050 183)
is
primaries.d20
bg.panel
Sidebars and the status line
value
#0d3530 · oklch(0.30 0.045 184)
is
primaries.d10
bg.float
Floating windows and popups
value
#0d3530 · oklch(0.30 0.045 184)
is
primaries.d10
bg.active
Active elements such as the cursor line or the active tab
value
#194c45 · oklch(0.38 0.055 183)
is
primaries.d30
bg.disabled
Disabled interactive elements
value
#00564d · oklch(0.41 0.073 183)
is
primaries.d40
bg.hover
Hover state of interactive elements
value
#194c45 · oklch(0.38 0.055 183)
is
primaries.d30
bg.selection
Visual selection
value
#00564d · oklch(0.41 0.073 183)
is
primaries.d40
bg.search
Search matches
value
#00564d · oklch(0.41 0.073 183)
is
primaries.d40
bg.contrast
Inverted background
value
#abd5cd · oklch(0.84 0.045 182)
is
primaries.l10
bg.negative
Errors
value
#664545 · oklch(0.43 0.046 19)
from
primaries.d10 + feedback.negative
bg.info
Information
value
#445359 · oklch(0.43 0.021 224)
from
primaries.d10 + feedback.info
bg.hint
Hints
value
#5c5243 · oklch(0.44 0.027 78)
from
primaries.d10 + feedback.warning
bg.warn
Warnings
value
#5c5243 · oklch(0.44 0.027 78)
from
primaries.d10 + feedback.warning
bg.positive
Success
value
#505544 · oklch(0.44 0.028 121)
from
primaries.d10 + feedback.success
bg.add
Added lines
value
#464e2f · oklch(0.41 0.050 120)
from
primaries.d20 + feedback.success
bg.delete
Deleted lines
value
#623f3f · oklch(0.41 0.049 19)
from
primaries.d20 + feedback.negative
bg.modify
Modified lines
value
#29505e · oklch(0.41 0.050 224)
from
primaries.d20 + feedback.info

UI foregrounds

fg.default9.8AAA
Default text
value
#daf1ed · oklch(0.94 0.025 184)
is
primaries.l30
fg.subtle4.8AA
Secondary text such as line numbers
value
#67b5a9 · oklch(0.72 0.080 183)
is
primaries.m30
fg.accent4.8AA
Links and text that needs to stand out
value
#e69173 · oklch(0.74 0.112 40)
is
accents.a10
fg.disabled3.6Large
Disabled text
value
#4d9c91 · oklch(0.64 0.080 184)
is
primaries.m20
fg.contrast7.2AAA
Text on inverted backgrounds
value
#13403a · oklch(0.34 0.050 183)
is
primaries.d20
fg.negative3.2Large
Error text
value
#f47a7d · oklch(0.72 0.150 20)
is
feedback.negative
fg.warn3.8Large
Warning text
value
#d6b174 · oklch(0.78 0.090 79)
is
feedback.warning
fg.info3.5Large
Information text
value
#79b5cc · oklch(0.74 0.070 224)
is
feedback.info
fg.hint3.8Large
Hint text
value
#d6b174 · oklch(0.78 0.090 79)
is
feedback.warning
fg.positive3.7Large
Success text
value
#a9ba78 · oklch(0.76 0.090 120)
is
feedback.success
fg.add4.2Large
Added marks
value
#a9ba78 · oklch(0.76 0.090 120)
is
feedback.success
fg.delete3.4Large
Deleted marks
value
#f47a7d · oklch(0.72 0.150 20)
is
feedback.negative
fg.modify3.9Large
Modified marks
value
#79b5cc · oklch(0.74 0.070 224)
is
feedback.info
fg.border2.5Line
Idle borders, separators and guide lines
value
#308176 · oklch(0.55 0.080 183)
is
primaries.m10

Syntax

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

variable#bfdfd9is primaries.l208.1AAA
property#6fc483is accents.a205.4AA
string#bfdfd9is primaries.l208.1AAA
constant#abd5cdis primaries.l107.2AAA
module#bfdfd9is primaries.l208.1AAA
boolean#80cfc2is primaries.m406.4AA
number#abd5cdis primaries.l107.2AAA
type#f0fbf9is primaries.l4010.9AAA
attribute#6fc483is accents.a205.4AA
func#e69173is accents.a104.8AA
constructor#e69173is accents.a104.8AA
keyword#daf1edis primaries.l309.8AAA
operator#daf1edis primaries.l309.8AAA
punctuation#abd5cdis primaries.l107.2AAA
comment#67b5a9is primaries.m304.8AA
tag#e69173is accents.a104.8AA

Terminal

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

black#00564dis primaries.d401.3Low
gray#67b5a9is primaries.m304.8AA
darkRed#c47255from accents.a103.2Large
red#e69173is accents.a104.8AA
darkYellow#bf8029from accents.a303.5Large
yellow#e09f4dis accents.a305.1AA
darkGreen#4fa465from accents.a203.7Large
green#6fc483is accents.a205.4AA
darkCyan#00a796from accents.a403.8Large
cyan#2cc7b5is accents.a405.5AA
darkBlue#5e94ca3.6Large
blue#7cb3eb5.2AA
darkMagenta#cba1a95.1AA
magenta#ecc1c97.2AAA
lightGray#80cfc2is primaries.m406.4AA
white#bfdfd9is primaries.l208.1AAA