TR-1000 · light
Light
- 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
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.active
Active elements such as the cursor line or the active tab- value
- #babec6 · oklch(0.80 0.012 264)
- is
- primaries.l10
UI foregrounds
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.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.
variable6.3AA
property6.3AA
string3.4Large
constant6.3AA
module5.1AA
boolean3.8Large
number3.8Large
type3.8Large
attribute3.8Large
func3.7Large
constructor3.7Large
keyword3.9Large
operator3.8Large
punctuation6.3AA
comment4.1Large
tag3.7Large
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed3.9Large
red3.9Large
darkGreen3.4Large
green3.4Large
darkYellow3.8Large
yellow3.8Large
darkBlue5.1AA
blue6.3AA
darkMagenta3.8Large
magenta3.8Large
darkCyan3.7Large
cyan3.7Large
black7.4AAA
gray6.3AA
lightGray1.4Low
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 |