Facility · dark

Dimmed Dark

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

black-atom-facility-dimmed-dark · black-atom.industries/black-atom/themes/facility-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 facility-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 · #131718d20 · #1c2022d30 · #252a2cd40 · #33393cm10 · #687273m20 · #748081m30 · #8e9b9cm40 · #a7b4b6l10 · #c4cfd2l20 · #cfd9dcl30 · #dae4e7l40 · #e2edef

Palette

black · #33393cis primaries.d40
gray · #687273is primaries.m10
darkRed · #ff93c1
red · #ffa9d2
darkGreen · #7bd780
green · #96e497
darkYellow · #f9c55cis accents.a20
yellow · #ddfa5fis accents.a10
darkBlue · #a7b4b6is primaries.m40
blue · #cfd9dcis primaries.l20
darkMagenta · #b2b8f6
magenta · #c3c8ff
darkCyan · #7ad49f
cyan · #8ee4b2
lightGray · #c4cfd2is primaries.l10
white · #dae4e7is primaries.l30

Accents

a10 · #ddfa5fa20 · #f9c55c

Feedback

negative · #ffa9d2is palette.redsuccess · #96e497is palette.greeninfo · #cfd9dcis palette.blue = primaries.l20warning · #ddfa5fis palette.yellow = accents.a10
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
#1c2022 · oklch(0.24 0.007 229)
is
primaries.d20
bg.panel
Sidebars and the status line
value
#131718 · oklch(0.20 0.006 214)
is
primaries.d10
bg.float
Floating windows and popups
value
#131718 · oklch(0.20 0.006 214)
is
primaries.d10
bg.active
Active elements such as the cursor line or the active tab
value
#252a2c · oklch(0.28 0.008 224)
is
primaries.d30
bg.disabled
Disabled interactive elements
value
#687273 · oklch(0.54 0.012 204)
is
primaries.m10
bg.hover
Hover state of interactive elements
value
#252a2c · oklch(0.28 0.008 224)
is
primaries.d30
bg.selection
Visual selection
value
#33393c · oklch(0.34 0.010 229)
is
primaries.d40
bg.search
Search matches
value
#33393c · oklch(0.34 0.010 229)
is
primaries.d40
bg.contrast
Inverted background
value
#dae4e7 · oklch(0.91 0.012 218)
is
primaries.l30
bg.negative
Errors
value
#705260 · oklch(0.47 0.045 349)
from
primaries.d20 + feedback.negative
bg.warn
Warnings
value
#646e3d · oklch(0.52 0.072 118)
from
primaries.d20 + feedback.warning
bg.info
Information
value
#5f6263 · oklch(0.49 0.004 220)
from
primaries.d20 + feedback.info
bg.hint
Hints
value
#6e5c3a · oklch(0.48 0.055 83)
from
primaries.d20 + palette.darkYellow
bg.positive
Success
value
#4c674c · oklch(0.48 0.053 145)
from
primaries.d20 + feedback.success
bg.add
Added lines
value
#253525 · oklch(0.31 0.035 145)
from
primaries.d20 + feedback.success
bg.delete
Deleted lines
value
#3e2933 · oklch(0.31 0.035 349)
from
primaries.d20 + feedback.negative
bg.modify
Modified lines
value
#2a3234 · oklch(0.31 0.012 214)
from
primaries.d20 + feedback.info

UI foregrounds

fg.default12.7AAA
Default text
value
#dae4e7 · oklch(0.91 0.012 218)
is
primaries.l30
fg.subtle7.7AAA
Secondary text such as line numbers
value
#a7b4b6 · oklch(0.76 0.015 208)
is
primaries.m40
fg.accent14.0AAA
Links and text that needs to stand out
value
#ddfa5f · oklch(0.94 0.180 119)
is
accents.a10
fg.disabled5.7AA
Disabled text
value
#8e9b9c · oklch(0.68 0.015 202)
is
primaries.m30
fg.contrast12.7AAA
Text on inverted backgrounds
value
#1c2022 · oklch(0.24 0.007 229)
is
primaries.d20
fg.negative3.9Large
Error text
value
#ffa9d2 · oklch(0.83 0.112 350)
is
feedback.negative = palette.red
fg.warn4.7AA
Warning text
value
#ddfa5f · oklch(0.94 0.180 119)
is
feedback.warning = palette.yellow = accents.a10
fg.info4.3Large
Information text
value
#cfd9dc · oklch(0.88 0.012 218)
is
feedback.info = palette.blue = primaries.l20
fg.hint4.0Large
Hint text
value
#f9c55c · oklch(0.85 0.135 83)
is
palette.darkYellow = accents.a20
fg.positive4.1Large
Success text
value
#96e497 · oklch(0.85 0.131 145)
is
feedback.success = palette.green
fg.add8.6AAA
Added marks
value
#96e497 · oklch(0.85 0.131 145)
is
feedback.success = palette.green
fg.delete7.6AAA
Deleted marks
value
#ffa9d2 · oklch(0.83 0.112 350)
is
feedback.negative = palette.red
fg.modify9.1AAA
Modified marks
value
#cfd9dc · oklch(0.88 0.012 218)
is
feedback.info = palette.blue = primaries.l20
fg.border2.1Line
Idle borders, separators and guide lines
value
#4d5354 · oklch(0.44 0.008 209)
from
primaries.d20 + primaries.m10

Syntax

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

variable#cfd9dcis palette.blue = primaries.l2011.4AAA
property#a7b4b6is palette.darkBlue = primaries.m407.7AAA
string#96e497is palette.green10.8AAA
constant#cfd9dcis primaries.l2011.4AAA
module#a7b4b6is palette.darkBlue = primaries.m407.7AAA
boolean#7bd780is palette.darkGreen9.3AAA
number#7bd780is palette.darkGreen9.3AAA
type#8ee4b2is palette.cyan10.9AAA
attribute#f9c55cis palette.darkYellow = accents.a2010.3AAA
func#ddfa5fis palette.yellow = accents.a1014.0AAA
constructor#ddfa5fis palette.yellow = accents.a1014.0AAA
keyword#c3c8ffis palette.magenta10.2AAA
operator#c3c8ffis palette.magenta10.2AAA
punctuation#c4cfd2is palette.lightGray = primaries.l1010.3AAA
comment#687273is palette.gray = primaries.m103.3Large
tag#ddfa5fis palette.yellow = accents.a1014.0AAA

Terminal

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

darkRed#ff93c18.0AAA
red#ffa9d29.3AAA
darkGreen#7bd7809.3AAA
green#96e49710.8AAA
darkYellow#f9c55cis accents.a2010.3AAA
yellow#ddfa5fis accents.a1014.0AAA
darkBlue#a7b4b6is primaries.m407.7AAA
blue#cfd9dcis primaries.l2011.4AAA
darkMagenta#b2b8f68.7AAA
magenta#c3c8ff10.2AAA
darkCyan#7ad49f9.2AAA
cyan#8ee4b210.9AAA
black#33393cis primaries.d401.4Low
gray#687273is primaries.m103.3Large
lightGray#c4cfd2is primaries.l1010.3AAA
white#dae4e7is primaries.l3012.7AAA