@aginies/tokens 0.1.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.
@@ -0,0 +1,357 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "color": {
4
+ "dark": {
5
+ "bg": "#070A14",
6
+ "bg-2": "#0B1020",
7
+ "panel": "#0E1426",
8
+ "panel-2": "#121A30",
9
+ "panel-3": "#182240",
10
+ "line": "#1B2238",
11
+ "line-2": "#2A3350",
12
+ "line-3": "#3C4560",
13
+ "text": "#E7ECF7",
14
+ "text-2": "#A9B2CC",
15
+ "mute": "#7F8AA8",
16
+ "signal": "#5FC8FF",
17
+ "signal-2": "#01B1F7",
18
+ "signal-ink": "#06111F",
19
+ "signal-soft": "rgba(95, 200, 255, 0.12)",
20
+ "ok": "#4FD1A0",
21
+ "ok-ink": "#06111F",
22
+ "ok-soft": "rgba(79, 209, 160, 0.14)",
23
+ "warn": "#F2B35B",
24
+ "warn-ink": "#06111F",
25
+ "warn-soft": "rgba(242, 179, 91, 0.14)",
26
+ "bad": "#FF7A7A",
27
+ "bad-ink": "#06111F",
28
+ "bad-soft": "rgba(255, 122, 122, 0.14)",
29
+ "shadow": "0 20px 60px rgba(0, 0, 0, 0.45)",
30
+ "shadow-sm": "0 8px 24px rgba(0, 0, 0, 0.35)",
31
+ "overlay": "rgba(7, 10, 20, 0.6)",
32
+ "ramps": {
33
+ "signal": {
34
+ "50": "#EBF7FF",
35
+ "100": "#D3EEFF",
36
+ "200": "#ADDEFB",
37
+ "300": "#7AC7F1",
38
+ "400": "#4BAFE2",
39
+ "500": "#2196CA",
40
+ "600": "#087DAC",
41
+ "700": "#01648B",
42
+ "800": "#024D6B",
43
+ "900": "#00364E",
44
+ "950": "#002435"
45
+ },
46
+ "ok": {
47
+ "50": "#E7FBF1",
48
+ "100": "#D0F3E2",
49
+ "200": "#ABE5CA",
50
+ "300": "#76D2AB",
51
+ "400": "#41BC8E",
52
+ "500": "#10A376",
53
+ "600": "#008861",
54
+ "700": "#056D4E",
55
+ "800": "#05543B",
56
+ "900": "#013C29",
57
+ "950": "#01281A"
58
+ },
59
+ "warn": {
60
+ "50": "#FFF3E5",
61
+ "100": "#FBE6CC",
62
+ "200": "#F1D0A6",
63
+ "300": "#E3B272",
64
+ "400": "#D09643",
65
+ "500": "#B97D19",
66
+ "600": "#9C6601",
67
+ "700": "#7D5205",
68
+ "800": "#613E00",
69
+ "900": "#452B01",
70
+ "950": "#2F1C00"
71
+ },
72
+ "bad": {
73
+ "50": "#FFF2F1",
74
+ "100": "#FFE2E0",
75
+ "200": "#FFC5C2",
76
+ "300": "#FE9E9B",
77
+ "400": "#F47777",
78
+ "500": "#DC5A5D",
79
+ "600": "#BC4548",
80
+ "700": "#9B3337",
81
+ "800": "#782629",
82
+ "900": "#561A1C",
83
+ "950": "#3C0E10"
84
+ }
85
+ }
86
+ },
87
+ "light": {
88
+ "bg": "#F4F6FA",
89
+ "bg-2": "#FFFFFF",
90
+ "panel": "#FFFFFF",
91
+ "panel-2": "#EEF1F7",
92
+ "panel-3": "#E4E9F2",
93
+ "line": "#DCE1EC",
94
+ "line-2": "#C5CCDB",
95
+ "line-3": "#A9B2CC",
96
+ "text": "#0B1220",
97
+ "text-2": "#3C4560",
98
+ "mute": "#6B7590",
99
+ "signal": "#0077C2",
100
+ "signal-2": "#005E9A",
101
+ "signal-ink": "#FFFFFF",
102
+ "signal-soft": "rgba(0, 119, 194, 0.10)",
103
+ "ok": "#0B7F57",
104
+ "ok-ink": "#FFFFFF",
105
+ "ok-soft": "rgba(11, 127, 87, 0.12)",
106
+ "warn": "#9C5A12",
107
+ "warn-ink": "#FFFFFF",
108
+ "warn-soft": "rgba(156, 90, 18, 0.12)",
109
+ "bad": "#B3261E",
110
+ "bad-ink": "#FFFFFF",
111
+ "bad-soft": "rgba(179, 38, 30, 0.10)",
112
+ "shadow": "0 20px 50px rgba(11, 18, 32, 0.10)",
113
+ "shadow-sm": "0 8px 20px rgba(11, 18, 32, 0.08)",
114
+ "overlay": "rgba(11, 18, 32, 0.45)",
115
+ "ramps": {
116
+ "signal": {
117
+ "50": "#EEF6FF",
118
+ "100": "#D9ECFF",
119
+ "200": "#B5DBFE",
120
+ "300": "#82C3FD",
121
+ "400": "#52AAF4",
122
+ "500": "#2E90DD",
123
+ "600": "#1578BF",
124
+ "700": "#03609D",
125
+ "800": "#034979",
126
+ "900": "#033457",
127
+ "950": "#01223D"
128
+ },
129
+ "ok": {
130
+ "50": "#EAFAF1",
131
+ "100": "#D5F2E2",
132
+ "200": "#B4E3CA",
133
+ "300": "#87CEAB",
134
+ "400": "#5EB88F",
135
+ "500": "#3CA076",
136
+ "600": "#268660",
137
+ "700": "#166D4B",
138
+ "800": "#105339",
139
+ "900": "#0A3B28",
140
+ "950": "#022819"
141
+ },
142
+ "warn": {
143
+ "50": "#FFF3E9",
144
+ "100": "#FDE4D1",
145
+ "200": "#F4CDAE",
146
+ "300": "#E7AF7F",
147
+ "400": "#D59257",
148
+ "500": "#BD7838",
149
+ "600": "#A16224",
150
+ "700": "#844D16",
151
+ "800": "#653B0F",
152
+ "900": "#492909",
153
+ "950": "#321A03"
154
+ },
155
+ "bad": {
156
+ "50": "#FFF2F0",
157
+ "100": "#FEE2DD",
158
+ "200": "#FFC6BD",
159
+ "300": "#FE9F91",
160
+ "400": "#FB7363",
161
+ "500": "#E25547",
162
+ "600": "#C23F34",
163
+ "700": "#A02E25",
164
+ "800": "#7C221B",
165
+ "900": "#591711",
166
+ "950": "#3F0B08"
167
+ }
168
+ }
169
+ },
170
+ "neutral": {
171
+ "50": "#F4F6FA",
172
+ "100": "#EEF1F7",
173
+ "200": "#DCE1EC",
174
+ "300": "#C5CCDB",
175
+ "400": "#A9B2CC",
176
+ "500": "#7F8AA8",
177
+ "600": "#6B7590",
178
+ "700": "#3C4560",
179
+ "800": "#2A3350",
180
+ "900": "#1B2238",
181
+ "950": "#0B1020"
182
+ },
183
+ "data": [
184
+ "signal",
185
+ "ok",
186
+ "warn",
187
+ "bad",
188
+ "text-2",
189
+ "mute"
190
+ ],
191
+ "canvas": {
192
+ "canvas-bg": "bg",
193
+ "canvas-grid": "line",
194
+ "canvas-node": "panel",
195
+ "canvas-node-line": "line-2",
196
+ "edge": "line-2",
197
+ "edge-hover": "text-2",
198
+ "edge-active": "signal",
199
+ "execution": "ok"
200
+ }
201
+ },
202
+ "fonts": {
203
+ "display": "'Bricolage Grotesque Variable', 'Instrument Sans Variable', ui-sans-serif, system-ui, sans-serif",
204
+ "body": "'Instrument Sans Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif",
205
+ "mono": "'JetBrains Mono Variable', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"
206
+ },
207
+ "radius": {
208
+ "sm": "4px",
209
+ "md": "6px",
210
+ "lg": "10px",
211
+ "xl": "14px",
212
+ "2xl": "20px",
213
+ "full": "9999px"
214
+ },
215
+ "space": {
216
+ "1": "4px",
217
+ "2": "8px",
218
+ "3": "12px",
219
+ "4": "16px",
220
+ "5": "24px",
221
+ "6": "32px",
222
+ "7": "48px",
223
+ "8": "64px"
224
+ },
225
+ "type": {
226
+ "display": {
227
+ "size": "clamp(40px, 6.4vw, 88px)",
228
+ "lineHeight": "0.96",
229
+ "letterSpacing": "-0.04em",
230
+ "family": "display",
231
+ "weight": 600,
232
+ "opsz": 96
233
+ },
234
+ "h1": {
235
+ "size": "clamp(36px, 5.2vw, 68px)",
236
+ "lineHeight": "1",
237
+ "letterSpacing": "-0.035em",
238
+ "family": "display",
239
+ "weight": 600,
240
+ "opsz": 96
241
+ },
242
+ "h2": {
243
+ "size": "clamp(28px, 3.8vw, 50px)",
244
+ "lineHeight": "1.04",
245
+ "letterSpacing": "-0.03em",
246
+ "family": "display",
247
+ "weight": 600,
248
+ "opsz": 72
249
+ },
250
+ "h3": {
251
+ "size": "clamp(20px, 2vw, 26px)",
252
+ "lineHeight": "1.2",
253
+ "letterSpacing": "-0.02em",
254
+ "family": "display",
255
+ "weight": 600
256
+ },
257
+ "h4": {
258
+ "size": "17px",
259
+ "lineHeight": "1.3",
260
+ "letterSpacing": "-0.01em",
261
+ "family": "display",
262
+ "weight": 600
263
+ },
264
+ "stat": {
265
+ "size": "clamp(30px, 3.4vw, 44px)",
266
+ "lineHeight": "1",
267
+ "letterSpacing": "-0.03em",
268
+ "family": "display",
269
+ "weight": 600
270
+ },
271
+ "lede": {
272
+ "size": "clamp(17px, 1.4vw, 20px)",
273
+ "lineHeight": "1.5"
274
+ },
275
+ "body": {
276
+ "size": "16px",
277
+ "lineHeight": "1.55"
278
+ },
279
+ "body-2": {
280
+ "size": "15px",
281
+ "lineHeight": "1.5"
282
+ },
283
+ "small": {
284
+ "size": "13.5px",
285
+ "lineHeight": "1.45"
286
+ },
287
+ "eyebrow": {
288
+ "size": "11.5px",
289
+ "lineHeight": "1",
290
+ "letterSpacing": "0.14em",
291
+ "family": "mono",
292
+ "weight": 500,
293
+ "transform": "uppercase"
294
+ },
295
+ "label": {
296
+ "size": "11px",
297
+ "lineHeight": "1",
298
+ "letterSpacing": "0.1em",
299
+ "family": "mono",
300
+ "weight": 500,
301
+ "transform": "uppercase"
302
+ },
303
+ "tag": {
304
+ "size": "11.5px",
305
+ "lineHeight": "1",
306
+ "letterSpacing": "0.04em",
307
+ "family": "mono"
308
+ },
309
+ "ui": {
310
+ "size": "13px",
311
+ "lineHeight": "1.4"
312
+ },
313
+ "ui-sm": {
314
+ "size": "12px",
315
+ "lineHeight": "1.35"
316
+ },
317
+ "ui-xs": {
318
+ "size": "11px",
319
+ "lineHeight": "1.3"
320
+ }
321
+ },
322
+ "motion": {
323
+ "duration-fast": "150ms",
324
+ "duration-base": "200ms",
325
+ "duration-slow": "300ms",
326
+ "duration-enter": "600ms",
327
+ "ease-enter": "cubic-bezier(0.2, 0.7, 0.2, 1)"
328
+ },
329
+ "layout": {
330
+ "max": "1200px",
331
+ "gutter": "clamp(20px, 4vw, 40px)",
332
+ "section-y": "clamp(64px, 9vw, 128px)",
333
+ "section-y-tight": "clamp(40px, 6vw, 80px)"
334
+ },
335
+ "breakpoints": {
336
+ "sm": "640px",
337
+ "md": "768px",
338
+ "lg": "1024px",
339
+ "xl": "1280px",
340
+ "2xl": "1536px",
341
+ "nav": "1180px",
342
+ "wide": "1340px"
343
+ },
344
+ "z": {
345
+ "base": 0,
346
+ "raised": 10,
347
+ "sticky": 50,
348
+ "dropdown": 100,
349
+ "modal": 200,
350
+ "toast": 300
351
+ },
352
+ "focus": {
353
+ "ring": "2px solid var(--signal)",
354
+ "ring-offset": "3px",
355
+ "field-ring": "0 0 0 3px var(--signal-soft)"
356
+ }
357
+ }
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@aginies/tokens",
3
+ "version": "0.1.0",
4
+ "description": "Aginies design tokens: CSS custom properties, JSON and a Tailwind CSS preset",
5
+ "license": "MIT",
6
+ "author": "Abra Partners",
7
+ "homepage": "https://www.aginies.com",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/abrapartners/agiwebuikit.git",
11
+ "directory": "packages/tokens"
12
+ },
13
+ "keywords": [
14
+ "aginies",
15
+ "design-tokens",
16
+ "design-system",
17
+ "tailwind",
18
+ "css-variables"
19
+ ],
20
+ "type": "module",
21
+ "sideEffects": [
22
+ "*.css"
23
+ ],
24
+ "main": "./dist/index.cjs",
25
+ "module": "./dist/index.js",
26
+ "types": "./dist/index.d.ts",
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/index.d.ts",
30
+ "import": "./dist/index.js",
31
+ "require": "./dist/index.cjs"
32
+ },
33
+ "./tailwind-preset": {
34
+ "types": "./dist/preset.d.ts",
35
+ "import": "./dist/preset.js",
36
+ "require": "./dist/preset.cjs"
37
+ },
38
+ "./tokens.css": "./dist/tokens.css",
39
+ "./legacy-bridge.css": "./dist/legacy-bridge.css",
40
+ "./tokens.json": "./dist/tokens.json"
41
+ },
42
+ "files": [
43
+ "dist",
44
+ "README.md"
45
+ ],
46
+ "scripts": {
47
+ "generate": "node --experimental-strip-types --no-warnings src/build.ts",
48
+ "build": "tsup && node --experimental-strip-types --no-warnings src/build.ts",
49
+ "type-check": "tsc --noEmit",
50
+ "test": "vitest run --passWithNoTests",
51
+ "sync:platform": "node --experimental-strip-types --no-warnings scripts/sync-platform.ts"
52
+ },
53
+ "publishConfig": {
54
+ "access": "public"
55
+ },
56
+ "peerDependencies": {
57
+ "tailwindcss": ">=3.4.0 <4"
58
+ },
59
+ "peerDependenciesMeta": {
60
+ "tailwindcss": {
61
+ "optional": true
62
+ }
63
+ },
64
+ "devDependencies": {
65
+ "tailwindcss": "^3.4.17"
66
+ }
67
+ }