Mono · light

Light

Definition ↗
Collection
Mono
4 themes
Appearance
light
also in dark
Status
release
in the catalog
Contrast
100%
31 AAA · 20 AA · 6 large · 0 low
Accent
#2e2e2e
a10

black-atom-mono-light · black-atom.industries/black-atom/themes/mono-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 mono-light
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on 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 · #0a0907d20 · #181614d30 · #2b2826d40 · #3f3d3am10 · #605d5bm20 · #716e6cm30 · #82807dm40 · #94928fl10 · #e0dddal20 · #f1eeebl30 · #fefbf8l40 · #fffffc

Palette

black · #3f3d3ais primaries.d40
gray · #605d5bis primaries.m10
darkRed · #5d5a58from primaries.m10
red · #716e6cfrom primaries.m10
darkGreen · #383533from primaries.m10
green · #4a4745from primaries.m10
darkYellow · #5d5a58from primaries.m10
yellow · #716e6cfrom primaries.m10
darkBlue · #161412from primaries.m10
blue · #262422from primaries.m10
darkMagenta · #161412from primaries.m10
magenta · #262422from primaries.m10
darkCyan · #383533from primaries.m10
cyan · #4a4745from primaries.m10
lightGray · #94928fis primaries.m40
white · #e0dddais primaries.l10

Accents

a10 · #2e2e2ea20 · #4d4d4d

Feedback

negative · #c21725success · #5d7600info · #0079bdwarning · #af5f00
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
#fefbf8 · oklch(0.99 0.005 68)
is
primaries.l30
bg.panel
Sidebars and the status line
value
#f1eeeb · oklch(0.95 0.005 68)
is
primaries.l20
bg.float
Floating windows and popups
value
#f1eeeb · oklch(0.95 0.005 68)
is
primaries.l20
bg.active
Active elements such as the cursor line or the active tab
value
#f1eeeb · oklch(0.95 0.005 68)
from
primaries.l30
bg.disabled
Disabled interactive elements
value
#e0ddda · oklch(0.90 0.005 68)
is
primaries.l10
bg.hover
Hover state of interactive elements
value
#f1eeeb · oklch(0.95 0.005 68)
is
primaries.l20
bg.selection
Visual selection
value
#e0ddda · oklch(0.90 0.005 68)
is
primaries.l10
bg.search
Search matches
value
#e0ddda · oklch(0.90 0.005 68)
is
primaries.l10
bg.contrast
Inverted background
value
#3f3d3a · oklch(0.36 0.006 78)
is
primaries.d40
bg.negative
Errors
value
#fbe0dd · oklch(0.93 0.030 25)
from
primaries.l40 + feedback.negative
bg.info
Information
value
#deebf6 · oklch(0.93 0.020 243)
from
primaries.l40 + feedback.info
bg.hint
Hints
value
#f4e7dd · oklch(0.94 0.020 60)
from
primaries.l40 + feedback.warning
bg.warn
Warnings
value
#f4e7dd · oklch(0.94 0.020 60)
from
primaries.l40 + feedback.warning
bg.positive
Success
value
#e5eadc · oklch(0.93 0.019 123)
from
primaries.l40 + feedback.success
bg.add
Added lines
value
#eaf3d9 · oklch(0.95 0.036 123)
from
primaries.l30 + feedback.success
bg.delete
Deleted lines
value
#ffe8e6 · oklch(0.95 0.025 24)
from
primaries.l30 + feedback.negative
bg.modify
Modified lines
value
#e0f1ff · oklch(0.95 0.026 243)
from
primaries.l30 + feedback.info

UI foregrounds

fg.default17.5AAA
Default text
value
#181614 · oklch(0.20 0.005 68)
is
primaries.d20
fg.subtle6.3AA
Secondary text such as line numbers
value
#605d5b · oklch(0.48 0.005 56)
is
primaries.m10
fg.accent13.2AAA
Links and text that needs to stand out
value
#2e2e2e · oklch(0.30 0.000 0)
is
accents.a10
fg.disabled3.8Large
Disabled text
value
#82807d · oklch(0.60 0.005 78)
is
primaries.m30
fg.contrast9.4AAA
Text on inverted backgrounds
value
#f1eeeb · oklch(0.95 0.005 68)
is
primaries.l20
fg.negative4.9AA
Error text
value
#c21725 · oklch(0.52 0.200 25)
is
feedback.negative
fg.warn3.9Large
Warning text
value
#af5f00 · oklch(0.57 0.135 59)
is
feedback.warning
fg.info3.9Large
Information text
value
#0079bd · oklch(0.56 0.138 244)
is
feedback.info
fg.hint3.9Large
Hint text
value
#af5f00 · oklch(0.57 0.135 59)
is
feedback.warning
fg.positive4.2Large
Success text
value
#5d7600 · oklch(0.53 0.129 123)
is
feedback.success
fg.add4.5AA
Added marks
value
#5d7600 · oklch(0.53 0.129 123)
is
feedback.success
fg.delete5.2AA
Deleted marks
value
#c21725 · oklch(0.52 0.200 25)
is
feedback.negative
fg.modify4.1Large
Modified marks
value
#0079bd · oklch(0.56 0.138 244)
is
feedback.info
fg.border2.1Line
Idle borders, separators and guide lines
value
#b1afad · oklch(0.76 0.004 68)
from
primaries.m30 + primaries.l30

Syntax

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

variable#2b2826is primaries.d3014.2AAA
property#605d5bis primaries.m106.3AA
string#716e6cis primaries.m204.9AA
constant#181614is primaries.d2017.5AAA
module#2b2826is primaries.d3014.2AAA
boolean#605d5bis primaries.m106.3AA
number#3f3d3ais primaries.d4010.5AAA
type#0a0907is primaries.d1019.3AAA
attribute#4d4d4dis accents.a208.2AAA
func#2e2e2eis accents.a1013.2AAA
constructor#2e2e2eis accents.a1013.2AAA
keyword#2e2e2eis accents.a1013.2AAA
operator#181614is primaries.d2017.5AAA
punctuation#3f3d3ais primaries.d4010.5AAA
comment#716e6cis primaries.m204.9AA
tag#4d4d4dis accents.a208.2AAA

Terminal

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

black#3f3d3ais primaries.d4010.5AAA
gray#605d5bis primaries.m106.3AA
darkRed#5d5a58from primaries.m106.6AA
red#716e6cfrom primaries.m104.9AA
darkYellow#5d5a58from primaries.m106.6AA
yellow#716e6cfrom primaries.m104.9AA
darkGreen#383533from primaries.m1011.8AAA
green#4a4745from primaries.m108.9AAA
darkCyan#383533from primaries.m1011.8AAA
cyan#4a4745from primaries.m108.9AAA
darkBlue#161412from primaries.m1017.8AAA
blue#262422from primaries.m1015.0AAA
darkMagenta#161412from primaries.m1017.8AAA
magenta#262422from primaries.m1015.0AAA
lightGray#94928fis primaries.m403.0Large
white#e0dddais primaries.l101.3Low