TR-1000 · light

Light

Definition ↗
Collection
TR-1000
2 themes
Appearance
light
also in dark
Status
release
in the catalog
Contrast
98%
8 AAA · 15 AA · 33 large · 1 low
Accent
#466cc8
a10

black-atom-tr-1000-light · black-atom.industries/black-atom/themes/tr-1000-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 tr-1000-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 · #15161ad20 · #202126d30 · #34353ad40 · #414247m10 · #474d5bm20 · #545b69m30 · #626978m40 · #8b92a2l10 · #babec6l20 · #c7cad3l30 · #dadee6l40 · #e7ebf4

Palette

black · #414247is primaries.d40
gray · #474d5bis primaries.m10
darkRed · #b9454cis accents.a20
red · #b9454cis accents.a20
darkGreen · #538200is accents.a40
green · #538200is accents.a40
darkYellow · #6b61c4is accents.a30
yellow · #6b61c4is accents.a30
darkBlue · #545b69is primaries.m20
blue · #474d5bis primaries.m10
darkMagenta · #6b61c4is accents.a30
magenta · #6b61c4is accents.a30
darkCyan · #466cc8is accents.a10
cyan · #466cc8is accents.a10
lightGray · #babec6is primaries.l10
white · #dadee6is primaries.l30

Accents

a10 · #466cc8a20 · #b9454ca30 · #6b61c4a40 · #538200

Feedback

negative · #b0072asuccess · #1a6323info · #005c83warning · #7b4d00
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
#dadee6 · oklch(0.90 0.012 265)
is
primaries.l30
bg.panel
Sidebars and the status line
value
#c7cad3 · oklch(0.84 0.013 271)
is
primaries.l20
bg.float
Floating windows and popups
value
#c7cad3 · oklch(0.84 0.013 271)
is
primaries.l20
bg.active
Active elements such as the cursor line or the active tab
value
#babec6 · oklch(0.80 0.012 264)
is
primaries.l10
bg.disabled
Disabled interactive elements
value
#8b92a2 · oklch(0.66 0.025 267)
is
primaries.m40
bg.hover
Hover state of interactive elements
value
#babec6 · oklch(0.80 0.012 264)
is
primaries.l10
bg.selection
Visual selection
value
#babec6 · oklch(0.80 0.012 264)
is
primaries.l10
bg.search
Search matches
value
#babec6 · oklch(0.80 0.012 264)
is
primaries.l10
bg.contrast
Inverted background
value
#202126 · oklch(0.25 0.010 277)
is
primaries.d20
bg.negative
Errors
value
#dcc3c2 · oklch(0.84 0.028 20)
from
primaries.l30 + feedback.negative
bg.warn
Warnings
value
#cfc7bf · oklch(0.83 0.014 68)
from
primaries.l30 + feedback.warning
bg.info
Information
value
#c0cad1 · oklch(0.83 0.015 238)
from
primaries.l30 + feedback.info
bg.hint
Hints
value
#cbcbdc · oklch(0.85 0.023 286)
from
primaries.l30 + palette.darkYellow
bg.positive
Success
value
#c1cbc1 · oklch(0.83 0.018 145)
from
primaries.l30 + feedback.success
bg.add
Added lines
value
#c3d7c3 · oklch(0.86 0.035 145)
from
primaries.l30 + feedback.success
bg.delete
Deleted lines
value
#e7c8c7 · oklch(0.86 0.035 20)
from
primaries.l30 + feedback.negative
bg.modify
Modified lines
value
#bcd5e5 · oklch(0.86 0.035 236)
from
primaries.l30 + feedback.info

UI foregrounds

fg.default11.9AAA
Default text
value
#202126 · oklch(0.25 0.010 277)
is
primaries.d20
fg.subtle4.1Large
Secondary text such as line numbers
value
#626978 · oklch(0.52 0.025 266)
is
primaries.m30
fg.accent3.7Large
Links and text that needs to stand out
value
#466cc8 · oklch(0.55 0.149 265)
is
accents.a10
fg.disabled2.3Low
Disabled text
value
#8b92a2 · oklch(0.66 0.025 267)
is
primaries.m40
fg.contrast11.9AAA
Text on inverted backgrounds
value
#dadee6 · oklch(0.90 0.012 265)
is
primaries.l30
fg.negative4.3Large
Error text
value
#b0072a · oklch(0.48 0.190 21)
is
feedback.negative
fg.warn4.3Large
Warning text
value
#7b4d00 · oklch(0.46 0.100 71)
is
feedback.warning
fg.info4.4Large
Information text
value
#005c83 · oklch(0.45 0.097 236)
is
feedback.info
fg.hint3.2Large
Hint text
value
#6b61c4 · oklch(0.55 0.149 285)
is
palette.darkYellow = accents.a30
fg.positive4.4Large
Success text
value
#1a6323 · oklch(0.44 0.121 145)
is
feedback.success
fg.add4.8AA
Added marks
value
#1a6323 · oklch(0.44 0.121 145)
is
feedback.success
fg.delete4.6AA
Deleted marks
value
#b0072a · oklch(0.48 0.190 21)
is
feedback.negative
fg.modify4.8AA
Modified marks
value
#005c83 · oklch(0.45 0.097 236)
is
feedback.info
fg.border2.3Line
Idle borders, separators and guide lines
value
#8b92a2 · oklch(0.66 0.025 267)
is
primaries.m40

Syntax

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

variable#474d5bis primaries.m106.3AA
property#474d5bis primaries.m106.3AA
string#538200is palette.green = accents.a403.4Large
constant#474d5bis palette.gray = primaries.m106.3AA
module#545b69is palette.darkBlue = primaries.m205.1AA
boolean#6b61c4is palette.magenta = accents.a303.8Large
number#6b61c4is palette.magenta = accents.a303.8Large
type#6b61c4is palette.magenta = accents.a303.8Large
attribute#6b61c4is palette.darkYellow = accents.a303.8Large
func#466cc8is palette.darkCyan = accents.a103.7Large
constructor#466cc8is palette.darkCyan = accents.a103.7Large
keyword#b9454cis palette.red = accents.a203.9Large
operator#6b61c4is palette.magenta = accents.a303.8Large
punctuation#474d5bis palette.gray = primaries.m106.3AA
comment#626978is primaries.m304.1Large
tag#466cc8is palette.darkCyan = accents.a103.7Large

Terminal

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

darkRed#b9454cis accents.a203.9Large
red#b9454cis accents.a203.9Large
darkGreen#538200is accents.a403.4Large
green#538200is accents.a403.4Large
darkYellow#6b61c4is accents.a303.8Large
yellow#6b61c4is accents.a303.8Large
darkBlue#545b69is primaries.m205.1AA
blue#474d5bis primaries.m106.3AA
darkMagenta#6b61c4is accents.a303.8Large
magenta#6b61c4is accents.a303.8Large
darkCyan#466cc8is accents.a103.7Large
cyan#466cc8is accents.a103.7Large
black#414247is primaries.d407.4AAA
gray#474d5bis primaries.m106.3AA
lightGray#babec6is primaries.l101.4Low
white#dadee6is primaries.l301.0Low