Facility · light

Light

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

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.default
Default background
value
#f2fafd · oklch(0.98 0.009 222)
is
primaries.l30
bg.panel
Sidebars and the status line
value
#edf7fa · oklch(0.97 0.011 218)
is
primaries.l20
bg.float
Floating windows and popups
value
#edf7fa · oklch(0.97 0.011 218)
is
primaries.l20
bg.active
Active elements such as the cursor line or the active tab
value
#dfe9eb · oklch(0.93 0.011 211)
is
primaries.l10
bg.disabled
Disabled interactive elements
value
#a5b2b3 · oklch(0.75 0.015 202)
is
primaries.m40
bg.hover
Hover state of interactive elements
value
#dfe9eb · oklch(0.93 0.011 211)
is
primaries.l10
bg.selection
Visual selection
value
#dfe9eb · oklch(0.93 0.011 211)
is
primaries.l10
bg.search
Search matches
value
#dfe9eb · oklch(0.93 0.011 211)
is
primaries.l10
bg.contrast
Inverted background
value
#222426 · oklch(0.26 0.005 248)
is
primaries.d20
bg.negative
Errors
value
#f3dbe2 · oklch(0.91 0.028 358)
from
primaries.l30 + feedback.negative
bg.warn
Warnings
value
#e5ead9 · oklch(0.93 0.023 120)
from
primaries.l30 + feedback.warning
bg.info
Information
value
#dddfdf · oklch(0.90 0.002 197)
from
primaries.l30 + feedback.info
bg.hint
Hints
value
#eee7d9 · oklch(0.93 0.020 85)
from
primaries.l30 + palette.darkYellow
bg.positive
Success
value
#d7e5d7 · oklch(0.91 0.024 145)
from
primaries.l30 + feedback.success
bg.add
Added lines
value
#def2dd · oklch(0.94 0.035 144)
from
primaries.l30 + feedback.success
bg.delete
Deleted lines
value
#ffe3ea · oklch(0.94 0.032 1)
from
primaries.l30 + feedback.negative
bg.modify
Modified lines
value
#e1eeef · oklch(0.94 0.014 202)
from
primaries.l30 + feedback.info

UI foregrounds

fg.default14.7AAA
Default text
value
#222426 · oklch(0.26 0.005 248)
is
primaries.d20
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.disabled2.1Low
Disabled text
value
#a5b2b3 · oklch(0.75 0.015 202)
is
primaries.m40
fg.contrast14.7AAA
Text on inverted backgrounds
value
#f2fafd · oklch(0.98 0.009 222)
is
primaries.l30
fg.negative4.3Large
Error text
value
#bb316b · oklch(0.54 0.180 360)
is
feedback.negative = palette.red
fg.warn2.6Low
Warning text
value
#839800 · oklch(0.64 0.151 119)
is
feedback.warning = palette.yellow
fg.info5.1AA
Information text
value
#525d5e · oklch(0.47 0.014 203)
is
feedback.info = palette.blue = primaries.m10
fg.hint2.7Low
Hint text
value
#b78600 · oklch(0.65 0.134 83)
is
palette.darkYellow = accents.a20
fg.positive4.3Large
Success text
value
#097916 · oklch(0.50 0.161 144)
is
feedback.success = palette.green
fg.add4.7AA
Added marks
value
#097916 · oklch(0.50 0.161 144)
is
feedback.success = palette.green
fg.delete4.6AA
Deleted marks
value
#bb316b · oklch(0.54 0.180 360)
is
feedback.negative = palette.red
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.

variable#525d5eis primaries.m106.4AA
property#525d5eis primaries.m106.4AA
string#097916is palette.green5.3AA
constant#525d5eis palette.gray = primaries.m106.4AA
module#5f6c6dis palette.darkBlue = primaries.m205.2AA
boolean#026c10is palette.darkGreen6.3AA
number#026c10is palette.darkGreen6.3AA
type#008239is palette.cyan4.7AA
attribute#b78600is palette.darkYellow = accents.a203.1Large
func#839800is palette.yellow3.1Large
constructor#839800is palette.yellow3.1Large
keyword#6a57b3is palette.magenta5.5AA
operator#6a57b3is palette.magenta5.5AA
punctuation#525d5eis palette.gray = primaries.m106.4AA
comment#566769is primaries.m305.6AA
tag#839800is palette.yellow3.1Large

Terminal

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

darkRed#ac28576.2AA
red#bb316b5.3AA
darkGreen#026c106.3AA
green#0979165.3AA
darkYellow#b78600is accents.a203.1Large
yellow#8398003.1Large
darkBlue#5f6c6dis primaries.m205.2AA
blue#525d5eis primaries.m106.4AA
darkMagenta#5e4aab6.5AA
magenta#6a57b35.5AA
darkCyan#0070345.9AA
cyan#0082394.7AA
black#4e5355is primaries.d407.4AAA
gray#525d5eis primaries.m106.4AA
lightGray#dfe9ebis primaries.l101.2Low
white#f2fafdis primaries.l301.0Low