Facility · light

Dimmed Light

Definition ↗
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
1:zsh2:nvim3:lazygit

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.default
Default background
value
#e8f0f2 · oklch(0.95 0.009 214)
is
primaries.l30
bg.panel
Sidebars and the status line
value
#dfeaed · oklch(0.93 0.012 216)
is
primaries.l20
bg.float
Floating windows and popups
value
#dfeaed · oklch(0.93 0.012 216)
is
primaries.l20
bg.active
Active elements such as the cursor line or the active tab
value
#d0d9dc · oklch(0.88 0.011 220)
is
primaries.l10
bg.disabled
Disabled interactive elements
value
#8e9b9d · oklch(0.68 0.015 208)
is
primaries.m40
bg.hover
Hover state of interactive elements
value
#d0d9dc · oklch(0.88 0.011 220)
is
primaries.l10
bg.selection
Visual selection
value
#d0d9dc · oklch(0.88 0.011 220)
is
primaries.l10
bg.search
Search matches
value
#d0d9dc · oklch(0.88 0.011 220)
is
primaries.l10
bg.contrast
Inverted background
value
#222426 · oklch(0.26 0.005 248)
is
primaries.d20
bg.negative
Errors
value
#ead3d9 · oklch(0.89 0.027 360)
from
primaries.l30 + feedback.negative
bg.warn
Warnings
value
#dbdfd0 · oklch(0.90 0.021 119)
from
primaries.l30 + feedback.warning
bg.info
Information
value
#d3d5d5 · oklch(0.87 0.002 197)
from
primaries.l30 + feedback.info
bg.hint
Hints
value
#e3dcd0 · oklch(0.90 0.018 81)
from
primaries.l30 + palette.darkYellow
bg.positive
Success
value
#cfddce · oklch(0.88 0.025 143)
from
primaries.l30 + feedback.success
bg.add
Added lines
value
#d4e8d3 · oklch(0.91 0.035 144)
from
primaries.l30 + feedback.success
bg.delete
Deleted lines
value
#f6d8e0 · oklch(0.91 0.035 360)
from
primaries.l30 + feedback.negative
bg.modify
Modified lines
value
#d7e4e5 · oklch(0.91 0.014 202)
from
primaries.l30 + feedback.info

UI foregrounds

fg.default13.5AAA
Default text
value
#222426 · oklch(0.26 0.005 248)
is
primaries.d20
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.disabled2.5Low
Disabled text
value
#8e9b9d · oklch(0.68 0.015 208)
is
primaries.m40
fg.contrast13.5AAA
Text on inverted backgrounds
value
#e8f0f2 · oklch(0.95 0.009 214)
is
primaries.l30
fg.negative3.9Large
Error text
value
#bb316b · oklch(0.54 0.180 360)
is
feedback.negative = palette.red
fg.warn2.8Low
Warning text
value
#788b00 · oklch(0.60 0.141 119)
is
feedback.warning = palette.yellow
fg.info5.5AA
Information text
value
#475253 · oklch(0.43 0.014 203)
is
feedback.info = palette.blue = primaries.m10
fg.hint2.9Low
Hint text
value
#a47800 · oklch(0.60 0.124 83)
is
palette.darkYellow = accents.a20
fg.positive4.0Large
Success text
value
#097916 · oklch(0.50 0.161 144)
is
feedback.success = palette.green
fg.add4.3Large
Added marks
value
#097916 · oklch(0.50 0.161 144)
is
feedback.success = palette.green
fg.delete4.2Large
Deleted marks
value
#bb316b · oklch(0.54 0.180 360)
is
feedback.negative = palette.red
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.

variable#475253is primaries.m107.0AA
property#475253is primaries.m107.0AA
string#097916is palette.green4.8AA
constant#475253is palette.gray = primaries.m107.0AA
module#546062is palette.darkBlue = primaries.m205.6AA
boolean#026c10is palette.darkGreen5.8AA
number#026c10is palette.darkGreen5.8AA
type#008239is palette.cyan4.3Large
attribute#a47800is palette.darkYellow = accents.a203.5Large
func#788b00is palette.yellow3.3Large
constructor#788b00is palette.yellow3.3Large
keyword#6a57b3is palette.magenta5.0AA
operator#6a57b3is palette.magenta5.0AA
punctuation#475253is palette.gray = primaries.m107.0AA
comment#4b5b5dis primaries.m306.2AA
tag#788b00is palette.yellow3.3Large

Terminal

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

darkRed#ac28575.7AA
red#bb316b4.8AA
darkGreen#026c105.8AA
green#0979164.8AA
darkYellow#a47800is accents.a203.5Large
yellow#788b003.3Large
darkBlue#546062is primaries.m205.6AA
blue#475253is primaries.m107.0AA
darkMagenta#5e4aab6.0AA
magenta#6a57b35.0AA
darkCyan#0070345.4AA
cyan#0082394.3Large
black#4e5355is primaries.d406.8AA
gray#475253is primaries.m107.0AA
lightGray#d0d9dcis primaries.l101.2Low
white#e8f0f2is primaries.l301.0Low