Facility · light
Light
- Collection
- Facility
- 4 themes
- Appearance
- light
- also in dark
- Status
- release
- in the catalog
- Contrast
- 89%
- 8 AAA · 33 AA · 10 large · 6 low
- Accent
- #b2cd0d
- a10
black-atom-facility-light · black-atom.industries/black-atom/themes/facility-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-light
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on 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 · #202224d20 · #222426d30 · #434749d40 · #4e5355m10 · #525d5em20 · #5f6c6dm30 · #566769m40 · #a5b2b3l10 · #dfe9ebl20 · #edf7fal30 · #f2fafdl40 · #ffffff
Palette
black · #4e5355is primaries.d40
gray · #525d5eis primaries.m10
darkRed · #ac2857
red · #bb316b
darkGreen · #026c10
green · #097916
darkYellow · #b78600is accents.a20
yellow · #839800
darkBlue · #5f6c6dis primaries.m20
blue · #525d5eis primaries.m10
darkMagenta · #5e4aab
magenta · #6a57b3
darkCyan · #007034
cyan · #008239
lightGray · #dfe9ebis primaries.l10
white · #f2fafdis primaries.l30
Accents
a10 · #b2cd0da20 · #b78600
Feedback
negative · #bb316bis palette.redsuccess · #097916is palette.greeninfo · #525d5eis palette.blue = primaries.m10warning · #839800is 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
- #dfe9eb · oklch(0.93 0.011 211)
- is
- primaries.l10
UI foregrounds
fg.subtle5.6AA
Secondary text such as line numbers- value
- #566769 · oklch(0.50 0.021 205)
- is
- primaries.m30
fg.accent1.7Low
Links and text that needs to stand out- value
- #b2cd0d · oklch(0.80 0.186 119)
- is
- accents.a10
fg.info5.1AA
Information text- value
- #525d5e · oklch(0.47 0.014 203)
- is
- feedback.info = palette.blue = primaries.m10
fg.positive4.3Large
Success text- value
- #097916 · oklch(0.50 0.161 144)
- is
- feedback.success = palette.green
fg.modify5.7AA
Modified marks- value
- #525d5e · oklch(0.47 0.014 203)
- is
- feedback.info = palette.blue = primaries.m10
fg.border2.1Line
Idle borders, separators and guide lines- value
- #a5b2b3 · oklch(0.75 0.015 202)
- is
- primaries.m40
Syntax
Comments are dim on purpose, so they sit lower than the rest of the code.
variable6.4AA
property6.4AA
string5.3AA
constant6.4AA
module5.2AA
boolean6.3AA
number6.3AA
type4.7AA
attribute3.1Large
func3.1Large
constructor3.1Large
keyword5.5AA
operator5.5AA
punctuation6.4AA
comment5.6AA
tag3.1Large
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed6.2AA
red5.3AA
darkGreen6.3AA
green5.3AA
darkYellow3.1Large
yellow3.1Large
darkBlue5.2AA
blue6.4AA
darkMagenta6.5AA
magenta5.5AA
darkCyan5.9AA
cyan4.7AA
black7.4AAA
gray6.4AA
lightGray1.2Low
white1.0Low
··
Files
Generated for 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 |