Default · light

Dimmed Light

Definition ↗
Collection
Default
4 themes
Appearance
light
also in dark
Status
release
in the catalog
Contrast
93%
19 AAA · 6 AA · 28 large · 4 low
Accent
#009044
a10

black-atom-default-dimmed-light · black-atom.industries/black-atom/themes/default-dimmed-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 default-dimmed-light
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Dimmed 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 · #03060ad20 · #0e1217d30 · #1b2025d40 · #292e34m10 · #43484em20 · #53595fm30 · #646a70m40 · #757b81l10 · #b8bec5l20 · #dde4ebl30 · #dfe5ecl40 · #ecf3fa

Palette

black · #0e1217is primaries.d20
gray · #43484eis primaries.m10
darkRed · #a12f2f
red · #bc4945
darkGreen · #008c11is accents.a20
green · #009044is accents.a10
darkYellow · #835300
yellow · #9c6a00
darkBlue · #2a54cafrom accents.a30
blue · #3f6de5is accents.a30
darkMagenta · #bd0053from accents.a40
magenta · #da1d69is accents.a40
darkCyan · #007078
cyan · #008890
lightGray · #757b81is primaries.m40
white · #b8bec5is primaries.l10

Accents

a10 · #009044a20 · #008c11a30 · #3f6de5a40 · #da1d69

Feedback

negative · #c23870success · #008c11info · #00848bwarning · #d07600
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
#dfe5ec · oklch(0.92 0.012 252)
is
primaries.l30
bg.panel
Sidebars and the status line
value
#dde4eb · oklch(0.92 0.012 248)
is
primaries.l20
bg.float
Floating windows and popups
value
#dde4eb · oklch(0.92 0.012 248)
is
primaries.l20
bg.active
Active elements such as the cursor line or the active tab
value
#d2d8df · oklch(0.88 0.012 252)
from
primaries.l30
bg.disabled
Disabled interactive elements
value
#b8bec5 · oklch(0.80 0.012 252)
is
primaries.l10
bg.hover
Hover state of interactive elements
value
#b8bec5 · oklch(0.80 0.012 252)
is
primaries.l10
bg.selection
Visual selection
value
#b8bec5 · oklch(0.80 0.012 252)
is
primaries.l10
bg.search
Search matches
value
#b8bec5 · oklch(0.80 0.012 252)
is
primaries.l10
bg.contrast
Inverted background
value
#292e34 · oklch(0.30 0.013 253)
is
primaries.d40
bg.negative
Errors
value
#efd7dd · oklch(0.90 0.028 1)
from
primaries.l40 + feedback.negative
bg.info
Information
value
#d4e1e2 · oklch(0.90 0.014 202)
from
primaries.l40 + feedback.info
bg.hint
Hints
value
#efe0d4 · oklch(0.92 0.023 61)
from
primaries.l40 + feedback.warning
bg.warn
Warnings
value
#efe0d4 · oklch(0.92 0.023 61)
from
primaries.l40 + feedback.warning
bg.positive
Success
value
#d4e3d3 · oklch(0.90 0.027 144)
from
primaries.l40 + feedback.success
bg.add
Added lines
value
#cadec9 · oklch(0.88 0.036 144)
from
primaries.l30 + feedback.success
bg.delete
Deleted lines
value
#ecced6 · oklch(0.88 0.035 360)
from
primaries.l30 + feedback.negative
bg.modify
Modified lines
value
#bedfe1 · oklch(0.88 0.035 201)
from
primaries.l30 + feedback.info

UI foregrounds

fg.default14.8AAA
Default text
value
#0e1217 · oklch(0.18 0.012 254)
is
primaries.d20
fg.subtle7.3AAA
Secondary text such as line numbers
value
#43484e · oklch(0.40 0.012 253)
is
primaries.m10
fg.accent3.3Large
Links and text that needs to stand out
value
#009044 · oklch(0.57 0.154 151)
is
accents.a10
fg.disabled4.3Large
Disabled text
value
#646a70 · oklch(0.52 0.012 248)
is
primaries.m30
fg.contrast10.7AAA
Text on inverted backgrounds
value
#dde4eb · oklch(0.92 0.012 248)
is
primaries.l20
fg.negative3.8Large
Error text
value
#c23870 · oklch(0.56 0.180 0)
is
feedback.negative
fg.warn2.6Low
Warning text
value
#d07600 · oklch(0.65 0.151 61)
is
feedback.warning
fg.info3.4Large
Information text
value
#00848b · oklch(0.56 0.095 201)
is
feedback.info
fg.hint2.6Low
Hint text
value
#d07600 · oklch(0.65 0.151 61)
is
feedback.warning
fg.positive3.3Large
Success text
value
#008c11 · oklch(0.56 0.184 143)
is
feedback.success
fg.add3.1Large
Added marks
value
#008c11 · oklch(0.56 0.184 143)
is
feedback.success
fg.delete3.5Large
Deleted marks
value
#c23870 · oklch(0.56 0.180 0)
is
feedback.negative
fg.modify3.2Large
Modified marks
value
#00848b · oklch(0.56 0.095 201)
is
feedback.info
fg.border2.0Line
Idle borders, separators and guide lines
value
#a0a4a7 · oklch(0.72 0.006 240)
from
primaries.m40 + primaries.l30

Syntax

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

variable#292e34is primaries.d4010.8AAA
property#53595fis primaries.m205.6AA
string#008c11is accents.a203.5Large
constant#292e34is primaries.d4010.8AAA
module#1b2025is primaries.d3012.9AAA
boolean#008c11is accents.a203.5Large
number#008c11is accents.a203.5Large
type#009044is accents.a103.3Large
attribute#009044is accents.a103.3Large
func#1b2025is primaries.d3012.9AAA
constructor#1b2025is primaries.d3012.9AAA
keyword#3f6de5is accents.a303.7Large
operator#1b2025is primaries.d3012.9AAA
punctuation#292e34is primaries.d4010.8AAA
comment#757b81is primaries.m403.4Large
tag#009044is accents.a103.3Large

Terminal

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

black#0e1217is primaries.d2014.8AAA
gray#43484eis primaries.m107.3AAA
darkRed#a12f2f5.6AA
red#bc49454.0Large
darkYellow#8353005.2AA
yellow#9c6a003.7Large
darkGreen#008c11is accents.a203.5Large
green#009044is accents.a103.3Large
darkCyan#0070784.6AA
cyan#0088903.4Large
darkBlue#2a54cafrom accents.a305.1AA
blue#3f6de5is accents.a303.7Large
darkMagenta#bd0053from accents.a405.0AA
magenta#da1d69is accents.a403.8Large
lightGray#757b81is primaries.m403.4Large
white#b8bec5is primaries.l101.5Low