@botspace/tokens 0.0.0-stage → 0.1.1
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/README.md +52 -2
- package/dist/product.d.ts +4 -0
- package/dist/product.js +133 -0
- package/dist/theme.css +102 -0
- package/dist/tokens.d.ts +448 -0
- package/dist/tokens.js +169 -0
- package/dist/tokens.json +806 -0
- package/package.json +42 -4
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
export declare const ink = "#1A1B1C";
|
|
2
|
+
export declare const white = "#FFFFFF";
|
|
3
|
+
/** Brand sky. Grid lines on ink and the hero highlight. Nothing else. */
|
|
4
|
+
export declare const sky = "#C5E7FF";
|
|
5
|
+
/** Cool blue-grey neutral ramp (Material neutral). Replaces Tailwind's default slate. */
|
|
6
|
+
export declare const slate: {
|
|
7
|
+
readonly 50: "#F6FAFE";
|
|
8
|
+
readonly 100: "#F0F4F8";
|
|
9
|
+
readonly 200: "#E5E8ED";
|
|
10
|
+
readonly 300: "#DDE3EA";
|
|
11
|
+
readonly 400: "#C1C7CE";
|
|
12
|
+
readonly 500: "#8B9297";
|
|
13
|
+
readonly 600: "#5A6268";
|
|
14
|
+
readonly 700: "#41484D";
|
|
15
|
+
readonly 800: "#2B3136";
|
|
16
|
+
readonly 900: "#181C1F";
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* The six accents, from colors.bot.space.
|
|
20
|
+
* `base` is the light-scheme role colour (tone 40): grid tiles and marks.
|
|
21
|
+
* `field` is the dark-scheme role colour (tone 80): plain tile grounds (Mayur, 5 Oct 2026).
|
|
22
|
+
* `container` is the Container colour (tone 90): page sections and website tiles.
|
|
23
|
+
*/
|
|
24
|
+
export declare const accents: {
|
|
25
|
+
readonly blue: {
|
|
26
|
+
readonly base: "#465D91";
|
|
27
|
+
readonly field: "#AFC6FF";
|
|
28
|
+
readonly container: "#D9E2FF";
|
|
29
|
+
};
|
|
30
|
+
readonly yellow: {
|
|
31
|
+
readonly base: "#616118";
|
|
32
|
+
readonly field: "#CBCB76";
|
|
33
|
+
readonly container: "#E8E78F";
|
|
34
|
+
};
|
|
35
|
+
readonly magenta: {
|
|
36
|
+
readonly base: "#804D7A";
|
|
37
|
+
readonly field: "#F1B3E6";
|
|
38
|
+
readonly container: "#FFD7F5";
|
|
39
|
+
};
|
|
40
|
+
readonly green: {
|
|
41
|
+
readonly base: "#1E6B4F";
|
|
42
|
+
readonly field: "#8CD5B4";
|
|
43
|
+
readonly container: "#A7F2CF";
|
|
44
|
+
};
|
|
45
|
+
readonly purple: {
|
|
46
|
+
readonly base: "#6A548D";
|
|
47
|
+
readonly field: "#D5BBFC";
|
|
48
|
+
readonly container: "#ECDCFF";
|
|
49
|
+
};
|
|
50
|
+
readonly rose: {
|
|
51
|
+
readonly base: "#8C4A5D";
|
|
52
|
+
readonly field: "#FFB1C5";
|
|
53
|
+
readonly container: "#FFD9E1";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export type Accent = keyof typeof accents;
|
|
57
|
+
export declare const accentNames: Accent[];
|
|
58
|
+
/** Status only. Same values as the product kit, so a "Resolved" chip looks the same everywhere. */
|
|
59
|
+
export declare const status: {
|
|
60
|
+
readonly success: {
|
|
61
|
+
readonly fill: "#C0EFB0";
|
|
62
|
+
readonly text: "#285020";
|
|
63
|
+
};
|
|
64
|
+
readonly warning: {
|
|
65
|
+
readonly fill: "#FFDCC7";
|
|
66
|
+
readonly text: "#6E390E";
|
|
67
|
+
};
|
|
68
|
+
readonly info: {
|
|
69
|
+
readonly fill: "#9EEFFF";
|
|
70
|
+
readonly text: "#004E59";
|
|
71
|
+
};
|
|
72
|
+
readonly danger: {
|
|
73
|
+
readonly fill: "#FFDAD6";
|
|
74
|
+
readonly text: "#93000A";
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export type Status = keyof typeof status;
|
|
78
|
+
/** Material surfaces used by product imagery and tile grounds. */
|
|
79
|
+
export declare const surface: {
|
|
80
|
+
readonly base: "#F6FAFE";
|
|
81
|
+
readonly container: "#EBEEF3";
|
|
82
|
+
readonly high: "#E5E8ED";
|
|
83
|
+
readonly highest: "#DFE3E7";
|
|
84
|
+
readonly dim: "#D7DADF";
|
|
85
|
+
readonly outlineVariant: "#C1C7CE";
|
|
86
|
+
readonly dark: "#181C1F";
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Channel skins for customer-side phones, measured from bot.space tiles and the Lunch & Learn deck
|
|
90
|
+
* (brand repo v2/reference/channels/skins.md, decisions of 5 Oct 2026). Native channel colours that are
|
|
91
|
+
* not tokens live here and nowhere else. Never use Intercom's themes. Links and subtitles are the native
|
|
92
|
+
* hue darkened (or lightened on dark) just enough to pass WCAG AA on the surface they sit on.
|
|
93
|
+
*/
|
|
94
|
+
export declare const skins: {
|
|
95
|
+
readonly whatsapp: {
|
|
96
|
+
readonly wallpaper: "#EAE6E0";
|
|
97
|
+
readonly header: "#EAE6E0";
|
|
98
|
+
readonly divider: "#CCD2D0";
|
|
99
|
+
readonly customer: "#DCF6C5";
|
|
100
|
+
readonly customerText: "#102210";
|
|
101
|
+
readonly business: "#FFFFFF";
|
|
102
|
+
readonly businessText: "#1A1C1B";
|
|
103
|
+
readonly link: "#117DAC";
|
|
104
|
+
readonly name: "#1A1A18";
|
|
105
|
+
readonly subtitle: "#484844";
|
|
106
|
+
};
|
|
107
|
+
readonly instagram: {
|
|
108
|
+
readonly wallpaper: "#FFFFFF";
|
|
109
|
+
readonly header: "#FFFFFF";
|
|
110
|
+
readonly divider: "#E1E1E1";
|
|
111
|
+
readonly customer: "#804D7A";
|
|
112
|
+
readonly customerText: "#FFFFFF";
|
|
113
|
+
readonly business: "#E5E8ED";
|
|
114
|
+
readonly businessText: "#181C1F";
|
|
115
|
+
readonly chip: "#D7DADF";
|
|
116
|
+
readonly link: "#0160A0";
|
|
117
|
+
readonly name: "#1A1B1C";
|
|
118
|
+
readonly subtitle: "#61676D";
|
|
119
|
+
};
|
|
120
|
+
/** Proposed: maps each light role to its dark-scheme token. Not in any shipped BotSpace image yet. */
|
|
121
|
+
readonly "instagram-dark": {
|
|
122
|
+
readonly wallpaper: "#0F1417";
|
|
123
|
+
readonly header: "#0F1417";
|
|
124
|
+
readonly divider: "#262B2E";
|
|
125
|
+
readonly customer: "#804D7A";
|
|
126
|
+
readonly customerText: "#FFFFFF";
|
|
127
|
+
readonly business: "#262B2E";
|
|
128
|
+
readonly businessText: "#DFE3E7";
|
|
129
|
+
readonly chip: "#353A3D";
|
|
130
|
+
readonly link: "#33ACFD";
|
|
131
|
+
readonly name: "#DFE3E7";
|
|
132
|
+
readonly subtitle: "#8B9297";
|
|
133
|
+
};
|
|
134
|
+
readonly webchat: {
|
|
135
|
+
readonly wallpaper: "#FFFFFF";
|
|
136
|
+
readonly header: "#FFFFFF";
|
|
137
|
+
readonly divider: "#C4C7CB";
|
|
138
|
+
readonly customer: "#181C1F";
|
|
139
|
+
readonly customerText: "#FFFFFF";
|
|
140
|
+
readonly business: "#E5E8ED";
|
|
141
|
+
readonly businessText: "#181C1F";
|
|
142
|
+
readonly chip: "#FFFFFF";
|
|
143
|
+
readonly chipBorder: "#E0E0E0";
|
|
144
|
+
readonly link: "#1E6586";
|
|
145
|
+
readonly name: "#1A1B1C";
|
|
146
|
+
readonly subtitle: "#41484D";
|
|
147
|
+
};
|
|
148
|
+
readonly email: {
|
|
149
|
+
readonly wallpaper: "#FFFFFF";
|
|
150
|
+
readonly header: "#FFFFFF";
|
|
151
|
+
readonly divider: "#C2C6C9";
|
|
152
|
+
readonly customer: "#FFFFFF";
|
|
153
|
+
readonly customerText: "#1A1B1C";
|
|
154
|
+
readonly business: "#FFFFFF";
|
|
155
|
+
readonly businessText: "#1A1B1C";
|
|
156
|
+
readonly link: "#1E6586";
|
|
157
|
+
readonly name: "#1A1B1C";
|
|
158
|
+
readonly subtitle: "#41484D";
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
export type Skin = keyof typeof skins;
|
|
162
|
+
/** The soft white frame around product on a tile, and the phone bezel. */
|
|
163
|
+
export declare const frame: {
|
|
164
|
+
readonly width: 7.2;
|
|
165
|
+
readonly light: "rgba(255,255,255,0.715)";
|
|
166
|
+
readonly painting: "rgba(255,255,255,0.80)";
|
|
167
|
+
readonly soft: "rgba(255,255,255,0.12)";
|
|
168
|
+
readonly bezel: "rgba(255,255,255,0.70)";
|
|
169
|
+
};
|
|
170
|
+
/** Figma corner smoothing 100%: corner-shape superellipse(2.29) at 2.21x the Figma radius. */
|
|
171
|
+
export declare const corner: {
|
|
172
|
+
readonly shape: "superellipse(2.29)";
|
|
173
|
+
readonly scale: 2.21;
|
|
174
|
+
};
|
|
175
|
+
/** The Ghibli painting library and each painting's default focus. Files: @botspace/marketing/paintings/<name>.webp */
|
|
176
|
+
export declare const paintings: {
|
|
177
|
+
readonly "flower-shop": "40% 50%";
|
|
178
|
+
readonly "cherry-street": "55% 50%";
|
|
179
|
+
readonly "mountain-meadow": "50% 30%";
|
|
180
|
+
readonly "bee-meadow": "50% 50%";
|
|
181
|
+
};
|
|
182
|
+
export type Painting = keyof typeof paintings;
|
|
183
|
+
/** Chat bubbles in product imagery. Same values as the product kit. */
|
|
184
|
+
export declare const chat: {
|
|
185
|
+
readonly out: "#CEF6E6";
|
|
186
|
+
readonly in: "#EEF1F5";
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Fonts. The app loads them (next/font in the site, @fontsource in tools) and sets
|
|
190
|
+
* --font-styrene and --font-inter. These stacks fall back when it does not.
|
|
191
|
+
* Styrene for display only. Inter for everything else. No mono: numbers use Inter tabular figures.
|
|
192
|
+
*/
|
|
193
|
+
export declare const fonts: {
|
|
194
|
+
readonly display: "var(--font-styrene, \"Styrene A Web\", \"Styrene A\"), var(--font-inter, \"Inter\"), \"Inter Variable\", ui-sans-serif, system-ui, sans-serif";
|
|
195
|
+
readonly sans: "var(--font-inter, \"Inter\"), \"Inter Variable\", ui-sans-serif, system-ui, sans-serif";
|
|
196
|
+
};
|
|
197
|
+
/** Fluid marketing type scale: [size, line-height, letter-spacing]. */
|
|
198
|
+
export declare const type: {
|
|
199
|
+
readonly "display-2xl": readonly ["clamp(3rem, 1.8rem + 5vw, 6rem)", "1", "-0.035em"];
|
|
200
|
+
readonly "display-xl": readonly ["clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem)", "1.04", "-0.03em"];
|
|
201
|
+
readonly "display-lg": readonly ["clamp(2rem, 1.4rem + 2.4vw, 3.5rem)", "1.08", "-0.025em"];
|
|
202
|
+
readonly "display-md": readonly ["clamp(1.625rem, 1.3rem + 1.3vw, 2.5rem)", "1.12", "-0.02em"];
|
|
203
|
+
readonly "display-sm": readonly ["1.5rem", "1.2", "-0.015em"];
|
|
204
|
+
readonly lead: readonly ["clamp(1.125rem, 1rem + 0.4vw, 1.375rem)", "1.5", "-0.005em"];
|
|
205
|
+
readonly eyebrow: readonly ["0.8125rem", "1.2", "0.08em"];
|
|
206
|
+
};
|
|
207
|
+
export declare const radius: {
|
|
208
|
+
readonly chip: "0.375rem";
|
|
209
|
+
readonly card: "1.25rem";
|
|
210
|
+
readonly tile: "2rem";
|
|
211
|
+
readonly frame: "2.5rem";
|
|
212
|
+
readonly pill: "9999px";
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* The brand grid. One cell size everywhere, so grids line up across sections and images.
|
|
216
|
+
* 50px cell, 2px lines (Mayur, 5 Oct 2026). On tiles, lines and stars are one colour: the ground +20 per
|
|
217
|
+
* RGB channel on grid-* grounds, +12 on dark. The anchor crossing is (44.9, 51.7) on a 540 tile.
|
|
218
|
+
*/
|
|
219
|
+
export declare const grid: {
|
|
220
|
+
readonly cell: "50px";
|
|
221
|
+
readonly line: "2px";
|
|
222
|
+
readonly anchor: readonly [44.9, 51.7];
|
|
223
|
+
readonly lineOnInk: "rgb(197 231 255 / 0.22)";
|
|
224
|
+
readonly lineOnAccent: "rgb(26 27 28 / 0.09)";
|
|
225
|
+
};
|
|
226
|
+
/** Motion. Everything respects prefers-reduced-motion by jumping to the final frame. */
|
|
227
|
+
export declare const motion: {
|
|
228
|
+
readonly duration: {
|
|
229
|
+
readonly fast: 160;
|
|
230
|
+
readonly base: 320;
|
|
231
|
+
readonly slow: 640;
|
|
232
|
+
readonly chatStep: 1100;
|
|
233
|
+
readonly marquee: 40000;
|
|
234
|
+
readonly cycle: 9000;
|
|
235
|
+
};
|
|
236
|
+
readonly ease: {
|
|
237
|
+
readonly brand: readonly [0.22, 1, 0.36, 1];
|
|
238
|
+
readonly emphasized: readonly [0.2, 0, 0, 1];
|
|
239
|
+
readonly exit: readonly [0.4, 0, 1, 1];
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
export declare const tokens: {
|
|
243
|
+
ink: string;
|
|
244
|
+
white: string;
|
|
245
|
+
sky: string;
|
|
246
|
+
slate: {
|
|
247
|
+
readonly 50: "#F6FAFE";
|
|
248
|
+
readonly 100: "#F0F4F8";
|
|
249
|
+
readonly 200: "#E5E8ED";
|
|
250
|
+
readonly 300: "#DDE3EA";
|
|
251
|
+
readonly 400: "#C1C7CE";
|
|
252
|
+
readonly 500: "#8B9297";
|
|
253
|
+
readonly 600: "#5A6268";
|
|
254
|
+
readonly 700: "#41484D";
|
|
255
|
+
readonly 800: "#2B3136";
|
|
256
|
+
readonly 900: "#181C1F";
|
|
257
|
+
};
|
|
258
|
+
accents: {
|
|
259
|
+
readonly blue: {
|
|
260
|
+
readonly base: "#465D91";
|
|
261
|
+
readonly field: "#AFC6FF";
|
|
262
|
+
readonly container: "#D9E2FF";
|
|
263
|
+
};
|
|
264
|
+
readonly yellow: {
|
|
265
|
+
readonly base: "#616118";
|
|
266
|
+
readonly field: "#CBCB76";
|
|
267
|
+
readonly container: "#E8E78F";
|
|
268
|
+
};
|
|
269
|
+
readonly magenta: {
|
|
270
|
+
readonly base: "#804D7A";
|
|
271
|
+
readonly field: "#F1B3E6";
|
|
272
|
+
readonly container: "#FFD7F5";
|
|
273
|
+
};
|
|
274
|
+
readonly green: {
|
|
275
|
+
readonly base: "#1E6B4F";
|
|
276
|
+
readonly field: "#8CD5B4";
|
|
277
|
+
readonly container: "#A7F2CF";
|
|
278
|
+
};
|
|
279
|
+
readonly purple: {
|
|
280
|
+
readonly base: "#6A548D";
|
|
281
|
+
readonly field: "#D5BBFC";
|
|
282
|
+
readonly container: "#ECDCFF";
|
|
283
|
+
};
|
|
284
|
+
readonly rose: {
|
|
285
|
+
readonly base: "#8C4A5D";
|
|
286
|
+
readonly field: "#FFB1C5";
|
|
287
|
+
readonly container: "#FFD9E1";
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
surface: {
|
|
291
|
+
readonly base: "#F6FAFE";
|
|
292
|
+
readonly container: "#EBEEF3";
|
|
293
|
+
readonly high: "#E5E8ED";
|
|
294
|
+
readonly highest: "#DFE3E7";
|
|
295
|
+
readonly dim: "#D7DADF";
|
|
296
|
+
readonly outlineVariant: "#C1C7CE";
|
|
297
|
+
readonly dark: "#181C1F";
|
|
298
|
+
};
|
|
299
|
+
skins: {
|
|
300
|
+
readonly whatsapp: {
|
|
301
|
+
readonly wallpaper: "#EAE6E0";
|
|
302
|
+
readonly header: "#EAE6E0";
|
|
303
|
+
readonly divider: "#CCD2D0";
|
|
304
|
+
readonly customer: "#DCF6C5";
|
|
305
|
+
readonly customerText: "#102210";
|
|
306
|
+
readonly business: "#FFFFFF";
|
|
307
|
+
readonly businessText: "#1A1C1B";
|
|
308
|
+
readonly link: "#117DAC";
|
|
309
|
+
readonly name: "#1A1A18";
|
|
310
|
+
readonly subtitle: "#484844";
|
|
311
|
+
};
|
|
312
|
+
readonly instagram: {
|
|
313
|
+
readonly wallpaper: "#FFFFFF";
|
|
314
|
+
readonly header: "#FFFFFF";
|
|
315
|
+
readonly divider: "#E1E1E1";
|
|
316
|
+
readonly customer: "#804D7A";
|
|
317
|
+
readonly customerText: "#FFFFFF";
|
|
318
|
+
readonly business: "#E5E8ED";
|
|
319
|
+
readonly businessText: "#181C1F";
|
|
320
|
+
readonly chip: "#D7DADF";
|
|
321
|
+
readonly link: "#0160A0";
|
|
322
|
+
readonly name: "#1A1B1C";
|
|
323
|
+
readonly subtitle: "#61676D";
|
|
324
|
+
};
|
|
325
|
+
/** Proposed: maps each light role to its dark-scheme token. Not in any shipped BotSpace image yet. */
|
|
326
|
+
readonly "instagram-dark": {
|
|
327
|
+
readonly wallpaper: "#0F1417";
|
|
328
|
+
readonly header: "#0F1417";
|
|
329
|
+
readonly divider: "#262B2E";
|
|
330
|
+
readonly customer: "#804D7A";
|
|
331
|
+
readonly customerText: "#FFFFFF";
|
|
332
|
+
readonly business: "#262B2E";
|
|
333
|
+
readonly businessText: "#DFE3E7";
|
|
334
|
+
readonly chip: "#353A3D";
|
|
335
|
+
readonly link: "#33ACFD";
|
|
336
|
+
readonly name: "#DFE3E7";
|
|
337
|
+
readonly subtitle: "#8B9297";
|
|
338
|
+
};
|
|
339
|
+
readonly webchat: {
|
|
340
|
+
readonly wallpaper: "#FFFFFF";
|
|
341
|
+
readonly header: "#FFFFFF";
|
|
342
|
+
readonly divider: "#C4C7CB";
|
|
343
|
+
readonly customer: "#181C1F";
|
|
344
|
+
readonly customerText: "#FFFFFF";
|
|
345
|
+
readonly business: "#E5E8ED";
|
|
346
|
+
readonly businessText: "#181C1F";
|
|
347
|
+
readonly chip: "#FFFFFF";
|
|
348
|
+
readonly chipBorder: "#E0E0E0";
|
|
349
|
+
readonly link: "#1E6586";
|
|
350
|
+
readonly name: "#1A1B1C";
|
|
351
|
+
readonly subtitle: "#41484D";
|
|
352
|
+
};
|
|
353
|
+
readonly email: {
|
|
354
|
+
readonly wallpaper: "#FFFFFF";
|
|
355
|
+
readonly header: "#FFFFFF";
|
|
356
|
+
readonly divider: "#C2C6C9";
|
|
357
|
+
readonly customer: "#FFFFFF";
|
|
358
|
+
readonly customerText: "#1A1B1C";
|
|
359
|
+
readonly business: "#FFFFFF";
|
|
360
|
+
readonly businessText: "#1A1B1C";
|
|
361
|
+
readonly link: "#1E6586";
|
|
362
|
+
readonly name: "#1A1B1C";
|
|
363
|
+
readonly subtitle: "#41484D";
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
frame: {
|
|
367
|
+
readonly width: 7.2;
|
|
368
|
+
readonly light: "rgba(255,255,255,0.715)";
|
|
369
|
+
readonly painting: "rgba(255,255,255,0.80)";
|
|
370
|
+
readonly soft: "rgba(255,255,255,0.12)";
|
|
371
|
+
readonly bezel: "rgba(255,255,255,0.70)";
|
|
372
|
+
};
|
|
373
|
+
corner: {
|
|
374
|
+
readonly shape: "superellipse(2.29)";
|
|
375
|
+
readonly scale: 2.21;
|
|
376
|
+
};
|
|
377
|
+
paintings: {
|
|
378
|
+
readonly "flower-shop": "40% 50%";
|
|
379
|
+
readonly "cherry-street": "55% 50%";
|
|
380
|
+
readonly "mountain-meadow": "50% 30%";
|
|
381
|
+
readonly "bee-meadow": "50% 50%";
|
|
382
|
+
};
|
|
383
|
+
status: {
|
|
384
|
+
readonly success: {
|
|
385
|
+
readonly fill: "#C0EFB0";
|
|
386
|
+
readonly text: "#285020";
|
|
387
|
+
};
|
|
388
|
+
readonly warning: {
|
|
389
|
+
readonly fill: "#FFDCC7";
|
|
390
|
+
readonly text: "#6E390E";
|
|
391
|
+
};
|
|
392
|
+
readonly info: {
|
|
393
|
+
readonly fill: "#9EEFFF";
|
|
394
|
+
readonly text: "#004E59";
|
|
395
|
+
};
|
|
396
|
+
readonly danger: {
|
|
397
|
+
readonly fill: "#FFDAD6";
|
|
398
|
+
readonly text: "#93000A";
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
chat: {
|
|
402
|
+
readonly out: "#CEF6E6";
|
|
403
|
+
readonly in: "#EEF1F5";
|
|
404
|
+
};
|
|
405
|
+
fonts: {
|
|
406
|
+
readonly display: "var(--font-styrene, \"Styrene A Web\", \"Styrene A\"), var(--font-inter, \"Inter\"), \"Inter Variable\", ui-sans-serif, system-ui, sans-serif";
|
|
407
|
+
readonly sans: "var(--font-inter, \"Inter\"), \"Inter Variable\", ui-sans-serif, system-ui, sans-serif";
|
|
408
|
+
};
|
|
409
|
+
type: {
|
|
410
|
+
readonly "display-2xl": readonly ["clamp(3rem, 1.8rem + 5vw, 6rem)", "1", "-0.035em"];
|
|
411
|
+
readonly "display-xl": readonly ["clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem)", "1.04", "-0.03em"];
|
|
412
|
+
readonly "display-lg": readonly ["clamp(2rem, 1.4rem + 2.4vw, 3.5rem)", "1.08", "-0.025em"];
|
|
413
|
+
readonly "display-md": readonly ["clamp(1.625rem, 1.3rem + 1.3vw, 2.5rem)", "1.12", "-0.02em"];
|
|
414
|
+
readonly "display-sm": readonly ["1.5rem", "1.2", "-0.015em"];
|
|
415
|
+
readonly lead: readonly ["clamp(1.125rem, 1rem + 0.4vw, 1.375rem)", "1.5", "-0.005em"];
|
|
416
|
+
readonly eyebrow: readonly ["0.8125rem", "1.2", "0.08em"];
|
|
417
|
+
};
|
|
418
|
+
radius: {
|
|
419
|
+
readonly chip: "0.375rem";
|
|
420
|
+
readonly card: "1.25rem";
|
|
421
|
+
readonly tile: "2rem";
|
|
422
|
+
readonly frame: "2.5rem";
|
|
423
|
+
readonly pill: "9999px";
|
|
424
|
+
};
|
|
425
|
+
grid: {
|
|
426
|
+
readonly cell: "50px";
|
|
427
|
+
readonly line: "2px";
|
|
428
|
+
readonly anchor: readonly [44.9, 51.7];
|
|
429
|
+
readonly lineOnInk: "rgb(197 231 255 / 0.22)";
|
|
430
|
+
readonly lineOnAccent: "rgb(26 27 28 / 0.09)";
|
|
431
|
+
};
|
|
432
|
+
motion: {
|
|
433
|
+
readonly duration: {
|
|
434
|
+
readonly fast: 160;
|
|
435
|
+
readonly base: 320;
|
|
436
|
+
readonly slow: 640;
|
|
437
|
+
readonly chatStep: 1100;
|
|
438
|
+
readonly marquee: 40000;
|
|
439
|
+
readonly cycle: 9000;
|
|
440
|
+
};
|
|
441
|
+
readonly ease: {
|
|
442
|
+
readonly brand: readonly [0.22, 1, 0.36, 1];
|
|
443
|
+
readonly emphasized: readonly [0.2, 0, 0, 1];
|
|
444
|
+
readonly exit: readonly [0.4, 0, 1, 1];
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
export default tokens;
|
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
// BotSpace brand tokens. The one source for values shared by the marketing site, the marketing kit,
|
|
2
|
+
// creatives (OG images, Remotion videos) and, over time, the product kit.
|
|
3
|
+
// scripts/build.ts writes dist/theme.css (Tailwind v4 @theme) and dist/index.js from this file.
|
|
4
|
+
// Rules (Mayur, 28 Nov 2026):
|
|
5
|
+
// - Ink #1A1B1C is the primary colour. There is no blue primary.
|
|
6
|
+
// - Sky is only for grid lines and the hero highlight.
|
|
7
|
+
// - The six accents are grounds for sections, tiles and images. They are never mapped to agent
|
|
8
|
+
// roles or features. Use them freely for rhythm.
|
|
9
|
+
// - Status colours are for status only (resolved, pending, failed, info).
|
|
10
|
+
// - Take only role and container values from colors.bot.space. Its mid-ramp steps go neon.
|
|
11
|
+
export const ink = "#1A1B1C";
|
|
12
|
+
export const white = "#FFFFFF";
|
|
13
|
+
/** Brand sky. Grid lines on ink and the hero highlight. Nothing else. */
|
|
14
|
+
export const sky = "#C5E7FF";
|
|
15
|
+
/** Cool blue-grey neutral ramp (Material neutral). Replaces Tailwind's default slate. */
|
|
16
|
+
export const slate = {
|
|
17
|
+
50: "#F6FAFE",
|
|
18
|
+
100: "#F0F4F8",
|
|
19
|
+
200: "#E5E8ED",
|
|
20
|
+
300: "#DDE3EA",
|
|
21
|
+
400: "#C1C7CE",
|
|
22
|
+
500: "#8B9297",
|
|
23
|
+
600: "#5A6268",
|
|
24
|
+
700: "#41484D",
|
|
25
|
+
800: "#2B3136",
|
|
26
|
+
900: "#181C1F",
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The six accents, from colors.bot.space.
|
|
30
|
+
* `base` is the light-scheme role colour (tone 40): grid tiles and marks.
|
|
31
|
+
* `field` is the dark-scheme role colour (tone 80): plain tile grounds (Mayur, 5 Oct 2026).
|
|
32
|
+
* `container` is the Container colour (tone 90): page sections and website tiles.
|
|
33
|
+
*/
|
|
34
|
+
export const accents = {
|
|
35
|
+
blue: { base: "#465D91", field: "#AFC6FF", container: "#D9E2FF" },
|
|
36
|
+
yellow: { base: "#616118", field: "#CBCB76", container: "#E8E78F" },
|
|
37
|
+
magenta: { base: "#804D7A", field: "#F1B3E6", container: "#FFD7F5" },
|
|
38
|
+
green: { base: "#1E6B4F", field: "#8CD5B4", container: "#A7F2CF" },
|
|
39
|
+
purple: { base: "#6A548D", field: "#D5BBFC", container: "#ECDCFF" },
|
|
40
|
+
rose: { base: "#8C4A5D", field: "#FFB1C5", container: "#FFD9E1" },
|
|
41
|
+
};
|
|
42
|
+
export const accentNames = Object.keys(accents);
|
|
43
|
+
/** Status only. Same values as the product kit, so a "Resolved" chip looks the same everywhere. */
|
|
44
|
+
export const status = {
|
|
45
|
+
success: { fill: "#C0EFB0", text: "#285020" },
|
|
46
|
+
warning: { fill: "#FFDCC7", text: "#6E390E" },
|
|
47
|
+
info: { fill: "#9EEFFF", text: "#004E59" },
|
|
48
|
+
danger: { fill: "#FFDAD6", text: "#93000A" },
|
|
49
|
+
};
|
|
50
|
+
/** Material surfaces used by product imagery and tile grounds. */
|
|
51
|
+
export const surface = {
|
|
52
|
+
base: "#F6FAFE", // chat area, panels
|
|
53
|
+
container: "#EBEEF3", // app page canvas, the `surface` tile ground
|
|
54
|
+
high: "#E5E8ED",
|
|
55
|
+
highest: "#DFE3E7",
|
|
56
|
+
dim: "#D7DADF",
|
|
57
|
+
outlineVariant: "#C1C7CE",
|
|
58
|
+
dark: "#181C1F", // the `dark` tile ground
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Channel skins for customer-side phones, measured from bot.space tiles and the Lunch & Learn deck
|
|
62
|
+
* (brand repo v2/reference/channels/skins.md, decisions of 5 Oct 2026). Native channel colours that are
|
|
63
|
+
* not tokens live here and nowhere else. Never use Intercom's themes. Links and subtitles are the native
|
|
64
|
+
* hue darkened (or lightened on dark) just enough to pass WCAG AA on the surface they sit on.
|
|
65
|
+
*/
|
|
66
|
+
export const skins = {
|
|
67
|
+
whatsapp: {
|
|
68
|
+
wallpaper: "#EAE6E0", header: "#EAE6E0", divider: "#CCD2D0",
|
|
69
|
+
customer: "#DCF6C5", customerText: "#102210", // outgoing (the customer's phone)
|
|
70
|
+
business: "#FFFFFF", businessText: "#1A1C1B",
|
|
71
|
+
link: "#117DAC", name: "#1A1A18", subtitle: "#484844",
|
|
72
|
+
},
|
|
73
|
+
instagram: {
|
|
74
|
+
wallpaper: "#FFFFFF", header: "#FFFFFF", divider: "#E1E1E1",
|
|
75
|
+
customer: "#804D7A", customerText: "#FFFFFF",
|
|
76
|
+
business: "#E5E8ED", businessText: "#181C1F", chip: "#D7DADF",
|
|
77
|
+
link: "#0160A0", name: "#1A1B1C", subtitle: "#61676D",
|
|
78
|
+
},
|
|
79
|
+
/** Proposed: maps each light role to its dark-scheme token. Not in any shipped BotSpace image yet. */
|
|
80
|
+
"instagram-dark": {
|
|
81
|
+
wallpaper: "#0F1417", header: "#0F1417", divider: "#262B2E",
|
|
82
|
+
customer: "#804D7A", customerText: "#FFFFFF",
|
|
83
|
+
business: "#262B2E", businessText: "#DFE3E7", chip: "#353A3D",
|
|
84
|
+
link: "#33ACFD", name: "#DFE3E7", subtitle: "#8B9297",
|
|
85
|
+
},
|
|
86
|
+
webchat: {
|
|
87
|
+
wallpaper: "#FFFFFF", header: "#FFFFFF", divider: "#C4C7CB",
|
|
88
|
+
customer: "#181C1F", customerText: "#FFFFFF",
|
|
89
|
+
business: "#E5E8ED", businessText: "#181C1F", chip: "#FFFFFF", chipBorder: "#E0E0E0",
|
|
90
|
+
link: "#1E6586", name: "#1A1B1C", subtitle: "#41484D",
|
|
91
|
+
},
|
|
92
|
+
email: {
|
|
93
|
+
wallpaper: "#FFFFFF", header: "#FFFFFF", divider: "#C2C6C9",
|
|
94
|
+
customer: "#FFFFFF", customerText: "#1A1B1C",
|
|
95
|
+
business: "#FFFFFF", businessText: "#1A1B1C",
|
|
96
|
+
link: "#1E6586", name: "#1A1B1C", subtitle: "#41484D",
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
/** The soft white frame around product on a tile, and the phone bezel. */
|
|
100
|
+
export const frame = {
|
|
101
|
+
width: 7.2, // px at the 540 tile
|
|
102
|
+
light: "rgba(255,255,255,0.715)",
|
|
103
|
+
painting: "rgba(255,255,255,0.80)", // on paintings and the surface ground
|
|
104
|
+
soft: "rgba(255,255,255,0.12)", // dark product UI on dark grounds
|
|
105
|
+
bezel: "rgba(255,255,255,0.70)",
|
|
106
|
+
};
|
|
107
|
+
/** Figma corner smoothing 100%: corner-shape superellipse(2.29) at 2.21x the Figma radius. */
|
|
108
|
+
export const corner = { shape: "superellipse(2.29)", scale: 2.21 };
|
|
109
|
+
/** The Ghibli painting library and each painting's default focus. Files: @botspace/marketing/paintings/<name>.webp */
|
|
110
|
+
export const paintings = {
|
|
111
|
+
"flower-shop": "40% 50%",
|
|
112
|
+
"cherry-street": "55% 50%",
|
|
113
|
+
"mountain-meadow": "50% 30%",
|
|
114
|
+
"bee-meadow": "50% 50%",
|
|
115
|
+
};
|
|
116
|
+
/** Chat bubbles in product imagery. Same values as the product kit. */
|
|
117
|
+
export const chat = {
|
|
118
|
+
out: "#CEF6E6",
|
|
119
|
+
in: "#EEF1F5",
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Fonts. The app loads them (next/font in the site, @fontsource in tools) and sets
|
|
123
|
+
* --font-styrene and --font-inter. These stacks fall back when it does not.
|
|
124
|
+
* Styrene for display only. Inter for everything else. No mono: numbers use Inter tabular figures.
|
|
125
|
+
*/
|
|
126
|
+
export const fonts = {
|
|
127
|
+
display: `var(--font-styrene, "Styrene A Web", "Styrene A"), var(--font-inter, "Inter"), "Inter Variable", ui-sans-serif, system-ui, sans-serif`,
|
|
128
|
+
sans: `var(--font-inter, "Inter"), "Inter Variable", ui-sans-serif, system-ui, sans-serif`,
|
|
129
|
+
};
|
|
130
|
+
/** Fluid marketing type scale: [size, line-height, letter-spacing]. */
|
|
131
|
+
export const type = {
|
|
132
|
+
"display-2xl": ["clamp(3rem, 1.8rem + 5vw, 6rem)", "1", "-0.035em"],
|
|
133
|
+
"display-xl": ["clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem)", "1.04", "-0.03em"],
|
|
134
|
+
"display-lg": ["clamp(2rem, 1.4rem + 2.4vw, 3.5rem)", "1.08", "-0.025em"],
|
|
135
|
+
"display-md": ["clamp(1.625rem, 1.3rem + 1.3vw, 2.5rem)", "1.12", "-0.02em"],
|
|
136
|
+
"display-sm": ["1.5rem", "1.2", "-0.015em"],
|
|
137
|
+
lead: ["clamp(1.125rem, 1rem + 0.4vw, 1.375rem)", "1.5", "-0.005em"],
|
|
138
|
+
eyebrow: ["0.8125rem", "1.2", "0.08em"],
|
|
139
|
+
};
|
|
140
|
+
export const radius = {
|
|
141
|
+
chip: "0.375rem",
|
|
142
|
+
card: "1.25rem",
|
|
143
|
+
tile: "2rem",
|
|
144
|
+
frame: "2.5rem",
|
|
145
|
+
pill: "9999px",
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* The brand grid. One cell size everywhere, so grids line up across sections and images.
|
|
149
|
+
* 50px cell, 2px lines (Mayur, 5 Oct 2026). On tiles, lines and stars are one colour: the ground +20 per
|
|
150
|
+
* RGB channel on grid-* grounds, +12 on dark. The anchor crossing is (44.9, 51.7) on a 540 tile.
|
|
151
|
+
*/
|
|
152
|
+
export const grid = {
|
|
153
|
+
cell: "50px",
|
|
154
|
+
line: "2px",
|
|
155
|
+
anchor: [44.9, 51.7],
|
|
156
|
+
lineOnInk: "rgb(197 231 255 / 0.22)",
|
|
157
|
+
lineOnAccent: "rgb(26 27 28 / 0.09)",
|
|
158
|
+
};
|
|
159
|
+
/** Motion. Everything respects prefers-reduced-motion by jumping to the final frame. */
|
|
160
|
+
export const motion = {
|
|
161
|
+
duration: { fast: 160, base: 320, slow: 640, chatStep: 1100, marquee: 40000, cycle: 9000 },
|
|
162
|
+
ease: {
|
|
163
|
+
brand: [0.22, 1, 0.36, 1],
|
|
164
|
+
emphasized: [0.2, 0, 0, 1],
|
|
165
|
+
exit: [0.4, 0, 1, 1],
|
|
166
|
+
},
|
|
167
|
+
};
|
|
168
|
+
export const tokens = { ink, white, sky, slate, accents, surface, skins, frame, corner, paintings, status, chat, fonts, type, radius, grid, motion };
|
|
169
|
+
export default tokens;
|