@cloudnyx/design-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,388 @@
1
+ {
2
+ "light": {
3
+ "color": {
4
+ "c-accent": "#DE87A6",
5
+ "c-accent-rgb": "222, 135, 166",
6
+ "c-purple": "#A892E0",
7
+ "c-purple-rgb": "168, 146, 224",
8
+ "c-tech": "#88C2D4",
9
+ "c-tech-rgb": "136, 194, 212",
10
+ "c-life": "#F4BC85",
11
+ "c-life-rgb": "244, 188, 133",
12
+ "c-bg": "#fdfbfe",
13
+ "c-bg-rgb": "253, 251, 254",
14
+ "c-surface": "rgba(255, 255, 255, 0.78)",
15
+ "c-border": "rgba(255, 255, 255, 0.6)",
16
+ "c-text-1": "#334155",
17
+ "c-text-2": "#64748b",
18
+ "c-divider": "#f1f5f9",
19
+ "c-success": "#34d399",
20
+ "c-warning": "#f4bc85",
21
+ "c-error": "#ef4444",
22
+ "c-info": "#88c2d4",
23
+ "paper": "#fdfbfe",
24
+ "rose-soft": "222, 135, 166",
25
+ "violet-soft": "168, 146, 224",
26
+ "sky-soft": "136, 194, 212",
27
+ "rose-deep": "#c76a92",
28
+ "rose-deep-rgb": "199, 106, 146",
29
+ "purple-deep": "#8b6bf0",
30
+ "purple-deep-rgb": "139, 107, 240",
31
+ "rose-light": "#f9a8d4",
32
+ "rose-light-rgb": "249, 168, 212",
33
+ "violet-light": "#c084fc",
34
+ "violet-light-rgb": "192, 132, 252",
35
+ "rose-bright": "#f472b6",
36
+ "rose-bright-rgb": "244, 114, 182",
37
+ "sky-light": "#7dd3fc",
38
+ "sky-light-rgb": "125, 211, 252",
39
+ "rose-mid": "#f7b2d0",
40
+ "rose-warm": "#ef93bd",
41
+ "violet-warm": "#d98ed8",
42
+ "purple-mid": "#c4a3f0",
43
+ "pink-pale": "#ffd6e6",
44
+ "violet-pale": "#e9d5ff",
45
+ "discover-bg": "#f5f0fa",
46
+ "rose-deep-light": "#f0b9d0",
47
+ "online": "#34d399"
48
+ },
49
+ "hsl": {
50
+ "background": "0 0% 100%",
51
+ "foreground": "222.2 84% 4.9%",
52
+ "primary": "330 81% 60%",
53
+ "primary-foreground": "210 40% 98%",
54
+ "secondary": "210 40% 96.1%",
55
+ "secondary-foreground": "222.2 47.4% 11.2%",
56
+ "accent": "330 81% 96%",
57
+ "accent-foreground": "222.2 47.4% 11.2%",
58
+ "card": "0 0% 100%",
59
+ "card-foreground": "222.2 84% 4.9%",
60
+ "border": "214.3 31.8% 91.4%",
61
+ "input": "214.3 31.8% 91.4%",
62
+ "ring": "330 81% 60%",
63
+ "destructive": "0 84.2% 60.2%",
64
+ "destructive-foreground": "210 40% 98%",
65
+ "muted": "210 40% 96.1%",
66
+ "muted-foreground": "215.4 16.3% 46.9%"
67
+ },
68
+ "glass": {
69
+ "glass-blur-subtle": "blur(8px)",
70
+ "glass-blur": "blur(16px)",
71
+ "glass-blur-medium": "blur(20px)",
72
+ "glass-blur-strong": "blur(24px)",
73
+ "glass-blur-card": "blur(28px)",
74
+ "glass-card-saturate": "1.7",
75
+ "glass-surface": "rgba(255, 255, 255, 0.82)",
76
+ "glass-surface-hover": "rgba(255, 255, 255, 0.72)",
77
+ "glass-surface-subtle": "rgba(255, 255, 255, 0.2)",
78
+ "glass-surface-dark": "rgba(0, 0, 0, 0.05)",
79
+ "glass-edge-strong": "2px solid rgba(255, 255, 255, 0.5)",
80
+ "glass-edge-soft": "1px solid rgba(255, 255, 255, 0.25)",
81
+ "glass-edge-inset": "1px solid rgba(0, 0, 0, 0.06)",
82
+ "glass-accent-1": "236, 72, 153",
83
+ "glass-accent-2": "34, 211, 238",
84
+ "glass-vivid-bg": "var(--glass-surface)",
85
+ "glass-vivid-saturate": "1.25",
86
+ "glass-vivid-edge-top": "var(--glass-edge-strong)",
87
+ "glass-vivid-edge-bottom": "var(--glass-edge-soft)",
88
+ "glass-vivid-shadow": "var(--shadow-high)"
89
+ },
90
+ "clay": {
91
+ "clay-surface": "rgba(245, 240, 236, 0.6)",
92
+ "clay-inner": "inset 0 2px 4px rgba(255, 255, 255, 0.6), inset 0 -2px 4px rgba(0, 0, 0, 0.05)",
93
+ "clay-inner-strong": "inset 0 3px 6px rgba(255, 255, 255, 0.7), inset 0 -3px 6px rgba(0, 0, 0, 0.06)"
94
+ },
95
+ "text": {
96
+ "text-glass": "#1a1a1a",
97
+ "text-glass-shadow": "0 1px 0 rgba(255, 255, 255, 0.3)",
98
+ "text-glass-muted": "rgba(26, 26, 26, 0.55)",
99
+ "ink": "var(--c-text-1, #334155)",
100
+ "ink-2": "var(--c-text-2, #64748b)"
101
+ },
102
+ "shadow": {
103
+ "shadow-low": "0 4px 12px rgba(0, 0, 0, 0.06)",
104
+ "shadow-medium": "0 8px 24px rgba(0, 0, 0, 0.08)",
105
+ "shadow-high": "0 12px 40px rgba(0, 0, 0, 0.2)",
106
+ "shadow-rest": "0 4px 20px rgba(44, 42, 41, 0.04), 0 1px 3px rgba(44, 42, 41, 0.02)",
107
+ "shadow-hover": "0 8px 32px rgba(222, 135, 166, 0.12), 0 2px 6px rgba(44, 42, 41, 0.03)",
108
+ "shadow-float": "0 20px 48px rgba(0, 0, 0, 0.14)",
109
+ "shadow-image": "0 6px 24px rgba(44, 42, 41, 0.08)",
110
+ "shadow-soft": "0 2px 8px -2px rgba(0, 0, 0, 0.08), 0 4px 16px -4px rgba(0, 0, 0, 0.06)",
111
+ "shadow-card-medium": "0 4px 12px -2px rgba(0, 0, 0, 0.12), 0 8px 24px -4px rgba(0, 0, 0, 0.08)",
112
+ "shadow-glow": "0 0 20px 2px rgba(236, 72, 153, 0.15)"
113
+ },
114
+ "spacing": {
115
+ "sp-1": "1px",
116
+ "sp-3": "3px",
117
+ "sp-2xs": "2px",
118
+ "sp-xs": "4px",
119
+ "sp-xsh": "5px",
120
+ "sp-sm-": "6px",
121
+ "sp-sm": "8px",
122
+ "sp-smh": "9px",
123
+ "sp-sm2": "10px",
124
+ "sp-sm2h": "11px",
125
+ "sp-md-": "12px",
126
+ "sp-md": "16px",
127
+ "sp-mdh": "18px",
128
+ "sp-lg-": "20px",
129
+ "sp-lg": "24px",
130
+ "sp-lgh": "26px",
131
+ "sp-xl-": "28px",
132
+ "sp-xl": "32px",
133
+ "sp-xlh": "36px",
134
+ "sp-2xl-": "40px",
135
+ "sp-2xl": "48px",
136
+ "sp-2xlh": "52px",
137
+ "sp-3xl-": "56px",
138
+ "sp-3xl": "64px",
139
+ "sp-4xl": "80px",
140
+ "sp-5xl": "96px",
141
+ "sp-6xl": "120px"
142
+ },
143
+ "radius": {
144
+ "radius-2xs": "2px",
145
+ "radius-xs": "4px",
146
+ "radius-sm": "6px",
147
+ "radius-md": "8px",
148
+ "radius-lg": "10px",
149
+ "radius-xl": "12px",
150
+ "radius-2xl": "14px",
151
+ "radius-3xl": "16px",
152
+ "radius-4xl": "18px",
153
+ "radius-5xl": "20px",
154
+ "radius-6xl": "22px",
155
+ "radius-full": "999px"
156
+ },
157
+ "motion": {
158
+ "ease-viscous": "cubic-bezier(0.16, 1, 0.3, 1)",
159
+ "ease-soft": "cubic-bezier(0.22, 0.61, 0.3, 1)",
160
+ "ease-spring": "cubic-bezier(0.34, 1.56, 0.64, 1)",
161
+ "dur-micro": "80ms",
162
+ "dur-fast": "150ms",
163
+ "dur-normal": "250ms",
164
+ "dur-slow": "400ms",
165
+ "dur-spring": "500ms",
166
+ "t-fast": "150ms cubic-bezier(0.4, 0, 0.2, 1)",
167
+ "t-normal": "250ms cubic-bezier(0.4, 0, 0.2, 1)",
168
+ "t-spring": "400ms cubic-bezier(0.34, 1.56, 0.64, 1)"
169
+ },
170
+ "opacity": {
171
+ "op-disabled": "0.4",
172
+ "op-muted": "0.55",
173
+ "op-soft": "0.65",
174
+ "op-medium": "0.75",
175
+ "op-strong": "0.85",
176
+ "op-full": "1"
177
+ },
178
+ "zIndex": {
179
+ "z-base": "1",
180
+ "z-content": "4",
181
+ "z-content-high": "20",
182
+ "z-brand": "30",
183
+ "z-backdrop": "40",
184
+ "z-nav": "50",
185
+ "z-overlay": "60",
186
+ "z-modal": "70",
187
+ "z-toast": "80",
188
+ "z-transition": "200"
189
+ },
190
+ "typography": {
191
+ "font-serif-cn": "\"Noto Serif SC\", serif",
192
+ "font-display": "\"Instrument Serif\", \"Noto Serif SC\", Georgia, serif",
193
+ "font-body": "\"Outfit\", \"Noto Sans SC\", system-ui, sans-serif",
194
+ "fw-regular": "400",
195
+ "fw-medium": "500",
196
+ "fw-semibold": "600",
197
+ "fw-bold": "700",
198
+ "fw-extrabold": "800"
199
+ },
200
+ "focus": {
201
+ "focus-ring": "0 0 0 2px rgba(var(--c-accent-rgb), 0.3)",
202
+ "focus-ring-lg": "0 0 0 4px rgba(var(--c-accent-rgb), 0.16)",
203
+ "focus-ring-glow": "0 0 0 2px rgba(var(--c-accent-rgb), 0.3), 0 0 12px rgba(var(--c-accent-rgb), 0.15)"
204
+ },
205
+ "gradient": {
206
+ "grad-rose": "linear-gradient(135deg, rgba(var(--glass-accent-1), 0.4), rgba(var(--glass-accent-1), 0.1))",
207
+ "grad-cyan": "linear-gradient(135deg, rgba(var(--glass-accent-2), 0.4), rgba(var(--glass-accent-2), 0.1))",
208
+ "grad-purple": "linear-gradient(135deg, rgba(var(--purple-deep-rgb), 0.4), rgba(var(--purple-deep-rgb), 0.1))",
209
+ "j-grad": "linear-gradient(145deg, #ff9dc6 0%, #e191d8 48%, #b488ff 100%)",
210
+ "j-grad-radial": "radial-gradient(118% 118% at 32% 24%, #ffcde4 0%, #ff9dc6 34%, #b488ff 100%)"
211
+ },
212
+ "paper": {
213
+ "paper-ink": "#2c2620",
214
+ "paper-ink-strong": "#1f1a14",
215
+ "paper-ink-muted": "#4a3528",
216
+ "paper-rose-rgb": "255, 220, 235",
217
+ "paper-brown-rgb": "80, 50, 30",
218
+ "void-bg": "#0e0524",
219
+ "void-bg-rgb": "14, 5, 36",
220
+ "paper-dark": "#1a1520"
221
+ },
222
+ "elysia": {
223
+ "elysia-ink": "#3b3550",
224
+ "elysia-ink-2": "#7a7390",
225
+ "elysia-ink-3": "#a9a2bc",
226
+ "elysia-dark-surface": "#352a48",
227
+ "elysia-dark-surface-alt": "#3a2e50",
228
+ "elysia-dot-border": "#fff5fb",
229
+ "elysia-dot-border-dark": "#1a1626"
230
+ },
231
+ "size": {
232
+ "radius": "0.75rem",
233
+ "grid-gap": "var(--sp-md)",
234
+ "card-radius": "20px",
235
+ "sp-card-pad": "24px",
236
+ "sp-gutter": "24px",
237
+ "radius-card": "var(--radius-3xl)",
238
+ "radius-inner": "var(--radius-xl)",
239
+ "blur": "14px"
240
+ },
241
+ "component": {
242
+ "widget-shadow-rgb": "120, 70, 110",
243
+ "shadow-base-rgb": "44, 42, 41"
244
+ }
245
+ },
246
+ "dark": {
247
+ "color": {
248
+ "c-bg": "#0f0f17",
249
+ "c-bg-rgb": "15, 15, 23",
250
+ "c-surface": "rgba(157, 117, 255, 0.06)",
251
+ "c-border": "rgba(255, 255, 255, 0.07)",
252
+ "c-text-1": "#e2e8f0",
253
+ "c-text-2": "#94a3b8",
254
+ "c-divider": "rgba(255, 255, 255, 0.06)",
255
+ "paper": "#0f0f17",
256
+ "rose-deep-rgb": "244, 169, 206",
257
+ "purple-deep-rgb": "184, 155, 232",
258
+ "rose-bright-rgb": "244, 169, 206",
259
+ "discover-bg": "var(--void-bg)"
260
+ },
261
+ "hsl": {
262
+ "background": "0 0% 0%",
263
+ "foreground": "210 40% 98%",
264
+ "primary": "330 70% 65%",
265
+ "primary-foreground": "210 40% 98%",
266
+ "card": "240 6% 11%",
267
+ "card-foreground": "210 40% 98%",
268
+ "secondary": "240 5% 18%",
269
+ "secondary-foreground": "210 40% 98%",
270
+ "accent": "240 5% 18%",
271
+ "accent-foreground": "210 40% 98%",
272
+ "border": "240 4% 22%",
273
+ "input": "240 5% 18%",
274
+ "ring": "330 70% 65%",
275
+ "destructive": "0 62.8% 30.6%",
276
+ "destructive-foreground": "210 40% 98%",
277
+ "muted": "240 5% 18%",
278
+ "muted-foreground": "240 5% 64.9%"
279
+ },
280
+ "glass": {
281
+ "glass-surface": "rgba(255, 255, 255, 0.08)",
282
+ "glass-surface-hover": "rgba(255, 255, 255, 0.14)",
283
+ "glass-surface-subtle": "rgba(255, 255, 255, 0.04)",
284
+ "glass-surface-dark": "rgba(0, 0, 0, 0.2)",
285
+ "glass-edge-strong": "1px solid rgba(255, 255, 255, 0.12)",
286
+ "glass-edge-soft": "1px solid rgba(255, 255, 255, 0.06)",
287
+ "glass-vivid-bg": "linear-gradient(135deg, rgba(46, 38, 78, 0.82) 0%, rgba(20, 17, 34, 0.76) 100%)",
288
+ "glass-vivid-saturate": "1.15",
289
+ "glass-vivid-edge-top": "1px solid rgba(255, 255, 255, 0.16)",
290
+ "glass-vivid-edge-bottom": "1px solid rgba(255, 255, 255, 0.05)",
291
+ "glass-vivid-shadow": "0 14px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07)"
292
+ },
293
+ "clay": {
294
+ "clay-surface": "rgba(35, 35, 42, 0.6)",
295
+ "clay-inner": "inset 0 2px 4px rgba(255, 255, 255, 0.08), inset 0 -2px 4px rgba(0, 0, 0, 0.15)",
296
+ "clay-inner-strong": "inset 0 3px 6px rgba(255, 255, 255, 0.1), inset 0 -3px 6px rgba(0, 0, 0, 0.2)"
297
+ },
298
+ "text": {
299
+ "text-glass": "#f0ece4",
300
+ "text-glass-shadow": "0 1px 0 rgba(0, 0, 0, 0.4)",
301
+ "text-glass-muted": "rgba(240, 236, 228, 0.55)",
302
+ "ink": "var(--c-text-1, #e2e8f0)",
303
+ "ink-2": "var(--c-text-2, #94a3b8)"
304
+ },
305
+ "shadow": {
306
+ "shadow-low": "0 4px 12px rgba(0, 0, 0, 0.2)",
307
+ "shadow-medium": "0 8px 24px rgba(0, 0, 0, 0.25)",
308
+ "shadow-high": "0 12px 32px rgba(0, 0, 0, 0.3)",
309
+ "shadow-float": "0 20px 48px rgba(0, 0, 0, 0.35)",
310
+ "shadow-rest": "0 4px 20px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08)",
311
+ "shadow-hover": "0 8px 32px rgba(var(--purple-deep-rgb), 0.15), 0 2px 6px rgba(0, 0, 0, 0.1)",
312
+ "shadow-image": "0 6px 24px rgba(0, 0, 0, 0.2)",
313
+ "shadow-soft": "0 2px 8px -2px rgba(0, 0, 0, 0.4), 0 4px 16px -4px rgba(0, 0, 0, 0.3)",
314
+ "shadow-card-medium": "0 4px 12px -2px rgba(0, 0, 0, 0.5), 0 8px 24px -4px rgba(0, 0, 0, 0.4)",
315
+ "shadow-glow": "0 0 20px 2px rgba(236, 72, 153, 0.25)"
316
+ },
317
+ "paper": {
318
+ "paper-ink": "#d4cdd8",
319
+ "paper-ink-strong": "#e8e0ee",
320
+ "paper-ink-muted": "#a898b8",
321
+ "void-bg": "#0a0318",
322
+ "void-bg-rgb": "10, 3, 24",
323
+ "paper-dark": "#1a1520"
324
+ },
325
+ "elysia": {
326
+ "elysia-ink": "#ece8f6",
327
+ "elysia-ink-2": "#a6a0c0",
328
+ "elysia-ink-3": "#6e688a",
329
+ "elysia-dark-surface": "#352a48",
330
+ "elysia-dark-surface-alt": "#3a2e50",
331
+ "elysia-dot-border": "#1a1626",
332
+ "elysia-dot-border-dark": "#241b36",
333
+ "rose-deep-light": "#f0b9d0"
334
+ }
335
+ },
336
+ "mobile": {
337
+ "glass": {
338
+ "glass-blur-subtle": "blur(4px)",
339
+ "glass-blur": "blur(8px)",
340
+ "glass-blur-medium": "blur(10px)",
341
+ "glass-blur-strong": "blur(12px)",
342
+ "glass-blur-card": "blur(14px)",
343
+ "glass-card-saturate": "1.4"
344
+ }
345
+ },
346
+ "themes": {
347
+ "default": {
348
+ "name": "极简粉蓝",
349
+ "glass-accent-1": "236, 72, 153",
350
+ "glass-accent-2": "34, 211, 238"
351
+ },
352
+ "nature": {
353
+ "name": "自然森系",
354
+ "glass-accent-1": "16, 185, 129",
355
+ "glass-accent-2": "34, 197, 94"
356
+ },
357
+ "sunset": {
358
+ "name": "日落暖阳",
359
+ "glass-accent-1": "251, 146, 60",
360
+ "glass-accent-2": "251, 113, 133"
361
+ },
362
+ "ocean": {
363
+ "name": "深海静谧",
364
+ "glass-accent-1": "59, 130, 246",
365
+ "glass-accent-2": "129, 140, 248"
366
+ },
367
+ "lavender": {
368
+ "name": "薰衣草梦境",
369
+ "glass-accent-1": "168, 85, 247",
370
+ "glass-accent-2": "139, 92, 246"
371
+ },
372
+ "cyberpunk": {
373
+ "name": "赛博朋克",
374
+ "glass-accent-1": "34, 211, 238",
375
+ "glass-accent-2": "217, 70, 239"
376
+ },
377
+ "earthy": {
378
+ "name": "大地暖调",
379
+ "glass-accent-1": "245, 158, 11",
380
+ "glass-accent-2": "249, 115, 22"
381
+ },
382
+ "aurora_void": {
383
+ "name": "极光虚空",
384
+ "glass-accent-1": "167, 139, 250",
385
+ "glass-accent-2": "232, 121, 249"
386
+ }
387
+ }
388
+ }
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@cloudnyx/design-tokens",
3
+ "version": "0.1.0",
4
+ "description": "Crystal Glasshouse design tokens for Cloudnyx Space",
5
+ "type": "module",
6
+ "main": "dist/tokens.js",
7
+ "types": "dist/tokens.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/tokens.js",
11
+ "types": "./dist/tokens.d.ts"
12
+ },
13
+ "./css": "./dist/tokens.css",
14
+ "./json": "./dist/tokens.json",
15
+ "./tailwind": "./dist/tailwind-preset.js"
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "scripts": {
21
+ "build": "node build.js",
22
+ "prepublishOnly": "npm run build"
23
+ },
24
+ "keywords": [
25
+ "design-tokens",
26
+ "glassmorphism",
27
+ "crystal",
28
+ "cloudnyx"
29
+ ],
30
+ "license": "MIT",
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "https://github.com/elysiayunchen/blog-final.git",
34
+ "directory": "packages/design-tokens"
35
+ }
36
+ }