Default · dark

Dark

Definition ↗
Collection
Default
4 themes
Appearance
dark
also in light
Status
release
in the catalog
Contrast
100%
34 AAA · 21 AA · 2 large · 0 low
Accent
#4ec983
a10

black-atom-default-dark · black-atom.industries/black-atom/themes/default-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 default-dark
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on 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 · #090e12d20 · #12171bd30 · #1b2025d40 · #25292fm10 · #595e64m20 · #6a6f76m30 · #7b8187m40 · #8d9399l10 · #d2d8dfl20 · #dbe2e9l30 · #e5ecf3l40 · #eff6fd

Palette

black · #25292fis primaries.d40
gray · #6a6f76is primaries.m20
darkRed · #dc655f
red · #ff847d
darkGreen · #5bb661is accents.a20
green · #4ec983is accents.a10
darkYellow · #b88600
yellow · #d9a514
darkBlue · #618bddfrom accents.a30
blue · #7faaffis accents.a30
darkMagenta · #d86383from accents.a40
magenta · #fb82a1is accents.a40
darkCyan · #00a4ac
cyan · #2ac4cc
lightGray · #dbe2e9is primaries.l20
white · #e5ecf3is primaries.l30

Accents

a10 · #4ec983a20 · #5bb661a30 · #7faaffa40 · #fb82a1

Feedback

negative · #e97292success · #4cb86ainfo · #00b9c3warning · #dd881b
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
#12171b · oklch(0.20 0.011 242)
is
primaries.d20
bg.panel
Sidebars and the status line
value
#090e12 · oklch(0.16 0.012 242)
is
primaries.d10
bg.float
Floating windows and popups
value
#090e12 · oklch(0.16 0.012 242)
is
primaries.d10
bg.active
Active elements such as the cursor line or the active tab
value
#1b2025 · oklch(0.24 0.012 248)
is
primaries.d30
bg.disabled
Disabled interactive elements
value
#25292f · oklch(0.28 0.012 258)
is
primaries.d40
bg.hover
Hover state of interactive elements
value
#1b2025 · oklch(0.24 0.012 248)
is
primaries.d30
bg.selection
Visual selection
value
#25292f · oklch(0.28 0.012 258)
is
primaries.d40
bg.search
Search matches
value
#25292f · oklch(0.28 0.012 258)
is
primaries.d40
bg.contrast
Inverted background
value
#d2d8df · oklch(0.88 0.012 252)
is
primaries.l10
bg.negative
Errors
value
#3c242a · oklch(0.29 0.038 3)
from
primaries.d10 + feedback.negative
bg.info
Information
value
#1a3234 · oklch(0.30 0.030 203)
from
primaries.d10 + feedback.info
bg.hint
Hints
value
#392918 · oklch(0.30 0.037 67)
from
primaries.d10 + feedback.warning
bg.warn
Warnings
value
#392918 · oklch(0.30 0.037 67)
from
primaries.d10 + feedback.warning
bg.positive
Success
value
#1e3222 · oklch(0.29 0.039 150)
from
primaries.d10 + feedback.success
bg.add
Added lines
value
#1a2c1e · oklch(0.27 0.035 151)
from
primaries.d20 + feedback.success
bg.delete
Deleted lines
value
#351f24 · oklch(0.27 0.035 5)
from
primaries.d20 + feedback.negative
bg.modify
Modified lines
value
#0e2c2e · oklch(0.27 0.035 201)
from
primaries.d20 + feedback.info

UI foregrounds

fg.default15.1AAA
Default text
value
#e5ecf3 · oklch(0.94 0.012 248)
is
primaries.l30
fg.subtle4.6AA
Secondary text such as line numbers
value
#7b8187 · oklch(0.60 0.012 248)
is
primaries.m30
fg.accent8.6AAA
Links and text that needs to stand out
value
#4ec983 · oklch(0.75 0.150 155)
is
accents.a10
fg.disabled3.6Large
Disabled text
value
#6a6f76 · oklch(0.54 0.013 257)
is
primaries.m20
fg.contrast12.6AAA
Text on inverted backgrounds
value
#12171b · oklch(0.20 0.011 242)
is
primaries.d20
fg.negative4.9AA
Error text
value
#e97292 · oklch(0.70 0.150 5)
is
feedback.negative
fg.warn5.1AA
Warning text
value
#dd881b · oklch(0.70 0.150 65)
is
feedback.warning
fg.info5.6AA
Information text
value
#00b9c3 · oklch(0.72 0.122 202)
is
feedback.info
fg.hint5.1AA
Hint text
value
#dd881b · oklch(0.70 0.150 65)
is
feedback.warning
fg.positive5.5AA
Success text
value
#4cb86a · oklch(0.70 0.151 150)
is
feedback.success
fg.add5.9AA
Added marks
value
#4cb86a · oklch(0.70 0.151 150)
is
feedback.success
fg.delete5.3AA
Deleted marks
value
#e97292 · oklch(0.70 0.150 5)
is
feedback.negative
fg.modify6.2AA
Modified marks
value
#00b9c3 · oklch(0.72 0.122 202)
is
feedback.info
fg.border2.8Line
Idle borders, separators and guide lines
value
#595e64 · oklch(0.48 0.012 253)
is
primaries.m10

Syntax

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

variable#d2d8dfis primaries.l1012.6AAA
property#7b8187is primaries.m304.6AA
string#5bb661is accents.a207.1AAA
constant#d2d8dfis primaries.l1012.6AAA
module#dbe2e9is primaries.l2013.8AAA
boolean#5bb661is accents.a207.1AAA
number#5bb661is accents.a207.1AAA
type#4ec983is accents.a108.6AAA
attribute#4ec983is accents.a108.6AAA
func#e5ecf3is primaries.l3015.1AAA
constructor#e5ecf3is primaries.l3015.1AAA
keyword#7faaffis accents.a307.8AAA
operator#dbe2e9is primaries.l2013.8AAA
punctuation#d2d8dfis primaries.l1012.6AAA
comment#7b8187is primaries.m304.6AA
tag#4ec983is accents.a108.6AAA

Terminal

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

black#25292fis primaries.d401.2Low
gray#6a6f76is primaries.m203.6Large
darkRed#dc655f5.2AA
red#ff847d7.6AAA
darkYellow#b886005.5AA
yellow#d9a5148.0AAA
darkGreen#5bb661is accents.a207.1AAA
green#4ec983is accents.a108.6AAA
darkCyan#00a4ac5.9AA
cyan#2ac4cc8.5AAA
darkBlue#618bddfrom accents.a305.4AA
blue#7faaffis accents.a307.8AAA
darkMagenta#d86383from accents.a405.2AA
magenta#fb82a1is accents.a407.6AAA
lightGray#dbe2e9is primaries.l2013.8AAA
white#e5ecf3is primaries.l3015.1AAA