@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/LICENSE +202 -0
- package/README.md +269 -0
- package/brand.lock +14 -0
- package/css/metta.css +190 -0
- package/css/motion.css +99 -0
- package/css/reduce-global.css +29 -0
- package/css/theme-2state.css +52 -0
- package/css/theme-3block.css +86 -0
- package/css/tokens.css +278 -0
- package/data/auras.json +50 -0
- package/data/brand.json +70 -0
- package/data/gems.json +45 -0
- package/data/tlds.json +79 -0
- package/dist/Brand.kt +156 -0
- package/dist/Brand.swift +204 -0
- package/dist/tokens.json +561 -0
- package/emblem/emblem.path.txt +1 -0
- package/emblem/emblem.svg +28 -0
- package/emblem/emblem.ts +42 -0
- package/package.json +49 -0
package/data/gems.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": [
|
|
3
|
+
"The B-Gem palette. SEMANTICS ONLY — no hex values live here.",
|
|
4
|
+
"The hexes are in css/tokens.css (--color-ruby and siblings) and are",
|
|
5
|
+
"joined onto this map by scripts/generate.mjs. That is deliberate: a",
|
|
6
|
+
"colour typed in two files is a colour that will eventually differ in",
|
|
7
|
+
"two files, which is the exact failure this package was extracted to",
|
|
8
|
+
"end. Read dist/tokens.json for the joined result.",
|
|
9
|
+
"",
|
|
10
|
+
"⚠️ THIS IS A MEDIA-TYPE MAP, NOT A SITE PALETTE. A gem MEANS a medium:",
|
|
11
|
+
"amethyst means 'this artifact is a letter'. Using a gem as a site",
|
|
12
|
+
"accent is only correct where the gem IS that product's medium.",
|
|
13
|
+
"",
|
|
14
|
+
"⚠️ AND IT IS NOT THE SIX-TLD RAINBOW. That is a different palette with",
|
|
15
|
+
"a different job (one colour per TLD / product class, the B-Aura",
|
|
16
|
+
"thesis). Seven gems, six rainbow colours, and they must never be",
|
|
17
|
+
"presented as one system."
|
|
18
|
+
],
|
|
19
|
+
"order": "The Metta Light descent: session start at ruby, session end at diamond.",
|
|
20
|
+
"gems": [
|
|
21
|
+
{ "name": "ruby", "token": "--color-ruby", "media": "video" },
|
|
22
|
+
{ "name": "fire-opal", "token": "--color-fire-opal", "media": "voice / audio" },
|
|
23
|
+
{ "name": "citrine", "token": "--color-citrine", "media": "photo" },
|
|
24
|
+
{ "name": "emerald", "token": "--color-emerald", "media": "animation" },
|
|
25
|
+
{ "name": "sapphire", "token": "--color-sapphire", "media": "link" },
|
|
26
|
+
{ "name": "amethyst", "token": "--color-amethyst", "media": "letter / text" },
|
|
27
|
+
{
|
|
28
|
+
"name": "diamond",
|
|
29
|
+
"token": "--color-diamond",
|
|
30
|
+
"media": "album / collection",
|
|
31
|
+
"note": "The unrefracted seventh. A cool near-white, not #FFFFFF, so it reads as luminous rather than flat."
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"reserved": {
|
|
35
|
+
"pink": "ABSENT BY CONSTRUCTION. Reserved for B-Dating and romantic contexts. It is not an oversight and must not be filled in."
|
|
36
|
+
},
|
|
37
|
+
"siteValues": [
|
|
38
|
+
{
|
|
39
|
+
"name": "violet-sey",
|
|
40
|
+
"token": "--color-violet-sey",
|
|
41
|
+
"site": "seysays.org",
|
|
42
|
+
"note": "NOT an eighth gem. The commons' medium is not one of the seven, so borrowing amethyst would overload a channel the doctrine reserves. The measured reason agrees: those pages are read at arm's length outdoors and the more saturated violet survives sunlight."
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
package/data/tlds.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": [
|
|
3
|
+
"The six-TLD rainbow. NAMES ONLY, AND THAT IS THE POINT — unlike gems.json",
|
|
4
|
+
"and auras.json, this file has no sibling hexes in css/tokens.css to be",
|
|
5
|
+
"joined against, because none have ever been assigned. The corpus fixes the",
|
|
6
|
+
"six COLOURS as words (brand-identity-as-architecture §6.4 and §10.1,",
|
|
7
|
+
"resolved 2026-06-30); no file in the estate fixes a value.",
|
|
8
|
+
"",
|
|
9
|
+
"⛔ DO NOT PIN HEXES HERE TO MAKE THE PAGE PRETTIER. Nothing consumes them:",
|
|
10
|
+
"the four sites that vendor this layer are sayyourname, playsey, seysays and",
|
|
11
|
+
"333.eco, and not one of them is a heartbank.{TLD}. Six tokens would ship",
|
|
12
|
+
"byte-identical into all four behind brand.lock, buy nothing, and invite",
|
|
13
|
+
"exactly the misuse the gem warning already forbids. Pin them when the first",
|
|
14
|
+
"heartbank.{TLD} surface actually needs them, and measure contrast then —",
|
|
15
|
+
"the gem palette's own hexes were proposed in a working document and lived",
|
|
16
|
+
"there for weeks before they were ratified into tokens.css.",
|
|
17
|
+
"",
|
|
18
|
+
"⚠️ THIS IS A DOMAIN MAP. A colour here means a DOMAIN's product class and",
|
|
19
|
+
"its heart-idiom — not a medium (gems.json) and not a rate (auras.json).",
|
|
20
|
+
"The six hues are one-for-one with the six saturated gems, which is exactly",
|
|
21
|
+
"why they are rendered on a different CARRIER on the guidelines page: gems",
|
|
22
|
+
"are chips, these are marks. Same hue, different object, no fusion.",
|
|
23
|
+
"",
|
|
24
|
+
"`cssNamed` below is the CSS keyword that spells the doctrine's word. It is",
|
|
25
|
+
"a RENDERING OF THE NAME, never a pinned value — that is why it is a",
|
|
26
|
+
"keyword and not a hex, and why it is allowed to look untuned beside the",
|
|
27
|
+
"measured gems."
|
|
28
|
+
],
|
|
29
|
+
"order": "Spectrum order, red through violet. The assignments were made per-domain, one at a time, by heart-idiom — that they compose a complete rainbow was found afterwards, and showing them out of spectrum order would hide the only property that makes the allusion earned.",
|
|
30
|
+
"scope": "HeartBank® — one body of five. This palette is body-scoped in a way the gems and the aura ramp are not; it is documented here because the brand layer is where the three palettes are told apart, not because the institution's colour system is one body's domain map.",
|
|
31
|
+
"pinned": false,
|
|
32
|
+
"tlds": [
|
|
33
|
+
{
|
|
34
|
+
"tld": "heartbank.us",
|
|
35
|
+
"hue": "red",
|
|
36
|
+
"cssNamed": "red",
|
|
37
|
+
"productClass": "HeartBank® Storage — B-Storage / B-links",
|
|
38
|
+
"idiom": "the universal human heart; .us reads as \"us\" = humanity; PoH = proof of humanity"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"tld": "heartbank.me",
|
|
42
|
+
"hue": "orange",
|
|
43
|
+
"cssNamed": "orange",
|
|
44
|
+
"productClass": "Thank Your Future Kindness℠ — the pledge surface",
|
|
45
|
+
"idiom": "warmth and forward-looking hope; .me is personal and future-facing"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"tld": "heartbank.org",
|
|
49
|
+
"hue": "gold",
|
|
50
|
+
"cssNamed": "gold",
|
|
51
|
+
"productClass": "Treasury — family-scale money economy, Phase 1",
|
|
52
|
+
"idiom": "the Heart of Gold — generosity"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"tld": "heartbank.ceo",
|
|
56
|
+
"hue": "green",
|
|
57
|
+
"cssNamed": "green",
|
|
58
|
+
"productClass": "Franchise arm — B-Affiliate directory; the CEO surface",
|
|
59
|
+
"idiom": "commerce, growth, the greenback, local-economy revival"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"tld": "heartbank.net",
|
|
63
|
+
"hue": "blue",
|
|
64
|
+
"cssNamed": "blue",
|
|
65
|
+
"productClass": "Tree of Humanity — institutional output; the Phase-2 global commons",
|
|
66
|
+
"idiom": "water, for watering the Tree of Humanity; trust and the worldwide net"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"tld": "heartbank.com",
|
|
70
|
+
"hue": "purple",
|
|
71
|
+
"cssNamed": "purple",
|
|
72
|
+
"productClass": "Root = B-Store; Chronicle — adult-scale time economy",
|
|
73
|
+
"idiom": "the Purple Heart — honour and sacrifice; finite time given"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"reserved": {
|
|
77
|
+
"pink": "Held out of the six for B-Dating and romantic contexts — the same reservation the gems and the aura ramp keep. Three palettes, one reservation."
|
|
78
|
+
}
|
|
79
|
+
}
|
package/dist/Brand.kt
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
// GENERATED by scripts/generate.mjs from css/tokens.css.
|
|
2
|
+
// Do not edit. Re-run the generator; `--check` proves this file current.
|
|
3
|
+
//
|
|
4
|
+
// ⚠️ THE FLUID TYPE SCALE DOES NOT PORT. On the web the display rungs are
|
|
5
|
+
// clamp(min, Nvw, max) — a viewport-relative middle term with no native
|
|
6
|
+
// equivalent. Only min and max are emitted. Pick with the platform's own
|
|
7
|
+
// accessibility scale (Dynamic Type / sp); do not hard-code the max and
|
|
8
|
+
// call it done.
|
|
9
|
+
//
|
|
10
|
+
// ⚠️ ACCENT VALUES ARE PER SITE and only --accent-soft derives. A native
|
|
11
|
+
// app supplies --accent-ink and --accent-lift itself, exactly as each
|
|
12
|
+
// site's brand.css does. See accentRule in dist/tokens.json.
|
|
13
|
+
|
|
14
|
+
package eco.three33.brand
|
|
15
|
+
|
|
16
|
+
import androidx.compose.ui.graphics.Color
|
|
17
|
+
import androidx.compose.ui.graphics.lerp
|
|
18
|
+
import androidx.compose.ui.unit.dp
|
|
19
|
+
|
|
20
|
+
object Brand {
|
|
21
|
+
const val VERSION = "1.3.0"
|
|
22
|
+
|
|
23
|
+
/** The B-Gem media-type palette. A colour here MEANS a medium.
|
|
24
|
+
* Not a site palette, and not the six-TLD rainbow. */
|
|
25
|
+
enum class Gem(val hex: String, val media: String, val color: Color) {
|
|
26
|
+
RUBY("#c8102e", "video", Color(0xFFC8102E)),
|
|
27
|
+
FIRE_OPAL("#e85d04", "voice / audio", Color(0xFFE85D04)),
|
|
28
|
+
CITRINE("#f0b429", "photo", Color(0xFFF0B429)),
|
|
29
|
+
EMERALD("#00a36c", "animation", Color(0xFF00A36C)),
|
|
30
|
+
SAPPHIRE("#0f52ba", "link", Color(0xFF0F52BA)),
|
|
31
|
+
AMETHYST("#9966cc", "letter / text", Color(0xFF9966CC)),
|
|
32
|
+
DIAMOND("#f4f7ff", "album / collection", Color(0xFFF4F7FF));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Pink is ABSENT BY CONSTRUCTION — reserved for B-Dating. Not an oversight.
|
|
36
|
+
|
|
37
|
+
// The AURA RAMP and the SIX-TLD RAINBOW are deliberately not emitted here:
|
|
38
|
+
// the first has only a web consumer so far, the second has no pinned values
|
|
39
|
+
// anywhere. Named as absent rather than forgotten. See the auras and
|
|
40
|
+
// tlds blocks in dist/tokens.json.
|
|
41
|
+
|
|
42
|
+
data class Palette(
|
|
43
|
+
val bg: Color,
|
|
44
|
+
val bgTint: Color,
|
|
45
|
+
val surface: Color,
|
|
46
|
+
val surface2: Color,
|
|
47
|
+
val line: Color,
|
|
48
|
+
val lineStrong: Color,
|
|
49
|
+
val ink: Color,
|
|
50
|
+
val inkDim: Color,
|
|
51
|
+
val inkFaint: Color,
|
|
52
|
+
val scrim: Color
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
val dark = Palette(
|
|
56
|
+
bg = Color(0xFF0A0A0F),
|
|
57
|
+
bgTint = Color(0xFF191426),
|
|
58
|
+
surface = Color(0xFF17171D),
|
|
59
|
+
surface2 = Color(0xFF1F1F27),
|
|
60
|
+
line = Color(0xFF000000),
|
|
61
|
+
lineStrong = Color(0xFF000000),
|
|
62
|
+
ink = Color(0xFFF5F5F7),
|
|
63
|
+
inkDim = Color(0xFF9B9BA5),
|
|
64
|
+
inkFaint = Color(0xFF6B6B76),
|
|
65
|
+
scrim = Color(0xFF000000)
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
val light = Palette(
|
|
69
|
+
bg = Color(0xFFFCFBFE),
|
|
70
|
+
bgTint = Color(0xFFF4F1FB),
|
|
71
|
+
surface = Color(0xFFF4F1FB),
|
|
72
|
+
surface2 = Color(0xFFEBE7F5),
|
|
73
|
+
line = Color(0xFFFFFFFF),
|
|
74
|
+
lineStrong = Color(0xFFFFFFFF),
|
|
75
|
+
ink = Color(0xFF16141C),
|
|
76
|
+
inkDim = Color(0xFF5B5766),
|
|
77
|
+
inkFaint = Color(0xFF8B8796),
|
|
78
|
+
scrim = Color(0xFFFFFFFF)
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
object Radius {
|
|
82
|
+
val control = 16.dp
|
|
83
|
+
val card = 20.dp
|
|
84
|
+
val input = 16.dp
|
|
85
|
+
val pill = 999.dp
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
object Control {
|
|
89
|
+
val height = 56.dp
|
|
90
|
+
val heightSmall = 36.dp
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** The heartbeat. Two UNEQUAL beats then a long rest. THAT MORPHOLOGY is
|
|
94
|
+
* the signature, not the cadence — a 72 BPM variant was built and
|
|
95
|
+
* rejected. Under reduced motion: stop, and substitute nothing. */
|
|
96
|
+
object Beat {
|
|
97
|
+
const val DURATION_MS = 1500
|
|
98
|
+
const val DELAY_MS = 0
|
|
99
|
+
val STEPS = listOf(
|
|
100
|
+
0f to 1f,
|
|
101
|
+
0.14f to 1.3f,
|
|
102
|
+
0.28f to 1f,
|
|
103
|
+
0.42f to 1.3f,
|
|
104
|
+
0.7f to 1f,
|
|
105
|
+
1f to 1f
|
|
106
|
+
)
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** THE METTA LIGHT — the session descent. One scalar in, one colour out:
|
|
110
|
+
* t is 0 at session start and 1 at session end, passing through the seven
|
|
111
|
+
* gems in order. Guards travel with it: no numerals, no totals, no
|
|
112
|
+
* streaks, no ranks. The breath is NOT the heartbeat, and carries no
|
|
113
|
+
* claim. */
|
|
114
|
+
/** ⚠️ Samples of an OKLAB curve, not the seven stops — lerping two gems in
|
|
115
|
+
* sRGB differs from the web through the middle of every segment. */
|
|
116
|
+
val METTA_RAMP = listOf(
|
|
117
|
+
Color(0xFFC8102E),
|
|
118
|
+
Color(0xFFD02C2A),
|
|
119
|
+
Color(0xFFD83F23),
|
|
120
|
+
Color(0xFFE04E19),
|
|
121
|
+
Color(0xFFE85D04),
|
|
122
|
+
Color(0xFFEB750F),
|
|
123
|
+
Color(0xFFEE8B19),
|
|
124
|
+
Color(0xFFEFA021),
|
|
125
|
+
Color(0xFFF0B429),
|
|
126
|
+
Color(0xFFC7B246),
|
|
127
|
+
Color(0xFF9CAE57),
|
|
128
|
+
Color(0xFF69A963),
|
|
129
|
+
Color(0xFF00A36C),
|
|
130
|
+
Color(0xFF009285),
|
|
131
|
+
Color(0xFF007F99),
|
|
132
|
+
Color(0xFF006BAA),
|
|
133
|
+
Color(0xFF0F52BA),
|
|
134
|
+
Color(0xFF4159BF),
|
|
135
|
+
Color(0xFF615EC3),
|
|
136
|
+
Color(0xFF7E63C8),
|
|
137
|
+
Color(0xFF9966CC),
|
|
138
|
+
Color(0xFFAF8BDA),
|
|
139
|
+
Color(0xFFC6AFE7),
|
|
140
|
+
Color(0xFFDDD3F4),
|
|
141
|
+
Color(0xFFF4F7FF)
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
fun metta(t: Float): Color {
|
|
145
|
+
val p = t.coerceIn(0f, 1f) * (METTA_RAMP.size - 1)
|
|
146
|
+
val i = p.toInt().coerceAtMost(METTA_RAMP.size - 2)
|
|
147
|
+
return lerp(METTA_RAMP[i], METTA_RAMP[i + 1], p - i)
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/** ⚠️ PLACEMENT RULE: a beating mark goes on CHROME and never beside a
|
|
151
|
+
* person's name. */
|
|
152
|
+
|
|
153
|
+
/** The B-Emblem path, viewBox 0 0 24 24. The 45° rotation is BAKED INTO
|
|
154
|
+
* THE COORDINATES — never re-apply a rotation transform. */
|
|
155
|
+
const val EMBLEM_PATH = "M3.9743 20.0257L3.8824 18.0670C3.5430 11.1232 3.3167 6.5411 5.9896 3.8683C8.1675 1.6904 11.5899 1.6904 13.7678 3.8683C14.9981 5.0986 15.6062 6.8523 15.4719 8.5281C17.1477 8.3938 18.9014 9.0019 20.1317 10.2322C22.3096 12.4101 22.3096 15.8325 20.1317 18.0104C17.4589 20.6833 12.8768 20.4570 5.9260 20.1247L3.9743 20.0257Z"
|
|
156
|
+
}
|
package/dist/Brand.swift
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
// GENERATED by scripts/generate.mjs from css/tokens.css.
|
|
2
|
+
// Do not edit. Re-run the generator; `--check` proves this file current.
|
|
3
|
+
//
|
|
4
|
+
// ⚠️ THE FLUID TYPE SCALE DOES NOT PORT. On the web the display rungs are
|
|
5
|
+
// clamp(min, Nvw, max) — a viewport-relative middle term with no native
|
|
6
|
+
// equivalent. Only min and max are emitted. Pick with the platform's own
|
|
7
|
+
// accessibility scale (Dynamic Type / sp); do not hard-code the max and
|
|
8
|
+
// call it done.
|
|
9
|
+
//
|
|
10
|
+
// ⚠️ ACCENT VALUES ARE PER SITE and only --accent-soft derives. A native
|
|
11
|
+
// app supplies --accent-ink and --accent-lift itself, exactly as each
|
|
12
|
+
// site's brand.css does. See accentRule in dist/tokens.json.
|
|
13
|
+
|
|
14
|
+
import SwiftUI
|
|
15
|
+
|
|
16
|
+
public enum Brand {
|
|
17
|
+
public static let version = "1.3.0"
|
|
18
|
+
|
|
19
|
+
/// The B-Gem media-type palette. A colour here MEANS a medium.
|
|
20
|
+
/// ⚠️ Not a site palette, and not the six-TLD rainbow. Using a gem as an
|
|
21
|
+
/// accent is only correct where the gem IS that product's medium.
|
|
22
|
+
public enum Gem: String, CaseIterable {
|
|
23
|
+
case ruby = "ruby"
|
|
24
|
+
case fireOpal = "fire-opal"
|
|
25
|
+
case citrine = "citrine"
|
|
26
|
+
case emerald = "emerald"
|
|
27
|
+
case sapphire = "sapphire"
|
|
28
|
+
case amethyst = "amethyst"
|
|
29
|
+
case diamond = "diamond"
|
|
30
|
+
|
|
31
|
+
public var hex: String {
|
|
32
|
+
switch self {
|
|
33
|
+
case .ruby: return "#c8102e"
|
|
34
|
+
case .fireOpal: return "#e85d04"
|
|
35
|
+
case .citrine: return "#f0b429"
|
|
36
|
+
case .emerald: return "#00a36c"
|
|
37
|
+
case .sapphire: return "#0f52ba"
|
|
38
|
+
case .amethyst: return "#9966cc"
|
|
39
|
+
case .diamond: return "#f4f7ff"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public var media: String {
|
|
44
|
+
switch self {
|
|
45
|
+
case .ruby: return "video"
|
|
46
|
+
case .fireOpal: return "voice / audio"
|
|
47
|
+
case .citrine: return "photo"
|
|
48
|
+
case .emerald: return "animation"
|
|
49
|
+
case .sapphire: return "link"
|
|
50
|
+
case .amethyst: return "letter / text"
|
|
51
|
+
case .diamond: return "album / collection"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public var color: Color {
|
|
56
|
+
switch self {
|
|
57
|
+
case .ruby: return Color(red: 0.7843, green: 0.0627, blue: 0.1804)
|
|
58
|
+
case .fireOpal: return Color(red: 0.9098, green: 0.3647, blue: 0.0157)
|
|
59
|
+
case .citrine: return Color(red: 0.9412, green: 0.7059, blue: 0.1608)
|
|
60
|
+
case .emerald: return Color(red: 0.0000, green: 0.6392, blue: 0.4235)
|
|
61
|
+
case .sapphire: return Color(red: 0.0588, green: 0.3216, blue: 0.7294)
|
|
62
|
+
case .amethyst: return Color(red: 0.6000, green: 0.4000, blue: 0.8000)
|
|
63
|
+
case .diamond: return Color(red: 0.9569, green: 0.9686, blue: 1.0000)
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/// Pink is ABSENT BY CONSTRUCTION — reserved for B-Dating. Not an oversight.
|
|
69
|
+
|
|
70
|
+
/// TWO OTHER PALETTES ARE DELIBERATELY NOT EMITTED HERE, and are named as
|
|
71
|
+
/// absent rather than forgotten. The AURA RAMP (seven ROYGBIV stops meaning
|
|
72
|
+
/// circulation rate) has one consumer and it is a web app; it lives in
|
|
73
|
+
/// dist/tokens.json and comes here when a native surface renders an aura.
|
|
74
|
+
/// The SIX-TLD RAINBOW has no pinned values anywhere in the estate — six
|
|
75
|
+
/// colour words and nothing else — so there is nothing to emit. See
|
|
76
|
+
/// the auras and tlds blocks in dist/tokens.json.
|
|
77
|
+
|
|
78
|
+
public struct Palette {
|
|
79
|
+
public let bg: Color
|
|
80
|
+
public let bgTint: Color
|
|
81
|
+
public let surface: Color
|
|
82
|
+
public let surface2: Color
|
|
83
|
+
public let line: Color
|
|
84
|
+
public let lineStrong: Color
|
|
85
|
+
public let ink: Color
|
|
86
|
+
public let inkDim: Color
|
|
87
|
+
public let inkFaint: Color
|
|
88
|
+
public let scrim: Color
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public static let dark = Palette(
|
|
92
|
+
bg: Color(red: 0.0392, green: 0.0392, blue: 0.0588),
|
|
93
|
+
bgTint: Color(red: 0.0980, green: 0.0784, blue: 0.1490),
|
|
94
|
+
surface: Color(red: 0.0902, green: 0.0902, blue: 0.1137),
|
|
95
|
+
surface2: Color(red: 0.1216, green: 0.1216, blue: 0.1529),
|
|
96
|
+
line: Color(red: 0.0000, green: 0.0000, blue: 0.0000),
|
|
97
|
+
lineStrong: Color(red: 0.0000, green: 0.0000, blue: 0.0000),
|
|
98
|
+
ink: Color(red: 0.9608, green: 0.9608, blue: 0.9686),
|
|
99
|
+
inkDim: Color(red: 0.6078, green: 0.6078, blue: 0.6471),
|
|
100
|
+
inkFaint: Color(red: 0.4196, green: 0.4196, blue: 0.4627),
|
|
101
|
+
scrim: Color(red: 0.0000, green: 0.0000, blue: 0.0000)
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
public static let light = Palette(
|
|
105
|
+
bg: Color(red: 0.9882, green: 0.9843, blue: 0.9961),
|
|
106
|
+
bgTint: Color(red: 0.9569, green: 0.9451, blue: 0.9843),
|
|
107
|
+
surface: Color(red: 0.9569, green: 0.9451, blue: 0.9843),
|
|
108
|
+
surface2: Color(red: 0.9216, green: 0.9059, blue: 0.9608),
|
|
109
|
+
line: Color(red: 1.0000, green: 1.0000, blue: 1.0000),
|
|
110
|
+
lineStrong: Color(red: 1.0000, green: 1.0000, blue: 1.0000),
|
|
111
|
+
ink: Color(red: 0.0863, green: 0.0784, blue: 0.1098),
|
|
112
|
+
inkDim: Color(red: 0.3569, green: 0.3412, blue: 0.4000),
|
|
113
|
+
inkFaint: Color(red: 0.5451, green: 0.5294, blue: 0.5882),
|
|
114
|
+
scrim: Color(red: 1.0000, green: 1.0000, blue: 1.0000)
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
public enum Radius {
|
|
118
|
+
public static let control: CGFloat = 16
|
|
119
|
+
public static let card: CGFloat = 20
|
|
120
|
+
public static let input: CGFloat = 16
|
|
121
|
+
public static let pill: CGFloat = 999
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
public enum Control {
|
|
125
|
+
public static let height: CGFloat = 56
|
|
126
|
+
public static let heightSmall: CGFloat = 36
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/// The heartbeat. Two UNEQUAL beats then a long rest — systole, a weaker
|
|
130
|
+
/// diastole, then most of the period at rest. THAT MORPHOLOGY is the
|
|
131
|
+
/// signature, not the cadence: a 72 BPM variant was built and rejected.
|
|
132
|
+
public enum Beat {
|
|
133
|
+
public static let duration: Double = 1.5
|
|
134
|
+
public static let delay: Double = 0
|
|
135
|
+
/// (keyTime, scale) — drive a keyframe animation from these.
|
|
136
|
+
public static let steps: [(Double, Double)] = [
|
|
137
|
+
(0, 1),
|
|
138
|
+
(0.14, 1.3),
|
|
139
|
+
(0.28, 1),
|
|
140
|
+
(0.42, 1.3),
|
|
141
|
+
(0.7, 1),
|
|
142
|
+
(1, 1)
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/// THE METTA LIGHT — the session descent. One scalar in, one colour out:
|
|
147
|
+
/// t is 0 at session start and 1 at session end, passing through the seven
|
|
148
|
+
/// gems in order. Guards travel with it — no numerals, no totals, no
|
|
149
|
+
/// streaks, no ranks; the light is the whole signal. The breath is NOT the
|
|
150
|
+
/// heartbeat and carries no claim.
|
|
151
|
+
///
|
|
152
|
+
/// ⚠️ Samples of an OKLAB curve, not the seven stops. Lerping two gems in
|
|
153
|
+
/// sRGB gives a different colour through the middle of every segment than
|
|
154
|
+
/// the web does; these are pre-resolved so both agree.
|
|
155
|
+
public static let mettaRamp: [(r: Double, g: Double, b: Double)] = [
|
|
156
|
+
(0.7843, 0.0627, 0.1804),
|
|
157
|
+
(0.8157, 0.1725, 0.1647),
|
|
158
|
+
(0.8471, 0.2471, 0.1373),
|
|
159
|
+
(0.8784, 0.3059, 0.0980),
|
|
160
|
+
(0.9098, 0.3647, 0.0157),
|
|
161
|
+
(0.9216, 0.4588, 0.0588),
|
|
162
|
+
(0.9333, 0.5451, 0.0980),
|
|
163
|
+
(0.9373, 0.6275, 0.1294),
|
|
164
|
+
(0.9412, 0.7059, 0.1608),
|
|
165
|
+
(0.7804, 0.6980, 0.2745),
|
|
166
|
+
(0.6118, 0.6824, 0.3412),
|
|
167
|
+
(0.4118, 0.6627, 0.3882),
|
|
168
|
+
(0.0000, 0.6392, 0.4235),
|
|
169
|
+
(0.0000, 0.5725, 0.5216),
|
|
170
|
+
(0.0000, 0.4980, 0.6000),
|
|
171
|
+
(0.0000, 0.4196, 0.6667),
|
|
172
|
+
(0.0588, 0.3216, 0.7294),
|
|
173
|
+
(0.2549, 0.3490, 0.7490),
|
|
174
|
+
(0.3804, 0.3686, 0.7647),
|
|
175
|
+
(0.4941, 0.3882, 0.7843),
|
|
176
|
+
(0.6000, 0.4000, 0.8000),
|
|
177
|
+
(0.6863, 0.5451, 0.8549),
|
|
178
|
+
(0.7765, 0.6863, 0.9059),
|
|
179
|
+
(0.8667, 0.8275, 0.9569),
|
|
180
|
+
(0.9569, 0.9686, 1.0000)
|
|
181
|
+
]
|
|
182
|
+
|
|
183
|
+
public static func metta(_ t: Double) -> Color {
|
|
184
|
+
let p = min(max(t, 0), 1) * Double(mettaRamp.count - 1)
|
|
185
|
+
let i = min(Int(p), mettaRamp.count - 2)
|
|
186
|
+
let f = p - Double(i)
|
|
187
|
+
let a = mettaRamp[i], b = mettaRamp[i + 1]
|
|
188
|
+
return Color(
|
|
189
|
+
red: a.r + (b.r - a.r) * f,
|
|
190
|
+
green: a.g + (b.g - a.g) * f,
|
|
191
|
+
blue: a.b + (b.b - a.b) * f
|
|
192
|
+
)
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/// ⚠️ PLACEMENT RULE. `beating` goes on CHROME — a wordmark, an
|
|
196
|
+
/// attribution line — and NEVER on a mark drawn beside a person's name,
|
|
197
|
+
/// where an unverified pulse would be claiming something about them.
|
|
198
|
+
/// Under Reduce Motion: stop, and substitute nothing. The static mark is
|
|
199
|
+
/// Proof of Coordinate, a meaningful state rather than a degradation.
|
|
200
|
+
|
|
201
|
+
/// The B-Emblem path, viewBox 0 0 24 24. The 45° rotation is BAKED INTO
|
|
202
|
+
/// THE COORDINATES — never re-apply a rotation transform.
|
|
203
|
+
public static let emblemPath = "M3.9743 20.0257L3.8824 18.0670C3.5430 11.1232 3.3167 6.5411 5.9896 3.8683C8.1675 1.6904 11.5899 1.6904 13.7678 3.8683C14.9981 5.0986 15.6062 6.8523 15.4719 8.5281C17.1477 8.3938 18.9014 9.0019 20.1317 10.2322C22.3096 12.4101 22.3096 15.8325 20.1317 18.0104C17.4589 20.6833 12.8768 20.4570 5.9260 20.1247L3.9743 20.0257Z"
|
|
204
|
+
}
|