Facility · dark

Dark

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

black-atom-facility-dark · black-atom.industries/black-atom/themes/facility-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-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 · #040607d20 · #0d1012d30 · #1a1e20d40 · #282c2fm10 · #687273m20 · #748081m30 · #8e9b9cm40 · #a7b4b6l10 · #cfdadcl20 · #dae4e7l30 · #e3edf0l40 · #edf8fa

Palette

black · #282c2fis 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 · #dae4e7is primaries.l20
darkMagenta · #b2b8f6
magenta · #c3c8ff
darkCyan · #7ad49f
cyan · #8ee4b2
lightGray · #cfdadcis primaries.l10
white · #e3edf0is primaries.l30

Accents

a10 · #ddfa5fa20 · #f9c55c

Feedback

negative · #ffa9d2is palette.redsuccess · #96e497is palette.greeninfo · #dae4e7is 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
#0d1012 · oklch(0.17 0.006 237)
is
primaries.d20
bg.panel
Sidebars and the status line
value
#040607 · oklch(0.12 0.006 226)
is
primaries.d10
bg.float
Floating windows and popups
value
#040607 · oklch(0.12 0.006 226)
is
primaries.d10
bg.active
Active elements such as the cursor line or the active tab
value
#1a1e20 · oklch(0.23 0.007 229)
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
#1a1e20 · oklch(0.23 0.007 229)
is
primaries.d30
bg.selection
Visual selection
value
#282c2f · oklch(0.29 0.008 240)
is
primaries.d40
bg.search
Search matches
value
#282c2f · oklch(0.29 0.008 240)
is
primaries.d40
bg.contrast
Inverted background
value
#e3edf0 · oklch(0.94 0.011 218)
is
primaries.l30
bg.negative
Errors
value
#644754 · oklch(0.43 0.044 351)
from
primaries.d20 + feedback.negative
bg.warn
Warnings
value
#586231 · oklch(0.48 0.072 119)
from
primaries.d20 + feedback.warning
bg.info
Information
value
#575a5b · oklch(0.47 0.004 220)
from
primaries.d20 + feedback.info
bg.hint
Hints
value
#62502f · oklch(0.44 0.054 82)
from
primaries.d20 + palette.darkYellow
bg.positive
Success
value
#415a41 · oklch(0.44 0.050 145)
from
primaries.d20 + feedback.success
bg.add
Added lines
value
#152415 · oklch(0.24 0.035 144)
from
primaries.d20 + feedback.success
bg.delete
Deleted lines
value
#2c1822 · oklch(0.24 0.036 349)
from
primaries.d20 + feedback.negative
bg.modify
Modified lines
value
#192123 · oklch(0.24 0.012 215)
from
primaries.d20 + feedback.info

UI foregrounds

fg.default16.0AAA
Default text
value
#e3edf0 · oklch(0.94 0.011 218)
is
primaries.l30
fg.subtle9.0AAA
Secondary text such as line numbers
value
#a7b4b6 · oklch(0.76 0.015 208)
is
primaries.m40
fg.accent16.3AAA
Links and text that needs to stand out
value
#ddfa5f · oklch(0.94 0.180 119)
is
accents.a10
fg.disabled6.7AA
Disabled text
value
#8e9b9c · oklch(0.68 0.015 202)
is
primaries.m30
fg.contrast16.0AAA
Text on inverted backgrounds
value
#0d1012 · oklch(0.17 0.006 237)
is
primaries.d20
fg.negative4.6AA
Error text
value
#ffa9d2 · oklch(0.83 0.112 350)
is
feedback.negative = palette.red
fg.warn5.6AA
Warning text
value
#ddfa5f · oklch(0.94 0.180 119)
is
feedback.warning = palette.yellow = accents.a10
fg.info5.4AA
Information text
value
#dae4e7 · oklch(0.91 0.012 218)
is
feedback.info = palette.blue = primaries.l20
fg.hint4.9AA
Hint text
value
#f9c55c · oklch(0.85 0.135 83)
is
palette.darkYellow = accents.a20
fg.positive5.0AA
Success text
value
#96e497 · oklch(0.85 0.131 145)
is
feedback.success = palette.green
fg.add10.7AAA
Added marks
value
#96e497 · oklch(0.85 0.131 145)
is
feedback.success = palette.green
fg.delete9.4AAA
Deleted marks
value
#ffa9d2 · oklch(0.83 0.112 350)
is
feedback.negative = palette.red
fg.modify12.7AAA
Modified marks
value
#dae4e7 · oklch(0.91 0.012 218)
is
feedback.info = palette.blue = primaries.l20
fg.border2.2Line
Idle borders, separators and guide lines
value
#464c4d · oklch(0.41 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#dae4e7is palette.blue = primaries.l2014.8AAA
property#a7b4b6is palette.darkBlue = primaries.m409.0AAA
string#96e497is palette.green12.6AAA
constant#dae4e7is primaries.l2014.8AAA
module#a7b4b6is palette.darkBlue = primaries.m409.0AAA
boolean#7bd780is palette.darkGreen10.8AAA
number#7bd780is palette.darkGreen10.8AAA
type#8ee4b2is palette.cyan12.6AAA
attribute#f9c55cis palette.darkYellow = accents.a2012.0AAA
func#ddfa5fis palette.yellow = accents.a1016.3AAA
constructor#ddfa5fis palette.yellow = accents.a1016.3AAA
keyword#c3c8ffis palette.magenta11.8AAA
operator#c3c8ffis palette.magenta11.8AAA
punctuation#cfdadcis palette.lightGray = primaries.l1013.4AAA
comment#687273is palette.gray = primaries.m103.9Large
tag#ddfa5fis palette.yellow = accents.a1016.3AAA

Terminal

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

darkRed#ff93c19.3AAA
red#ffa9d210.8AAA
darkGreen#7bd78010.8AAA
green#96e49712.6AAA
darkYellow#f9c55cis accents.a2012.0AAA
yellow#ddfa5fis accents.a1016.3AAA
darkBlue#a7b4b6is primaries.m409.0AAA
blue#dae4e7is primaries.l2014.8AAA
darkMagenta#b2b8f610.1AAA
magenta#c3c8ff11.8AAA
darkCyan#7ad49f10.7AAA
cyan#8ee4b212.6AAA
black#282c2fis primaries.d401.4Low
gray#687273is primaries.m103.9Large
lightGray#cfdadcis primaries.l1013.4AAA
white#e3edf0is primaries.l3016.0AAA