@333eco/brand 1.3.0

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/css/motion.css ADDED
@@ -0,0 +1,99 @@
1
+ /* ============================================================================
2
+ MOTION — the heartbeat
3
+ ----------------------------------------------------------------------------
4
+ Load after a theme file. Always loaded; there is no alternate.
5
+
6
+ THE HEARTBEAT IS A PROOF-OF-HUMANITY SIGNAL, NOT DECORATION. Institutional
7
+ surfaces may beat ambiently ("humans run this"); a mark beside a PERSON binds
8
+ strictly to real PoH state. So the rule a consuming site applies is one of
9
+ PLACEMENT, not of taste: `.beating` goes on the CHROME — a wordmark, a footer
10
+ attribution, anything that says "an institution stands behind this" — and
11
+ never on a mark rendered beside somebody's name, where an unverified pulse
12
+ would be claiming something about THEM. If a mark is ever drawn next to a
13
+ person, it does not get the class.
14
+
15
+ ⚠️ THIS RULE IS ABOUT PLACEMENT, NEVER ABOUT A PARTICULAR SITE. One of the
16
+ three merged copies ended it with "which is why sayyourname.app beats
17
+ nowhere". That was the right rule and the wrong reading of one site — the
18
+ emblem there appears only in the nav and the footer, and the hero name card
19
+ carries no mark at all. A verdict about one site belongs in that site's own
20
+ layer. The rule stays here; the verdicts do not.
21
+
22
+ The static mark is Proof of Coordinate — a meaningful state, not a
23
+ degradation. That is why the reduced-motion guard stops and substitutes
24
+ nothing. */
25
+
26
+ /* Two UNEQUAL beats and then a long rest — systole, a weaker diastole, then
27
+ most of the period at rest. THAT MORPHOLOGY is what a counterfeit gets wrong
28
+ at any tempo, which is why it, and not the cadence, is the signature.
29
+ (~40 BPM here. A 72 BPM variant was built and rejected — see --beat-duration
30
+ in tokens.css. Do not "correct" either.)
31
+
32
+ ⚠️ THE REST LIVES HERE, at 70% -> 100%: 450ms of stillness in every 1500ms
33
+ cycle, recurring forever. Do not go looking for it in --beat-delay, which is
34
+ an animation-delay and therefore fires once before the first iteration and
35
+ never again. The two are easy to confuse because both produce silence; only
36
+ this one is part of the rhythm. If the pause ever wants to be LONGER, move
37
+ the 70% stop earlier — that changes the waveform, which is the signature, so
38
+ it is a deliberate act and not a tuning knob. */
39
+ @keyframes heartbeat {
40
+ 0%,
41
+ 100% {
42
+ transform: scale(1);
43
+ }
44
+ 14% {
45
+ transform: scale(1.3);
46
+ }
47
+ 28% {
48
+ transform: scale(1);
49
+ }
50
+ 42% {
51
+ transform: scale(1.3);
52
+ }
53
+ 70% {
54
+ transform: scale(1);
55
+ }
56
+ }
57
+
58
+ /* RAW CSS, NOT THE `animate-heartbeat` UTILITY that --animate-heartbeat exists
59
+ to produce, and that is a repo-shape decision rather than a taste one.
60
+ Tailwind 4's automatic source detection is rooted at the Vite `root`, which
61
+ the partial-based sites set to `src/` — so `partials/`, where every emblem in
62
+ those repos lives, is outside the scan and the utility is never generated for
63
+ a class written there. It fails silently: no error at any layer, just a mark
64
+ that does not move. 333.eco keeps the utility as well because its markup is
65
+ Lit inside scanned .ts files; here the class is the portable form, and it is
66
+ the one this package ships.
67
+
68
+ @source cannot rescue it either. @source resolves against the directory of
69
+ the CSS MODULE, and this stylesheet is inlined into each entry page, so one
70
+ relative path would have to be correct from src/, src/buy/, src/login/ and
71
+ src/account/ at once. It is only right for the first.
72
+
73
+ THIS RULE IS ALSO WHAT MAKES --beat-duration AND --beat-delay EXIST in the
74
+ output. Tailwind tree-shakes @theme and counts a var() in the author's own
75
+ CSS as a use — but a var() inside an unused @theme value is not one, which is
76
+ why neither shipped while --animate-heartbeat was their only referent.
77
+ Verified against dist, not assumed. Should that ever change, the rule goes
78
+ quiet with no error, so the grep in the README is the tripwire.
79
+
80
+ transform-origin is the default, stated: an SVG element's origin is not
81
+ reliably its centre across engines, and a beat that grows out of a corner
82
+ reads as a wobble. The scale is safe on this path because the mark's
83
+ 45-degree rotation is baked into the path COORDINATES precisely so a CSS
84
+ transform has nothing to override — see emblem/emblem.svg, which is the file
85
+ that trap is recorded in. */
86
+ .beating {
87
+ animation: heartbeat var(--beat-duration) var(--beat-delay) infinite;
88
+ transform-origin: center;
89
+ }
90
+
91
+ /* The scoped guard. Every consumer gets this; it is the minimum that is
92
+ correct everywhere. A site that also wants the estate-wide sweep opts in by
93
+ loading reduce-global.css after this file — see that file for why it is
94
+ opt-in rather than bundled here. */
95
+ @media (prefers-reduced-motion: reduce) {
96
+ .beating {
97
+ animation: none;
98
+ }
99
+ }
@@ -0,0 +1,29 @@
1
+ /* ============================================================================
2
+ REDUCED MOTION — the estate-wide sweep (OPT-IN)
3
+ ----------------------------------------------------------------------------
4
+ Load after motion.css, which already ships the scoped `.beating` guard. This
5
+ file adds the blanket rule that neutralises EVERY animation and transition on
6
+ the page.
7
+
8
+ ⚠️ IT IS OPT-IN, AND THAT IS A DELIBERATE DIVERGENCE RATHER THAN AN
9
+ OMISSION. seysays gates each of its animations at its own site with
10
+ `(prefers-reduced-motion: no-preference)` — site.css's smooth scroll,
11
+ tonsay.css's panel, app.ts's sheet — which reaches the same outcome by a
12
+ different discipline. Dropping this sweep into that repo would silently
13
+ restyle shipped code that already honours the preference. If the sweep is
14
+ ever wanted there, it is a decision about those three animation sites, not a
15
+ tidy-up of this package.
16
+
17
+ Taken by: sayyourname.app, playsey.app, 333.eco.
18
+ Not taken by: seysays.org. */
19
+
20
+ @media (prefers-reduced-motion: reduce) {
21
+ *,
22
+ *::before,
23
+ *::after {
24
+ animation-duration: 0.01ms !important;
25
+ animation-iteration-count: 1 !important;
26
+ transition-duration: 0.01ms !important;
27
+ scroll-behavior: auto !important;
28
+ }
29
+ }
@@ -0,0 +1,52 @@
1
+ /* ============================================================================
2
+ THEME RESOLUTION — the two-state stamp (light default)
3
+ ----------------------------------------------------------------------------
4
+ Load immediately after tokens.css. Pick this OR theme-3block.css, never both.
5
+
6
+ Used by 333.eco. ⚠️ THIS IS NOT AN INFERIOR VARIANT OF THE THREE-BLOCK
7
+ CASCADE, and converting that site to the other file would be a regression.
8
+ Its dark-mode.ts already resolves three states correctly — stored "dark",
9
+ stored "light", else prefers-color-scheme — and stamps ONLY `.dark`. Absence
10
+ of the class therefore MEANS light. Adding a `:root.light` block, or a
11
+ prefers-color-scheme media query, would create a second source of truth for
12
+ something a resolver already owns. Honour the resolver that exists.
13
+
14
+ The consequence worth stating: with no head script at all, this file lands
15
+ on LIGHT where theme-3block.css lands on dark. That is correct for a site
16
+ whose default is light and wrong for one whose default is dark, which is the
17
+ whole reason there are two files.
18
+
19
+ Nothing here holds a VALUE. Every declaration references a -d-/-l- pair from
20
+ tokens.css. */
21
+
22
+ :root {
23
+ color-scheme: light;
24
+ --bg: var(--l-bg);
25
+ --bg-tint: var(--l-bg-tint);
26
+ --surface: var(--l-surface);
27
+ --surface-2: var(--l-surface-2);
28
+ --line: var(--l-line);
29
+ --line-strong: var(--l-line-strong);
30
+ --ink: var(--l-ink);
31
+ --ink-dim: var(--l-ink-dim);
32
+ --ink-faint: var(--l-ink-faint);
33
+ --scrim: var(--l-scrim);
34
+ --soft-mix: var(--l-soft-mix);
35
+ --soft-with: var(--l-soft-with);
36
+ }
37
+
38
+ :root.dark {
39
+ color-scheme: dark;
40
+ --bg: var(--d-bg);
41
+ --bg-tint: var(--d-bg-tint);
42
+ --surface: var(--d-surface);
43
+ --surface-2: var(--d-surface-2);
44
+ --line: var(--d-line);
45
+ --line-strong: var(--d-line-strong);
46
+ --ink: var(--d-ink);
47
+ --ink-dim: var(--d-ink-dim);
48
+ --ink-faint: var(--d-ink-faint);
49
+ --scrim: var(--d-scrim);
50
+ --soft-mix: var(--d-soft-mix);
51
+ --soft-with: var(--d-soft-with);
52
+ }
@@ -0,0 +1,86 @@
1
+ /* ============================================================================
2
+ THEME RESOLUTION — the three-block cascade (dark default)
3
+ ----------------------------------------------------------------------------
4
+ Load immediately after tokens.css. Pick this OR theme-2state.css, never both.
5
+
6
+ Used by seysays.org, sayyourname.app and playsey.app. These sites stamp
7
+ BOTH `.dark` and `.light` on <html> from a head script, so all three states
8
+ are distinguishable and the unstamped case must resolve on its own.
9
+
10
+ ⚠️ THE :not() GUARD ON THE MEDIA BLOCK IS LOAD-BEARING. Without it, a visitor
11
+ who forced DARK on a LIGHT OS gets the light block winning on source order —
12
+ one theme's text on the other theme's paper, which is the classic unreadable
13
+ page.
14
+
15
+ DARK IS THE UNSTAMPED DEFAULT because that is what these products were built
16
+ in, and what <sey-app>'s 1,080-line literal was tuned against (#0a0a0f). If
17
+ the head script never runs, land in the theme the product was built in.
18
+
19
+ Nothing here holds a VALUE. Every declaration references a -d-/-l- pair from
20
+ tokens.css, so a palette is typed once and mapped three times. */
21
+
22
+ :root {
23
+ color-scheme: dark;
24
+ --bg: var(--d-bg);
25
+ --bg-tint: var(--d-bg-tint);
26
+ --surface: var(--d-surface);
27
+ --surface-2: var(--d-surface-2);
28
+ --line: var(--d-line);
29
+ --line-strong: var(--d-line-strong);
30
+ --ink: var(--d-ink);
31
+ --ink-dim: var(--d-ink-dim);
32
+ --ink-faint: var(--d-ink-faint);
33
+ --scrim: var(--d-scrim);
34
+ --soft-mix: var(--d-soft-mix);
35
+ --soft-with: var(--d-soft-with);
36
+ }
37
+
38
+ @media (prefers-color-scheme: light) {
39
+ :root:not(.dark):not(.light) {
40
+ color-scheme: light;
41
+ --bg: var(--l-bg);
42
+ --bg-tint: var(--l-bg-tint);
43
+ --surface: var(--l-surface);
44
+ --surface-2: var(--l-surface-2);
45
+ --line: var(--l-line);
46
+ --line-strong: var(--l-line-strong);
47
+ --ink: var(--l-ink);
48
+ --ink-dim: var(--l-ink-dim);
49
+ --ink-faint: var(--l-ink-faint);
50
+ --scrim: var(--l-scrim);
51
+ --soft-mix: var(--l-soft-mix);
52
+ --soft-with: var(--l-soft-with);
53
+ }
54
+ }
55
+
56
+ :root.light {
57
+ color-scheme: light;
58
+ --bg: var(--l-bg);
59
+ --bg-tint: var(--l-bg-tint);
60
+ --surface: var(--l-surface);
61
+ --surface-2: var(--l-surface-2);
62
+ --line: var(--l-line);
63
+ --line-strong: var(--l-line-strong);
64
+ --ink: var(--l-ink);
65
+ --ink-dim: var(--l-ink-dim);
66
+ --ink-faint: var(--l-ink-faint);
67
+ --scrim: var(--l-scrim);
68
+ --soft-mix: var(--l-soft-mix);
69
+ --soft-with: var(--l-soft-with);
70
+ }
71
+
72
+ :root.dark {
73
+ color-scheme: dark;
74
+ --bg: var(--d-bg);
75
+ --bg-tint: var(--d-bg-tint);
76
+ --surface: var(--d-surface);
77
+ --surface-2: var(--d-surface-2);
78
+ --line: var(--d-line);
79
+ --line-strong: var(--d-line-strong);
80
+ --ink: var(--d-ink);
81
+ --ink-dim: var(--d-ink-dim);
82
+ --ink-faint: var(--d-ink-faint);
83
+ --scrim: var(--d-scrim);
84
+ --soft-mix: var(--d-soft-mix);
85
+ --soft-with: var(--d-soft-with);
86
+ }
package/css/tokens.css ADDED
@@ -0,0 +1,278 @@
1
+ /* ============================================================================
2
+ THE SHARED TOKEN LAYER — canonical
3
+ ----------------------------------------------------------------------------
4
+ This file is the extraction A57 called for. It was reconciled from three
5
+ copies that had drifted: sayyourname/web/partials/tokens.css (303 lines),
6
+ playsey's (312) and seysays' (237, an older generation). Where they
7
+ disagreed, the newer statement won and the reason is recorded at the site of
8
+ the merge. Nothing here was re-derived.
9
+
10
+ WHY THESE NAMES. --bg / --surface / --line / --ink / --ink-dim / --accent /
11
+ --accent-soft are seysays' existing role names, already threaded through
12
+ ~1,500 lines of hand-written CSS including the 1,080-line literal inside
13
+ <sey-app>. Keeping them is what turned that restyle from a rewrite into a
14
+ value swap. Every type, measure, leading, radius and control-height value
15
+ below is lifted verbatim from seysays/web/partials/site.css, which is the
16
+ best-tuned CSS in the tree.
17
+
18
+ WHAT GOES WHERE. Theme-INVARIANT things go in @theme, which Tailwind 4 emits
19
+ into :root at compile time and turns into utilities. Theme-VARYING things
20
+ cannot: @theme has no way to express a media query or a class scope. So they
21
+ are plain CSS below, re-exposed to Tailwind through `@theme inline`, which
22
+ references the variable rather than copying its value.
23
+
24
+ WHAT THIS FILE DOES NOT DO. It declares the palette pairs but never MAPS
25
+ them to a theme — that is theme-3block.css or theme-2state.css, and a
26
+ consumer picks exactly one. Motion is motion.css. This split exists because
27
+ two of the four sites have documented, deliberate reasons to resolve themes
28
+ and reduced-motion differently, and normalising them would silently restyle
29
+ shipped code. See README.md.
30
+
31
+ ORDER OF CONCATENATION, and it is not arbitrary:
32
+ tokens.css -> theme-*.css -> motion.css -> [metta.css]
33
+ -> [reduce-global.css] -> brand.css (per site) -> site.css (per site)
34
+ (bracketed files are OPT-IN; a surface with no session skips metta.css)
35
+ Custom-property substitution is lazy, so a value declared here may reference
36
+ one that a later file sets — which is exactly how --accent, set per site,
37
+ reaches the derived family below.
38
+
39
+ ⚠️ NEVER @import A SIBLING OF THIS FILE. The consuming sites inject their
40
+ partials as RAW TEXT and concatenate them; a relative @import resolves
41
+ against src/, where partials/ is unreachable, and ships a dead
42
+ render-blocking at-rule. The `@import "tailwindcss"` immediately below is a
43
+ different thing and is fine: it is a bare specifier the Tailwind plugin
44
+ resolves, and it is verified to reach dist.
45
+ ========================================================================== */
46
+
47
+ @import "tailwindcss";
48
+
49
+ /* Lit shadow roots need :host(.dark); light DOM needs the descendant form. */
50
+ @custom-variant dark (:host(.dark) &, &:where(.dark, .dark *));
51
+
52
+ /* ---------------------------------------------------------------- Tier A ---
53
+ Theme-invariant. Fonts, scale, geometry, motion timing, and two of the three
54
+ palettes — the gems and the aura ramp. The six-TLD rainbow is NOT here; it has
55
+ no pinned values, and data/tlds.json records why. */
56
+ @theme {
57
+ /* Set per site in brand.css; these are the fallbacks a bare page gets. */
58
+ --font-display: ui-sans-serif, system-ui, -apple-system, sans-serif;
59
+ --font-text: ui-sans-serif, system-ui, -apple-system, sans-serif;
60
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
61
+ --font-khmer: "Noto Sans Khmer", sans-serif;
62
+
63
+ /* The scale, verbatim from seysays.
64
+
65
+ ⚠️ IT ASSUMES A NORMAL-WIDTH FACE. A site that picks an expanded display
66
+ face must override the hero rung in its own brand.css — the token is
67
+ shared, the FACE is that site's choice, and the site that chose the face
68
+ owns the consequence. playsey does exactly this for Archivo Expanded. */
69
+ --text-hero: clamp(2.5rem, 11vw, 4rem);
70
+ --text-title: clamp(1.35rem, 5.5vw, 1.75rem);
71
+ --text-lede: clamp(1.1rem, 4.5vw, 1.3rem);
72
+ --text-sub: 1.05rem;
73
+ --text-body: 1rem;
74
+ --text-small: 0.92rem;
75
+ --text-micro: 0.85rem;
76
+
77
+ --track-hero: -0.035em;
78
+ --track-title: -0.02em;
79
+ --track-spelt: 0.06em;
80
+
81
+ --leading-hero: 1.02;
82
+ --leading-title: 1.2;
83
+ --leading-body: 1.65;
84
+ --leading-khmer: 1.5;
85
+
86
+ --measure-prose: 36rem;
87
+ --measure-column: 42rem;
88
+
89
+ --r-control: 1rem;
90
+ --r-card: 1.25rem;
91
+ --r-input: 1rem;
92
+ --r-pill: 999px;
93
+
94
+ --control-h: 3.5rem;
95
+ --control-h-sm: 2.25rem;
96
+
97
+ /* ~40 BPM, lub-dub-rest. The RHYTHM is the signature, not the rate: a
98
+ 72 BPM variant was built and rejected. Do not "correct" this.
99
+
100
+ THE CARDIAC REST IS IN THE KEYFRAMES, NOT IN THE DELAY, and the two are
101
+ easy to confuse because both produce stillness. motion.css rests from
102
+ 70% to 100% of the period — 450ms of every 1500ms, on every cycle,
103
+ forever. That is the diastolic pause and it is what makes the mark read
104
+ as a heart rather than a throb.
105
+
106
+ --beat-delay is a CSS animation-delay, which per spec fires ONCE, before
107
+ the first iteration, and is never inserted between iterations. It was
108
+ 1.5s, which bought nothing recurring and cost the thing the mark is for:
109
+ a Proof-of-Humanity signal that holds still for a beat and a half after
110
+ paint is claiming nothing during the window a visitor is most likely to
111
+ be looking. Now 0s — the mark beats on paint, and the rhythm above is
112
+ bit-for-bit unchanged.
113
+
114
+ THE TOKEN STAYS, because it has a real use that is not a global pause:
115
+ per-instance STAGGER. Where several marks share a screen, giving each a
116
+ small distinct delay stops them beating in lockstep — a synchronized
117
+ chorus reads as one animation driving everything rather than several
118
+ independent signals. Set it per instance; leave the default at 0. */
119
+ --beat-duration: 1.5s;
120
+ --beat-delay: 0s;
121
+ --dur-fast: 0.12s;
122
+ --dur-base: 0.15s;
123
+
124
+ /* The B-Gem media-type palette. A colour here MEANS a medium: ruby is
125
+ video, fire opal is voice. Using one as a site accent is only correct
126
+ where the gem IS that product's medium.
127
+ PINK IS ABSENT BY CONSTRUCTION - it is reserved for B-Dating. */
128
+ --color-ruby: #c8102e;
129
+ --color-fire-opal: #e85d04;
130
+ --color-citrine: #f0b429;
131
+ --color-emerald: #00a36c;
132
+ --color-sapphire: #0f52ba;
133
+ --color-amethyst: #9966cc;
134
+ --color-diamond: #f4f7ff;
135
+
136
+ /* seysays' violet. A SITE value, deliberately NOT an eighth gem - the
137
+ commons' medium is not one of the seven. Amethyst is the gem for
138
+ letters, and borrowing a media-type colour as a site accent overloads a
139
+ channel the doctrine reserves. The measured reason agrees: those pages
140
+ are read at arm's length outdoors, and the more saturated violet is what
141
+ survives sunlight. */
142
+ --color-violet-sey: #7c3aed;
143
+
144
+ /* ------------------------------------------------------------------
145
+ THE AURA RAMP. A THIRD PALETTE, and the one with a live consumer.
146
+
147
+ A colour here means a POSITION — how fast a person's gratitude is
148
+ circulating (crossings per month, bucketed server-side by colorFor() in
149
+ thank.heartbank.org/functions/src/auras/compute.ts). It is not a medium
150
+ and it is not a domain. Seven stops, ROYGBIV, and the seventh is VIOLET
151
+ rather than diamond: the gem palette's seven and this one's seven are
152
+ different sets that happen to share a count.
153
+
154
+ ⚠️ THREE PALETTES, SEVEN·SEVEN·SIX, AND THEY MUST NOT BE FUSED. Gems
155
+ mean a MEDIUM (a colour that says "this is a voice note"). The six-TLD
156
+ rainbow means a DOMAIN (see data/tlds.json — names only, no values are
157
+ pinned anywhere yet). This one means a RATE. The hues rhyme because
158
+ there are only so many places on a colour wheel; the meanings do not.
159
+
160
+ ⚠️ EXTRACTED, NOT INVENTED. These seven were typed by hand in three
161
+ files of the shipping Phase-1 app — aura-avatar/index.ts:12,
162
+ chart/index.ts:20, graph/index.ts:38 — and all three still agreed when
163
+ they were lifted. That agreement is why this is a straight extraction
164
+ and not a re-derivation: nothing here was chosen, only moved.
165
+
166
+ ⚠️ TWO OF THESE HEXES COLLIDE WITH TOKENS ABOVE, and the collision is
167
+ coincidence rather than kinship: --color-aura-red is byte-identical to
168
+ --danger, and --color-aura-violet to --color-violet-sey. Three names,
169
+ two values, three unrelated meanings. Do NOT collapse them into
170
+ aliases — the day one of them is re-tuned, the other two must not move
171
+ with it, and a var() chain is exactly what would drag them along. */
172
+ --color-aura-red: #dc2626;
173
+ --color-aura-orange: #ea580c;
174
+ --color-aura-yellow: #ca8a04;
175
+ --color-aura-green: #16a34a;
176
+ --color-aura-blue: #2563eb;
177
+ --color-aura-indigo: #4f46e5;
178
+ --color-aura-violet: #7c3aed;
179
+
180
+ --animate-heartbeat: heartbeat var(--beat-duration) var(--beat-delay)
181
+ infinite;
182
+ }
183
+
184
+ /* ---------------------------------------------------------------- Tier B ---
185
+ Theme-varying. Palettes are declared once as -d-/-l- pairs; the mapping file
186
+ loaded after this one only REFERENCES them, so a value is never typed twice.
187
+
188
+ Per-site overrides live in brand.css and are loaded after both. */
189
+ :root {
190
+ /* dark palette */
191
+ --d-bg: #0a0a0f;
192
+ --d-bg-tint: #191426;
193
+ --d-surface: #17171d;
194
+ --d-surface-2: #1f1f27;
195
+ --d-line: rgba(255, 255, 255, 0.08);
196
+ --d-line-strong: rgba(255, 255, 255, 0.18);
197
+ --d-ink: #f5f5f7;
198
+ --d-ink-dim: #9b9ba5;
199
+ --d-ink-faint: #6b6b76;
200
+ --d-scrim: rgba(6, 6, 10, 0.72);
201
+ --d-soft-mix: 55%; /* accent lifted TOWARD WHITE on a dark ground */
202
+ --d-soft-with: #ffffff;
203
+
204
+ /* light palette */
205
+ --l-bg: #fcfbfe;
206
+ --l-bg-tint: #f4f1fb;
207
+ --l-surface: #f4f1fb;
208
+ --l-surface-2: #ebe7f5;
209
+ --l-line: rgba(20, 16, 30, 0.12);
210
+ --l-line-strong: rgba(20, 16, 30, 0.28);
211
+ --l-ink: #16141c;
212
+ --l-ink-dim: #5b5766;
213
+ --l-ink-faint: #8b8796;
214
+ --l-scrim: rgba(20, 16, 30, 0.4);
215
+ --l-soft-mix: 78%; /* accent darkened toward black on a light ground */
216
+ --l-soft-with: #000000;
217
+ }
218
+
219
+ /* The one semantic colour that is not the accent. It arrived from seysays,
220
+ which is still its only consumer — it is here rather than in a site layer so
221
+ that the second site to need a destructive state inherits one red instead of
222
+ inventing a second. Theme-invariant on purpose: a warning that changes
223
+ colour with the paper is a warning that has to be re-tested twice. */
224
+ :root {
225
+ --danger: #dc2626;
226
+ }
227
+
228
+ /* The accent family DERIVES. These were eleven hard-coded rgba literals of one
229
+ violet, every one of which broke the instant the accent or the theme
230
+ changed. color-mix() is safe to depend on here: Tailwind 4's own browser
231
+ floor is already above it.
232
+
233
+ ⚠️ TWO VALUES IN THIS FAMILY CANNOT DERIVE and are declared per site:
234
+ --accent-ink and, on a light ground, --accent-soft. Fire Opal on white is
235
+ 3.4:1 and fails while Sapphire on white is 7.0:1 and passes, so one site
236
+ takes near-black ink on its fill and another takes white, and no formula
237
+ picks correctly. That is the honest limit of "a fifth site is five
238
+ declarations" — it is nine. Do not build a "pass a gem, get a theme" API on
239
+ top of this; the true shape is a gem plus two measured overrides. */
240
+ :root {
241
+ --accent-soft: color-mix(
242
+ in oklab,
243
+ var(--accent) var(--soft-mix),
244
+ var(--soft-with)
245
+ );
246
+ --accent-wash: color-mix(in oklab, var(--accent-soft) 10%, transparent);
247
+ --accent-edge: color-mix(in oklab, var(--accent-soft) 25%, transparent);
248
+ --accent-edge-strong: color-mix(
249
+ in oklab,
250
+ var(--accent-soft) 45%,
251
+ transparent
252
+ );
253
+ --accent-halo: color-mix(in oklab, var(--accent) 16%, transparent);
254
+ --accent-glow: color-mix(in oklab, var(--accent) 85%, transparent);
255
+ --accent-bar: color-mix(in oklab, var(--accent) 45%, transparent);
256
+
257
+ --danger-soft: color-mix(in oklab, var(--danger) 80%, white);
258
+ --danger-edge: color-mix(in oklab, var(--danger) 45%, transparent);
259
+
260
+ /* The B-Emblem's ink. Derived, never picked — the mark takes the site
261
+ accent, so whatever governs that governs the emblem too and there is no
262
+ second colour to keep in step. */
263
+ --emblem: var(--accent);
264
+ }
265
+
266
+ /* Re-expose the theme-varying roles to Tailwind. `inline` means "reference the
267
+ variable", not "copy its value" - which is the whole point, since the value
268
+ changes per theme. */
269
+ @theme inline {
270
+ --color-bg: var(--bg);
271
+ --color-surface: var(--surface);
272
+ --color-surface-2: var(--surface-2);
273
+ --color-line: var(--line);
274
+ --color-ink: var(--ink);
275
+ --color-ink-dim: var(--ink-dim);
276
+ --color-accent: var(--accent);
277
+ --color-accent-soft: var(--accent-soft);
278
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "$comment": [
3
+ "The aura ramp. SEMANTICS ONLY — no hex values live here. The hexes are",
4
+ "in css/tokens.css (--color-aura-red and siblings) and are joined onto",
5
+ "this map by scripts/generate.mjs, exactly as gems.json is joined. Read",
6
+ "dist/tokens.json for the joined result.",
7
+ "",
8
+ "⚠️ THIS IS A RATE MAP. A colour here means a POSITION — how fast a",
9
+ "person's gratitude is circulating — not a medium (that is gems.json)",
10
+ "and not a domain (that is tlds.json). Three palettes; seven, seven and",
11
+ "six; and the hues rhyme because a colour wheel is small. Never present",
12
+ "any two of them as one system.",
13
+ "",
14
+ "⚠️ THE SEVENTH IS VIOLET, NOT DIAMOND. This ramp and the gem palette",
15
+ "both have seven stops and they are DIFFERENT SETS: this one carries",
16
+ "indigo and ends at violet; the gems carry no indigo and end at the",
17
+ "unrefracted diamond. The shared count is a coincidence.",
18
+ "",
19
+ "⚠️ DISCRETE, NOT CONTINUOUS. colorFor() returns a bucket NAME, so a",
20
+ "person is in exactly one stop and never between two. That is what",
21
+ "makes seven flat tokens the right shape here. The Metta Light — the",
22
+ "gem-order descent named in gems.json — is the continuous one, driven",
23
+ "by a single 0-to-1 scalar. Do not build this one as a gradient."
24
+ ],
25
+ "meaning": "Circulation velocity, computed as crossings per month over a rolling window and bucketed server-side.",
26
+ "source": "thank.heartbank.org/functions/src/auras/compute.ts — COLOR_BUCKETS is canonical for the thresholds; this file is canonical for the colours.",
27
+ "twoRings": "A person carries TWO auras at once — one for Kiitos (gratitude shown) and one for Kiitti (kindness given). Same ramp, two independent positions.",
28
+ "buckets": [
29
+ { "name": "red", "token": "--color-aura-red", "under": 0.5 },
30
+ { "name": "orange", "token": "--color-aura-orange", "under": 1.5 },
31
+ { "name": "yellow", "token": "--color-aura-yellow", "under": 3 },
32
+ { "name": "green", "token": "--color-aura-green", "under": 6 },
33
+ { "name": "blue", "token": "--color-aura-blue", "under": 12 },
34
+ {
35
+ "name": "indigo",
36
+ "token": "--color-aura-indigo",
37
+ "under": 24,
38
+ "note": "⚠️ FOUR SHIPPED SURFACES RENDERED THIS BUCKET IN PINK — members-panel.ts, seed, thank and timelog reached for bg-pink-100/text-pink-400 while the three hex maps said #4f46e5. Pink is reserved by construction for B-Dating and must not appear on a Phase-1 surface. Corrected to indigo. If the reason was that blue-indigo-violet are hard to tell apart at tint weight, the fix is to widen the ramp here, where one change reaches every surface — never to borrow the reserved hue on four of them."
39
+ },
40
+ { "name": "violet", "token": "--color-aura-violet", "unbounded": true }
41
+ ],
42
+ "reserved": {
43
+ "pink": "ABSENT HERE FOR THE SAME REASON IT IS ABSENT FROM THE GEMS — held for B-Dating and romantic contexts. This ramp is where the reservation was actually being violated."
44
+ },
45
+ "collisions": [
46
+ "--color-aura-red is byte-identical to --danger.",
47
+ "--color-aura-violet is byte-identical to --color-violet-sey.",
48
+ "Both are coincidence, not kinship. Three names, three meanings; do not alias them, or re-tuning one will silently move the others."
49
+ ]
50
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "$comment": [
3
+ "Generator metadata. Values that CSS already holds are NOT repeated",
4
+ "here — scripts/generate.mjs parses css/tokens.css for those. This file",
5
+ "holds only what a stylesheet cannot express.",
6
+ "",
7
+ "`version` is the one number that matters operationally: it is copied",
8
+ "into brand.lock, which is vendored byte-identical into every consumer,",
9
+ "so 'which sites are on which brand version' is answerable by grep."
10
+ ],
11
+ "version": "1.3.0",
12
+ "wordmark": {
13
+ "line": "circulation, not accumulation",
14
+ "division": "Bank = what accumulates is the RECORD of appreciation. Heart = what circulates is the VALUE.",
15
+ "slogan": "Thank with HeartBank®",
16
+ "substitution": "Wherever possible the B in 'Bank' is replaced by the B-Emblem — 'Thank with Heart♥ank®'. Only the B in Bank, never the T in Thank. Monochrome and plain-text fall back to a literal B."
17
+ },
18
+ "mark": {
19
+ "name": "B-Emblem™",
20
+ "shape": "A universal heart rotated 45° clockwise. Bistable — heart AND capital B, both immediately apparent. Not a reveal.",
21
+ "rules": [
22
+ "Inline in the DOM. Never <img src> — CSS cannot reach inside an <img>.",
23
+ "The 45° rotation is baked into the path coordinates. Never a transform attribute.",
24
+ "fill=\"currentColor\"; the page sets --emblem.",
25
+ "`.beating` goes on CHROME and never beside a person's name."
26
+ ],
27
+ "states": {
28
+ "static": "Proof of Coordinate ℠ — a meaningful state, not a degradation.",
29
+ "beating": "Proof of Humanity ℠ — but only where the beat can be verified. Ambient institutional beating claims 'humans run this', not 'this person is human'."
30
+ }
31
+ },
32
+ "mettaLight": {
33
+ "$comment": "The session descent. css/metta.css is OPT-IN and is not vendored by a surface with no session.",
34
+ "api": "The app sets --t (0 at session start, 1 at session end) on an element carrying the .metta class. Everything downstream reads --metta.",
35
+ "stops": "The B-Gem order, ruby to diamond. Seven stops, six segments; stop i sits at t = i/6.",
36
+ "notAnimated": "--metta is COMPUTED, never animated. An @property-registered custom property interpolated by @keyframes is the obvious build and is broken in the configuration this feature requires: Chrome does not reliably re-rasterise an element for an animated custom property it INHERITS, and the failure is invisible to getComputedStyle. Six color-mix() steps weighted by clamp() windows instead — no registration, no keyframes, no ticker.",
37
+ "classScoped": "The chain is declared on .metta and NOT on :root. Custom properties inherit their computed value, so a chain on :root resolves once against root's --t and descendants inherit a frozen colour. The element that sets --t must carry the chain.",
38
+ "guards": "No numerals, no totals, no streaks, no ranks. The light carries the whole signal; --t is an input, never a readout.",
39
+ "breathNotHeartbeat": "The lamp's swell is a symmetrical breath with no claim attached. The heartbeat is a Proof-of-Humanity signal with a placement rule. Never give the lamp .beating, and never give a mark the breath. Under reduced motion the breath stops and the COLOUR DOES NOT — freezing the descent would misreport where the sitter is.",
40
+ "nativePorting": "Same seven stops, same single scalar: interpolate the gem list at t. That is why it belongs in platform-native animation rather than a library."
41
+ },
42
+ "motion": {
43
+ "signature": "Cardiac morphology: two UNEQUAL beats then a long rest — systole, a weaker diastole, then most of the period at rest.",
44
+ "notRate": "The RHYTHM is the signature, NOT the cadence or the amplitude. ~40 BPM at 1.5s ships; a 72 BPM variant was built and rejected. A published spec once claimed ~72 BPM / ~8% expansion — that claim was reframed, not the code.",
45
+ "rest": "The diastolic rest is IN THE KEYFRAMES (70%->100%, 450ms of every 1500ms), recurring on every cycle. It is not --beat-delay, which is a CSS animation-delay and fires once before the first iteration only. Both produce stillness; only the keyframe rest is part of the rhythm.",
46
+ "startDelay": "--beat-delay is 0s as of v1.3.0. It was 1.5s, which bought nothing recurring and left a Proof-of-Humanity signal motionless for a beat and a half after paint. The token is kept for per-instance STAGGER, so several marks on one screen need not beat in lockstep.",
47
+ "reducedMotion": "Stop, and substitute nothing. The static mark is already a meaningful state."
48
+ },
49
+ "accentRule": {
50
+ "rule": "A site's accent is DERIVED, never picked: it takes the gem whose media type IS that product's medium.",
51
+ "cannotDerive": [
52
+ "--accent-ink — Fire Opal on white is 3.4:1 and fails; Sapphire on white is 7.0:1 and passes. No formula picks correctly.",
53
+ "--accent-soft on a light ground — the generic oklab mix does not always clear 4.5:1. Measure and pin."
54
+ ],
55
+ "honestCount": "The goal was 'a fifth site is five declarations'. It is nine."
56
+ },
57
+ "sites": [
58
+ { "host": "sayyourname.app", "accent": "--color-fire-opal", "because": "the product IS a voice recording" },
59
+ { "host": "playsey.app", "accent": "--color-emerald", "because": "the medium is MOTION — a name called, an object crossing a circle" },
60
+ { "host": "333.eco", "accent": "--color-sapphire", "because": "a registry resolves a name to an ADDRESS" },
61
+ { "host": "seysays.org", "accent": "--color-violet-sey", "because": "the commons' medium is not one of the seven — a SITE value, not an eighth gem" }
62
+ ],
63
+ "fonts": {
64
+ "constants": {
65
+ "mono": "IBM Plex Mono — one mono across the estate is a system, two is a coincidence.",
66
+ "khmer": "Noto Sans Khmer — present on every site in the tree."
67
+ },
68
+ "perSite": "The display face is the only genuine per-site variable. A site that picks an expanded face owns the type-scale consequence."
69
+ }
70
+ }