Facility · dark
Dark
- 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
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.active
Active elements such as the cursor line or the active tab- value
- #1a1e20 · oklch(0.23 0.007 229)
- is
- primaries.d30
UI foregrounds
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.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.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.
variable14.8AAA
property9.0AAA
string12.6AAA
constant14.8AAA
module9.0AAA
boolean10.8AAA
number10.8AAA
type12.6AAA
attribute12.0AAA
func16.3AAA
constructor16.3AAA
keyword11.8AAA
operator11.8AAA
punctuation13.4AAA
comment3.9Large
tag16.3AAA
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed9.3AAA
red10.8AAA
darkGreen10.8AAA
green12.6AAA
darkYellow12.0AAA
yellow16.3AAA
darkBlue9.0AAA
blue14.8AAA
darkMagenta10.1AAA
magenta11.8AAA
darkCyan10.7AAA
cyan12.6AAA
black1.4Low
gray3.9Large
lightGray13.4AAA
white16.0AAA
··
Files
Generated for Dark| Tool | File | Livery |
|---|---|---|
| ghostty | switches | |
| wezterm | by hand | |
| tmux | switches | |
| herdr | switches | |
| nvim | switches | |
| zed | switches | |
| obsidian | switches | |
| lazygit | switches | |
| delta | switches | |
| tuicr | switches | |
| claude-code | switches | |
| kagi | by hand | |
| niri | by hand | |
| waybar | by hand |