TR-1000 · dark
Dark
- Collection
- TR-1000
- 2 themes
- Appearance
- dark
- also in light
- Status
- release
- in the catalog
- Contrast
- 100%
- 39 AAA · 15 AA · 3 large · 0 low
- Accent
- #8fadee
- a10
black-atom-tr-1000-dark · black-atom.industries/black-atom/themes/tr-1000-dark
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-dark
✓ ghostty ✓ tmux ✓ nvim ! zed not running
error obsidian: vault not found
info 4 of 5 tools on Dark
❯ 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 · #131417d20 · #1c1d21d30 · #27292dd40 · #34353am10 · #626978m20 · #717787m30 · #828999m40 · #9198a8l10 · #bbbec4l20 · #ced1d8l30 · #dee1e8l40 · #eff2f9
Palette
black · #34353ais primaries.d40
gray · #626978is primaries.m10
darkRed · #f08e8eis accents.a20
red · #f08e8eis accents.a20
darkGreen · #95bd69is accents.a40
green · #95bd69is accents.a40
darkYellow · #a6a3f7is accents.a30
yellow · #a6a3f7is accents.a30
darkBlue · #9198a8is primaries.m40
blue · #ced1d8is primaries.l20
darkMagenta · #a6a3f7is accents.a30
magenta · #a6a3f7is accents.a30
darkCyan · #8fadeeis accents.a10
cyan · #8fadeeis accents.a10
lightGray · #bbbec4is primaries.l10
white · #dee1e8is primaries.l30
Accents
a10 · #8fadeea20 · #f08e8ea30 · #a6a3f7a40 · #95bd69
Feedback
negative · #fa676csuccess · #79c77cinfo · #63bfe1warning · #e4b750
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
- #27292d · oklch(0.28 0.008 264)
- is
- primaries.d30
UI foregrounds
fg.subtle5.8AA
Secondary text such as line numbers- value
- #9198a8 · oklch(0.68 0.025 267)
- is
- primaries.m40
fg.accent7.5AAA
Links and text that needs to stand out- value
- #8fadee · oklch(0.75 0.100 265)
- is
- accents.a10
fg.border2.1Line
Idle borders, separators and guide lines- value
- #4c515b · oklch(0.43 0.018 264)
- from
- primaries.d20 + primaries.m10
Syntax
Comments are dim on purpose, so they sit lower than the rest of the code.
variable11.0AAA
property5.8AA
string7.8AAA
constant11.0AAA
module5.8AA
boolean7.4AAA
number7.4AAA
type7.4AAA
attribute7.4AAA
func7.5AAA
constructor7.5AAA
keyword7.2AAA
operator7.4AAA
punctuation9.0AAA
comment3.1Large
tag7.5AAA
Terminal
Gray is the terminal's dim text, the counterpart of comments.
darkRed7.2AAA
red7.2AAA
darkGreen7.8AAA
green7.8AAA
darkYellow7.4AAA
yellow7.4AAA
darkBlue5.8AA
blue11.0AAA
darkMagenta7.4AAA
magenta7.4AAA
darkCyan7.5AAA
cyan7.5AAA
black1.4Low
gray3.1Large
lightGray9.0AAA
white12.9AAA
··
Files
Generated for Dark| 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 |