Default · light

Light

Definition ↗
Collection
Default
4 themes
Appearance
light
also in dark
Status
release
in the catalog
Contrast
96%
19 AAA · 9 AA · 27 large · 2 low
Accent
#009044
a10

black-atom-default-light · black-atom.industries/black-atom/themes/default-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 default-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 · #03060ad20 · #0e1217d30 · #1b2025d40 · #292e34m10 · #43484em20 · #53595fm30 · #646a70m40 · #757b81l10 · #a8afb5l20 · #e7eef5l30 · #eff6fdl40 · #f6fdff

Palette

black · #0e1217is primaries.d20
gray · #43484eis primaries.m10
darkRed · #a12f2f
red · #bc4945
darkGreen · #008c11is accents.a20
green · #009044is accents.a10
darkYellow · #835300
yellow · #9c6a00
darkBlue · #2a54cafrom accents.a30
blue · #3f6de5is accents.a30
darkMagenta · #bd0053from accents.a40
magenta · #da1d69is accents.a40
darkCyan · #007078
cyan · #008890
lightGray · #757b81is primaries.m40
white · #a8afb5is primaries.l10

Accents

a10 · #009044a20 · #008c11a30 · #3f6de5a40 · #da1d69

Feedback

negative · #c23870success · #008c11info · #00848bwarning · #d07600
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
#eff6fd · oklch(0.97 0.012 248)
is
primaries.l30
bg.panel
Sidebars and the status line
value
#e7eef5 · oklch(0.95 0.012 248)
is
primaries.l20
bg.float
Floating windows and popups
value
#e7eef5 · oklch(0.95 0.012 248)
is
primaries.l20
bg.active
Active elements such as the cursor line or the active tab
value
#e2e9f0 · oklch(0.93 0.012 248)
from
primaries.l30
bg.disabled
Disabled interactive elements
value
#a8afb5 · oklch(0.75 0.012 244)
is
primaries.l10
bg.hover
Hover state of interactive elements
value
#a8afb5 · oklch(0.75 0.012 244)
is
primaries.l10
bg.selection
Visual selection
value
#a8afb5 · oklch(0.75 0.012 244)
is
primaries.l10
bg.search
Search matches
value
#a8afb5 · oklch(0.75 0.012 244)
is
primaries.l10
bg.contrast
Inverted background
value
#292e34 · oklch(0.30 0.013 253)
is
primaries.d40
bg.negative
Errors
value
#f6dfe5 · oklch(0.92 0.026 360)
from
primaries.l40 + feedback.negative
bg.info
Information
value
#dbe9ea · oklch(0.92 0.015 202)
from
primaries.l40 + feedback.info
bg.hint
Hints
value
#f6e7dc · oklch(0.94 0.022 59)
from
primaries.l40 + feedback.warning
bg.warn
Warnings
value
#f6e7dc · oklch(0.94 0.022 59)
from
primaries.l40 + feedback.warning
bg.positive
Success
value
#dbebda · oklch(0.92 0.028 144)
from
primaries.l40 + feedback.success
bg.add
Added lines
value
#dbeed9 · oklch(0.93 0.034 143)
from
primaries.l30 + feedback.success
bg.delete
Deleted lines
value
#fddfe7 · oklch(0.93 0.035 360)
from
primaries.l30 + feedback.negative
bg.modify
Modified lines
value
#ceeff2 · oklch(0.93 0.035 203)
from
primaries.l30 + feedback.info

UI foregrounds

fg.default17.2AAA
Default text
value
#0e1217 · oklch(0.18 0.012 254)
is
primaries.d20
fg.subtle8.5AAA
Secondary text such as line numbers
value
#43484e · oklch(0.40 0.012 253)
is
primaries.m10
fg.accent3.8Large
Links and text that needs to stand out
value
#009044 · oklch(0.57 0.154 151)
is
accents.a10
fg.disabled5.0AA
Disabled text
value
#646a70 · oklch(0.52 0.012 248)
is
primaries.m30
fg.contrast11.7AAA
Text on inverted backgrounds
value
#e7eef5 · oklch(0.95 0.012 248)
is
primaries.l20
fg.negative4.1Large
Error text
value
#c23870 · oklch(0.56 0.180 0)
is
feedback.negative
fg.warn2.8Low
Warning text
value
#d07600 · oklch(0.65 0.151 61)
is
feedback.warning
fg.info3.6Large
Information text
value
#00848b · oklch(0.56 0.095 201)
is
feedback.info
fg.hint2.8Low
Hint text
value
#d07600 · oklch(0.65 0.151 61)
is
feedback.warning
fg.positive3.6Large
Success text
value
#008c11 · oklch(0.56 0.184 143)
is
feedback.success
fg.add3.6Large
Added marks
value
#008c11 · oklch(0.56 0.184 143)
is
feedback.success
fg.delete4.1Large
Deleted marks
value
#c23870 · oklch(0.56 0.180 0)
is
feedback.negative
fg.modify3.7Large
Modified marks
value
#00848b · oklch(0.56 0.095 201)
is
feedback.info
fg.border2.1Line
Idle borders, separators and guide lines
value
#a6aaae · oklch(0.74 0.007 248)
from
primaries.m40 + primaries.l30

Syntax

Comments are dim on purpose, so they sit lower than the rest of the code.

variable#292e34is primaries.d4012.6AAA
property#53595fis primaries.m206.5AA
string#008c11is accents.a204.0Large
constant#292e34is primaries.d4012.6AAA
module#1b2025is primaries.d3015.1AAA
boolean#008c11is accents.a204.0Large
number#008c11is accents.a204.0Large
type#009044is accents.a103.8Large
attribute#009044is accents.a103.8Large
func#1b2025is primaries.d3015.1AAA
constructor#1b2025is primaries.d3015.1AAA
keyword#3f6de5is accents.a304.3Large
operator#1b2025is primaries.d3015.1AAA
punctuation#292e34is primaries.d4012.6AAA
comment#757b81is primaries.m403.9Large
tag#009044is accents.a103.8Large

Terminal

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

black#0e1217is primaries.d2017.2AAA
gray#43484eis primaries.m108.5AAA
darkRed#a12f2f6.5AA
red#bc49454.6AA
darkYellow#8353006.0AA
yellow#9c6a004.3Large
darkGreen#008c11is accents.a204.0Large
green#009044is accents.a103.8Large
darkCyan#0070785.4AA
cyan#0088903.9Large
darkBlue#2a54cafrom accents.a306.0AA
blue#3f6de5is accents.a304.3Large
darkMagenta#bd0053from accents.a405.9AA
magenta#da1d69is accents.a404.4Large
lightGray#757b81is primaries.m403.9Large
white#a8afb5is primaries.l102.0Low