@buoy-gg/time-machine 7.0.29 → 7.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/ui/tmTheme.ts DELETED
@@ -1,109 +0,0 @@
1
- /**
2
- * Time Machine design tokens — the "modern" surface language.
3
- *
4
- * A grouped-inset list system (iOS Settings shape): one dark sheet, rounded
5
- * grouped cards holding hairline-separated rows, uppercase section labels
6
- * outside the cards, and explanatory footnotes under them.
7
- *
8
- * COLOR COMES FROM the shared `night` palette (ui/night/nightTheme.ts) — not
9
- * from a private set — so the tool reads as part of the same product as every
10
- * other one. Change a value in nightTheme.ts and it lands here.
11
- *
12
- * Only shape, spacing and type live as literals below — those ARE the design
13
- * language and have no palette equivalent.
14
- *
15
- * SCOPE: this is Time Machine's pilot of the new look. If it lands, promote
16
- * this file (and ./primitives) into @buoy-gg/shared-ui and let the other
17
- * tools import it — nothing in here is Time-Machine-specific.
18
- *
19
- * Note: like every StyleSheet in the repo, these values are read once at
20
- * module load, so the desktop dashboard's in-place re-tint needs a reload to
21
- * reach them.
22
- */
23
- import { night } from "@buoy-gg/shared-ui";
24
-
25
- /** Hex opacity suffixes, so tinted fills stay tied to the palette color. */
26
- const A18 = "2E";
27
- const A30 = "4D";
28
-
29
- export const tm = {
30
- color: {
31
- /**
32
- * Backing for the sticky footer (its only consumer) — night glass, same
33
- * treatment as the shared stepper footer, so the star field hints through
34
- * without the list reading through the CTA.
35
- */
36
- sheet: "rgba(5, 5, 5, 0.92)",
37
- /** A grouped card. */
38
- group: night.color.surface,
39
- /** Row press / hover wash on top of a group. */
40
- rowPressed: night.color.surfaceElevated,
41
- /** Hairline between rows, inset from the left like iOS. */
42
- separator: night.color.separator,
43
- /** Neutral control fill (icon discs, chips, round buttons). */
44
- fill: night.color.surfaceElevated,
45
- fillStrong: night.color.fillTertiary,
46
-
47
- label: night.color.text,
48
- labelSecondary: night.color.textSecondary,
49
- labelTertiary: night.color.textTertiary,
50
-
51
- /** Primary action + "this is healthy" (the night brand green). */
52
- accent: night.color.accent,
53
- accentSoft: `${night.color.accent}${A18}`,
54
- accentSoftStrong: `${night.color.accent}${A30}`,
55
- /** Text/icons ON an accent fill — the brand green wants dark ink. */
56
- onAccent: "#0A0A0A",
57
-
58
- warning: night.color.warning,
59
- warningSoft: `${night.color.warning}${A18}`,
60
-
61
- danger: night.color.danger,
62
- dangerSoft: `${night.color.danger}${A18}`,
63
- /** Text/icons ON a danger fill. */
64
- onDanger: "#FFFFFF",
65
-
66
- info: night.color.info,
67
- },
68
-
69
- radius: {
70
- /** Grouped card + the capture field that visually matches one. */
71
- group: 14,
72
- /** Fully rounded pills and status circles. */
73
- pill: 99,
74
- },
75
-
76
- /** Horizontal inset of the grouped cards from the sheet edge. */
77
- gutter: 14,
78
- /** Extra inset for labels/footnotes, measured from the card edge. */
79
- textInset: 16,
80
- /** Left inset of a row separator, measured from the card edge. */
81
- separatorInset: 16,
82
-
83
- font: {
84
- /** Row titles and primary values. */
85
- row: 17,
86
- /** Buttons and pill labels. */
87
- control: 15,
88
- /** Section labels, row captions, footnotes. */
89
- footnote: 13,
90
- /** Route paths and other monospace detail. */
91
- mono: 12,
92
- },
93
-
94
- /** iOS tracks display text slightly tighter than the default. */
95
- tracking: {
96
- row: -0.43,
97
- control: -0.2,
98
- },
99
-
100
- /** Standard grouped-row height before content forces it taller. */
101
- rowMinHeight: 52,
102
- } as const;
103
-
104
- /**
105
- * Monospace family. RN native resolves a single family name only (no CSS
106
- * stack), and "monospace" is the one token both platforms honor — it is what
107
- * the rest of the design system uses.
108
- */
109
- export const TM_MONO = "monospace";