Facility · dark
Dimmed Dark
- 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
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.active
Active elements such as the cursor line or the active tab- value
- #252a2c · oklch(0.28 0.008 224)
- is
- primaries.d30
UI foregrounds
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.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.positive4.1Large
Success text- value
- #96e497 · oklch(0.85 0.131 145)
- is
- feedback.success = palette.green
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.
variable11.4AAA
property7.7AAA
string10.8AAA
constant11.4AAA
module7.7AAA
boolean9.3AAA
number9.3AAA
type10.9AAA
attribute10.3AAA
func14.0AAA
constructor14.0AAA
keyword10.2AAA
operator10.2AAA
punctuation10.3AAA
comment3.3Large
tag14.0AAA
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed8.0AAA
red9.3AAA
darkGreen9.3AAA
green10.8AAA
darkYellow10.3AAA
yellow14.0AAA
darkBlue7.7AAA
blue11.4AAA
darkMagenta8.7AAA
magenta10.2AAA
darkCyan9.2AAA
cyan10.9AAA
black1.4Low
gray3.3Large
lightGray10.3AAA
white12.7AAA
··
Files
Generated for Dimmed 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 |