Facility · light
Dimmed Light
- Collection
- Facility
- 4 themes
- Appearance
- light
- also in dark
- Status
- release
- in the catalog
- Contrast
- 89%
- 8 AAA · 29 AA · 14 large · 6 low
- Accent
- #b2cd0d
- a10
black-atom-facility-dimmed-light · black-atom.industries/black-atom/themes/facility-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 facility-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
Primaries
d10 · #242729d20 · #222426d30 · #434749d40 · #4e5355m10 · #475253m20 · #546062m30 · #4b5b5dm40 · #8e9b9dl10 · #d0d9dcl20 · #dfeaedl30 · #e8f0f2l40 · #f4fcfe
Palette
black · #4e5355is primaries.d40
gray · #475253is primaries.m10
darkRed · #ac2857
red · #bb316b
darkGreen · #026c10
green · #097916
darkYellow · #a47800is accents.a20
yellow · #788b00
darkBlue · #546062is primaries.m20
blue · #475253is primaries.m10
darkMagenta · #5e4aab
magenta · #6a57b3
darkCyan · #007034
cyan · #008239
lightGray · #d0d9dcis primaries.l10
white · #e8f0f2is primaries.l30
Accents
a10 · #b2cd0da20 · #a47800
Feedback
negative · #bb316bis palette.redsuccess · #097916is palette.greeninfo · #475253is palette.blue = primaries.m10warning · #788b00is palette.yellow
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
- #d0d9dc · oklch(0.88 0.011 220)
- is
- primaries.l10
UI foregrounds
fg.subtle6.2AA
Secondary text such as line numbers- value
- #4b5b5d · oklch(0.46 0.020 206)
- is
- primaries.m30
fg.accent1.6Low
Links and text that needs to stand out- value
- #b2cd0d · oklch(0.80 0.186 119)
- is
- accents.a10
fg.info5.5AA
Information text- value
- #475253 · oklch(0.43 0.014 203)
- is
- feedback.info = palette.blue = primaries.m10
fg.positive4.0Large
Success text- value
- #097916 · oklch(0.50 0.161 144)
- is
- feedback.success = palette.green
fg.modify6.2AA
Modified marks- value
- #475253 · oklch(0.43 0.014 203)
- is
- feedback.info = palette.blue = primaries.m10
fg.border2.5Line
Idle borders, separators and guide lines- value
- #8e9b9d · oklch(0.68 0.015 208)
- is
- primaries.m40
Syntax
Comments are dim on purpose, so they sit lower than the rest of the code.
variable7.0AA
property7.0AA
string4.8AA
constant7.0AA
module5.6AA
boolean5.8AA
number5.8AA
type4.3Large
attribute3.5Large
func3.3Large
constructor3.3Large
keyword5.0AA
operator5.0AA
punctuation7.0AA
comment6.2AA
tag3.3Large
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed5.7AA
red4.8AA
darkGreen5.8AA
green4.8AA
darkYellow3.5Large
yellow3.3Large
darkBlue5.6AA
blue7.0AA
darkMagenta6.0AA
magenta5.0AA
darkCyan5.4AA
cyan4.3Large
black6.8AA
gray7.0AA
lightGray1.2Low
white1.0Low
··
Files
Generated for Dimmed Light| 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 |