TR-1000 · dark

Dark

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

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.default
Default background
value
#1c1d21 · oklch(0.23 0.008 275)
is
primaries.d20
bg.panel
Sidebars and the status line
value
#131417 · oklch(0.19 0.006 271)
is
primaries.d10
bg.float
Floating windows and popups
value
#131417 · oklch(0.19 0.006 271)
is
primaries.d10
bg.active
Active elements such as the cursor line or the active tab
value
#27292d · oklch(0.28 0.008 264)
is
primaries.d30
bg.disabled
Disabled interactive elements
value
#626978 · oklch(0.52 0.025 266)
is
primaries.m10
bg.hover
Hover state of interactive elements
value
#27292d · oklch(0.28 0.008 264)
is
primaries.d30
bg.selection
Visual selection
value
#34353a · oklch(0.33 0.009 277)
is
primaries.d40
bg.search
Search matches
value
#34353a · oklch(0.33 0.009 277)
is
primaries.d40
bg.contrast
Inverted background
value
#dee1e8 · oklch(0.91 0.010 267)
is
primaries.l30
bg.negative
Errors
value
#4f3030 · oklch(0.35 0.046 20)
from
primaries.d20 + feedback.negative
bg.warn
Warnings
value
#483f2d · oklch(0.37 0.031 84)
from
primaries.d20 + feedback.warning
bg.info
Information
value
#304148 · oklch(0.36 0.025 225)
from
primaries.d20 + feedback.info
bg.hint
Hints
value
#3b3b4d · oklch(0.36 0.031 285)
from
primaries.d20 + palette.darkYellow
bg.positive
Success
value
#334333 · oklch(0.36 0.034 145)
from
primaries.d20 + feedback.success
bg.add
Added lines
value
#233323 · oklch(0.30 0.035 145)
from
primaries.d20 + feedback.success
bg.delete
Deleted lines
value
#3e2726 · oklch(0.30 0.035 22)
from
primaries.d20 + feedback.negative
bg.modify
Modified lines
value
#19323b · oklch(0.30 0.035 223)
from
primaries.d20 + feedback.info

UI foregrounds

fg.default12.9AAA
Default text
value
#dee1e8 · oklch(0.91 0.010 267)
is
primaries.l30
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.disabled4.8AA
Disabled text
value
#828999 · oklch(0.63 0.025 267)
is
primaries.m30
fg.contrast12.9AAA
Text on inverted backgrounds
value
#1c1d21 · oklch(0.23 0.008 275)
is
primaries.d20
fg.negative4.0Large
Error text
value
#fa676c · oklch(0.70 0.180 21)
is
feedback.negative
fg.warn5.5AA
Warning text
value
#e4b750 · oklch(0.80 0.130 85)
is
feedback.warning
fg.info5.1AA
Information text
value
#63bfe1 · oklch(0.76 0.100 225)
is
feedback.info
fg.hint4.8AA
Hint text
value
#a6a3f7 · oklch(0.75 0.120 285)
is
palette.darkYellow = accents.a30
fg.positive5.2AA
Success text
value
#79c77c · oklch(0.76 0.131 145)
is
feedback.success
fg.add6.5AA
Added marks
value
#79c77c · oklch(0.76 0.131 145)
is
feedback.success
fg.delete4.7AA
Deleted marks
value
#fa676c · oklch(0.70 0.180 21)
is
feedback.negative
fg.modify6.5AA
Modified marks
value
#63bfe1 · oklch(0.76 0.100 225)
is
feedback.info
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.

variable#ced1d8is palette.blue = primaries.l2011.0AAA
property#9198a8is palette.darkBlue = primaries.m405.8AA
string#95bd69is palette.green = accents.a407.8AAA
constant#ced1d8is primaries.l2011.0AAA
module#9198a8is palette.darkBlue = primaries.m405.8AA
boolean#a6a3f7is palette.magenta = accents.a307.4AAA
number#a6a3f7is palette.magenta = accents.a307.4AAA
type#a6a3f7is palette.magenta = accents.a307.4AAA
attribute#a6a3f7is palette.darkYellow = accents.a307.4AAA
func#8fadeeis palette.darkCyan = accents.a107.5AAA
constructor#8fadeeis palette.darkCyan = accents.a107.5AAA
keyword#f08e8eis palette.red = accents.a207.2AAA
operator#a6a3f7is palette.magenta = accents.a307.4AAA
punctuation#bbbec4is palette.lightGray = primaries.l109.0AAA
comment#626978is palette.gray = primaries.m103.1Large
tag#8fadeeis palette.darkCyan = accents.a107.5AAA

Terminal

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

darkRed#f08e8eis accents.a207.2AAA
red#f08e8eis accents.a207.2AAA
darkGreen#95bd69is accents.a407.8AAA
green#95bd69is accents.a407.8AAA
darkYellow#a6a3f7is accents.a307.4AAA
yellow#a6a3f7is accents.a307.4AAA
darkBlue#9198a8is primaries.m405.8AA
blue#ced1d8is primaries.l2011.0AAA
darkMagenta#a6a3f7is accents.a307.4AAA
magenta#a6a3f7is accents.a307.4AAA
darkCyan#8fadeeis accents.a107.5AAA
cyan#8fadeeis accents.a107.5AAA
black#34353ais primaries.d401.4Low
gray#626978is primaries.m103.1Large
lightGray#bbbec4is primaries.l109.0AAA
white#dee1e8is primaries.l3012.9AAA