1@layer reset, tokens, base, components, utilities;
2
3/* Palette: the neferbar "mono" theme, black and grays only.
4 Page surfaces follow the OS theme; the two bars stay black in both themes,
5 like neferbar under a light or a dark terminal. */
6@layer tokens {
7 :root {
8 color-scheme: light dark;
9
10 /* page */
11 --paper: light-dark(#f2f2f2, #000000);
12 --paper-alt: light-dark(#e8e8e8, #0c0c0c);
13 --row: light-dark(#dddddd, #1a1a1a);
14 --sel: light-dark(#cbcbcb, #303030);
15 --ink: light-dark(#161616, #d0d0d0);
16 --ink-hi: light-dark(#000000, #ffffff);
17 --ink-dim: light-dark(#4a4a4a, #9a9a9a);
18 --ink-mute: light-dark(#5c5c5c, #8a8a8a);
19 --rule: light-dark(#bcbcbc, #303030);
20 --focus: light-dark(#000000, #ffffff);
21
22 /* bars (neferbar mono.conf: background, foreground, color4 accent, color0 ink) */
23 --bar: #000000;
24 --bar-ink: #d0d0d0;
25 --bar-dim: #8a8a8a;
26 --accent: #c8c8c8;
27 --on-accent: #000000;
28 /* lib.sh fade(): four cells from the accent to the bar, each pulled halfway to the bar */
29 --fade-1: #505050;
30 --fade-2: #3c3c3c;
31 --fade-3: #282828;
32 --fade-4: #141414;
33
34 /* Colour, sparingly, from the owner's Despair theme: only code and diffs carry hue.
35 Dark values are Despair's own; light values are the same hues darkened to AA on --paper. */
36 --teal: light-dark(#2f6b6b, #7db5b5); /* Despair bright teal: keywords, additions */
37 --teal-2: light-dark(#355f5f, #5a8585); /* slate teal: types, numbers */
38 --red: light-dark(#a8404b, #d96c75); /* soft red: deletions */
39 --rose: light-dark(#6b6570, #a7a2a9); /* rose quartz: strings */
40
41 --syn-plain: var(--ink);
42 --syn-keyword: var(--teal);
43 --syn-string: var(--rose);
44 --syn-comment: light-dark(#5c5f63, #6a6e73);
45 --syn-number: var(--teal-2);
46 --syn-func: var(--ink-hi);
47 --syn-type: var(--teal-2);
48 --syn-punct: var(--ink-dim);
49
50 /* diff rows: the line keeps the normal ink; the hue is in a faint row tint and the marker */
51 --add: light-dark(#d8e5e5, #121919);
52 --del: light-dark(#eedadc, #231113);
53
54 /* one family (the neferbar font when installed), three sizes, two weights */
55 --font: "Adwaita Mono", "AdwaitaMono Nerd Font Mono", ui-monospace, "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
56 --fs: 14px;
57 --fs-code: 13px;
58 --fs-s: 12px;
59 --lh: 20px;
60 --lh-code: 18px;
61
62 --pad: 2ch;
63 --bar-h: 20px; /* one text line, like neferbar: no padding above or below */
64 --stick: var(--bar-h); /* top offset of sticky headers inside the content (0 in the app shell) */
65 --measure: 80ch;
66 --rail: 40ch;
67 }
68}