Default · dark

Dimmed Dark

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

black-atom-default-dimmed-dark · black-atom.industries/black-atom/themes/default-dimmed-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-dimmed-dark
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Dimmed 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 · #12171bd20 · #20252ad30 · #2e3339d40 · #3e4349m10 · #595e64m20 · #6a6f76m30 · #7b8187m40 · #8d9399l10 · #d2d8dfl20 · #dbe2e9l30 · #e5ecf3l40 · #eff6fd

Palette

black · #3e4349is 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
#20252a · oklch(0.26 0.012 248)
is
primaries.d20
bg.panel
Sidebars and the status line
value
#12171b · oklch(0.20 0.011 242)
is
primaries.d10
bg.float
Floating windows and popups
value
#12171b · oklch(0.20 0.011 242)
is
primaries.d10
bg.active
Active elements such as the cursor line or the active tab
value
#2e3339 · oklch(0.32 0.013 253)
is
primaries.d30
bg.disabled
Disabled interactive elements
value
#3e4349 · oklch(0.38 0.012 253)
is
primaries.d40
bg.hover
Hover state of interactive elements
value
#2e3339 · oklch(0.32 0.013 253)
is
primaries.d30
bg.selection
Visual selection
value
#3e4349 · oklch(0.38 0.012 253)
is
primaries.d40
bg.search
Search matches
value
#3e4349 · oklch(0.38 0.012 253)
is
primaries.d40
bg.contrast
Inverted background
value
#d2d8df · oklch(0.88 0.012 252)
is
primaries.l10
bg.negative
Errors
value
#452c32 · oklch(0.33 0.038 4)
from
primaries.d10 + feedback.negative
bg.info
Information
value
#223a3c · oklch(0.33 0.030 203)
from
primaries.d10 + feedback.info
bg.hint
Hints
value
#42301f · oklch(0.33 0.038 64)
from
primaries.d10 + feedback.warning
bg.warn
Warnings
value
#42301f · oklch(0.33 0.038 64)
from
primaries.d10 + feedback.warning
bg.positive
Success
value
#263a2a · oklch(0.33 0.038 150)
from
primaries.d10 + feedback.success
bg.add
Added lines
value
#293b2c · oklch(0.33 0.035 149)
from
primaries.d20 + feedback.success
bg.delete
Deleted lines
value
#462e33 · oklch(0.33 0.036 6)
from
primaries.d20 + feedback.negative
bg.modify
Modified lines
value
#1e3b3d · oklch(0.33 0.035 201)
from
primaries.d20 + feedback.info

UI foregrounds

fg.default13.0AAA
Default text
value
#e5ecf3 · oklch(0.94 0.012 248)
is
primaries.l30
fg.subtle3.9Large
Secondary text such as line numbers
value
#7b8187 · oklch(0.60 0.012 248)
is
primaries.m30
fg.accent7.4AAA
Links and text that needs to stand out
value
#4ec983 · oklch(0.75 0.150 155)
is
accents.a10
fg.disabled3.1Large
Disabled text
value
#6a6f76 · oklch(0.54 0.013 257)
is
primaries.m20
fg.contrast10.8AAA
Text on inverted backgrounds
value
#20252a · oklch(0.26 0.012 248)
is
primaries.d20
fg.negative4.4Large
Error text
value
#e97292 · oklch(0.70 0.150 5)
is
feedback.negative
fg.warn4.5AA
Warning text
value
#dd881b · oklch(0.70 0.150 65)
is
feedback.warning
fg.info5.0AA
Information text
value
#00b9c3 · oklch(0.72 0.122 202)
is
feedback.info
fg.hint4.5AA
Hint text
value
#dd881b · oklch(0.70 0.150 65)
is
feedback.warning
fg.positive4.9AA
Success text
value
#4cb86a · oklch(0.70 0.151 150)
is
feedback.success
fg.add4.8AA
Added marks
value
#4cb86a · oklch(0.70 0.151 150)
is
feedback.success
fg.delete4.3Large
Deleted marks
value
#e97292 · oklch(0.70 0.150 5)
is
feedback.negative
fg.modify5.0AA
Modified marks
value
#00b9c3 · oklch(0.72 0.122 202)
is
feedback.info
fg.border2.4Line
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.l1010.8AAA
property#7b8187is primaries.m303.9Large
string#5bb661is accents.a206.1AA
constant#d2d8dfis primaries.l1010.8AAA
module#dbe2e9is primaries.l2011.8AAA
boolean#5bb661is accents.a206.1AA
number#5bb661is accents.a206.1AA
type#4ec983is accents.a107.4AAA
attribute#4ec983is accents.a107.4AAA
func#e5ecf3is primaries.l3013.0AAA
constructor#e5ecf3is primaries.l3013.0AAA
keyword#7faaffis accents.a306.7AA
operator#dbe2e9is primaries.l2011.8AAA
punctuation#d2d8dfis primaries.l1010.8AAA
comment#7b8187is primaries.m303.9Large
tag#4ec983is accents.a107.4AAA

Terminal

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

black#3e4349is primaries.d401.5Low
gray#6a6f76is primaries.m203.1Large
darkRed#dc655f4.5Large
red#ff847d6.5AA
darkYellow#b886004.7AA
yellow#d9a5146.9AA
darkGreen#5bb661is accents.a206.1AA
green#4ec983is accents.a107.4AAA
darkCyan#00a4ac5.1AA
cyan#2ac4cc7.3AAA
darkBlue#618bddfrom accents.a304.6AA
blue#7faaffis accents.a306.7AA
darkMagenta#d86383from accents.a404.4Large
magenta#fb82a1is accents.a406.5AA
lightGray#dbe2e9is primaries.l2011.8AAA
white#e5ecf3is primaries.l3013.0AAA