@rainersoft/design-tokens 1.0.1 → 1.0.3
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/dist/index.cjs +246 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1230 -0
- package/dist/index.d.ts +1230 -0
- package/dist/index.mjs +246 -0
- package/dist/index.mjs.map +1 -1
- package/formats/tailwind.config.ts +45 -1
- package/formats/tokens.json +2 -2
- package/package.json +25 -24
- package/tokens/animations.json +59 -0
- package/tokens/colors/dark.json +123 -0
- package/tokens/colors/light.json +123 -0
- package/tokens/index.ts +33 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"animations": {
|
|
3
|
+
"accordion-down": {
|
|
4
|
+
"name": "accordion-down",
|
|
5
|
+
"duration": "0.2s",
|
|
6
|
+
"timingFunction": "ease-out",
|
|
7
|
+
"keyframes": {
|
|
8
|
+
"from": {
|
|
9
|
+
"height": "0"
|
|
10
|
+
},
|
|
11
|
+
"to": {
|
|
12
|
+
"height": "var(--radix-accordion-content-height)"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"accordion-up": {
|
|
17
|
+
"name": "accordion-up",
|
|
18
|
+
"duration": "0.2s",
|
|
19
|
+
"timingFunction": "ease-out",
|
|
20
|
+
"keyframes": {
|
|
21
|
+
"from": {
|
|
22
|
+
"height": "var(--radix-accordion-content-height)"
|
|
23
|
+
},
|
|
24
|
+
"to": {
|
|
25
|
+
"height": "0"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"slide-in": {
|
|
30
|
+
"name": "slide-in",
|
|
31
|
+
"duration": "0.3s",
|
|
32
|
+
"timingFunction": "ease-out",
|
|
33
|
+
"keyframes": {
|
|
34
|
+
"0%": {
|
|
35
|
+
"transform": "translateY(-10px)",
|
|
36
|
+
"opacity": "0"
|
|
37
|
+
},
|
|
38
|
+
"100%": {
|
|
39
|
+
"transform": "translateY(0)",
|
|
40
|
+
"opacity": "1"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"fade-in": {
|
|
45
|
+
"name": "fade-in",
|
|
46
|
+
"duration": "0.5s",
|
|
47
|
+
"timingFunction": "ease-in",
|
|
48
|
+
"keyframes": {
|
|
49
|
+
"0%": {
|
|
50
|
+
"opacity": "0"
|
|
51
|
+
},
|
|
52
|
+
"100%": {
|
|
53
|
+
"opacity": "1"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
package/tokens/colors/dark.json
CHANGED
|
@@ -168,6 +168,129 @@
|
|
|
168
168
|
"secondary": "linear-gradient(135deg, #ff00ff 0%, #00e6ff 100%)",
|
|
169
169
|
"accent": "linear-gradient(135deg, #ff7d00 0%, #ff00ff 100%)",
|
|
170
170
|
"background": "linear-gradient(180deg, #0a0a0f 0%, #0f0f1a 100%)"
|
|
171
|
+
},
|
|
172
|
+
"primitive": {
|
|
173
|
+
"cyan": {
|
|
174
|
+
"50": "rgba(0, 230, 255, 0.1)",
|
|
175
|
+
"100": "rgba(0, 230, 255, 0.15)",
|
|
176
|
+
"200": "rgba(0, 230, 255, 0.2)",
|
|
177
|
+
"300": "#4dffff",
|
|
178
|
+
"400": "#1affff",
|
|
179
|
+
"500": "#00e6ff",
|
|
180
|
+
"600": "#00b8cc",
|
|
181
|
+
"700": "#008a99",
|
|
182
|
+
"800": "#005c66",
|
|
183
|
+
"900": "#003d44"
|
|
184
|
+
},
|
|
185
|
+
"purple": {
|
|
186
|
+
"50": "rgba(125, 0, 255, 0.1)",
|
|
187
|
+
"100": "rgba(125, 0, 255, 0.15)",
|
|
188
|
+
"200": "rgba(125, 0, 255, 0.2)",
|
|
189
|
+
"300": "#ab4dff",
|
|
190
|
+
"400": "#941aff",
|
|
191
|
+
"500": "#7d00ff",
|
|
192
|
+
"600": "#6400cc",
|
|
193
|
+
"700": "#4b0099",
|
|
194
|
+
"800": "#320066",
|
|
195
|
+
"900": "#190033"
|
|
196
|
+
},
|
|
197
|
+
"pink": {
|
|
198
|
+
"50": "rgba(255, 0, 255, 0.1)",
|
|
199
|
+
"100": "rgba(255, 0, 255, 0.15)",
|
|
200
|
+
"200": "rgba(255, 0, 255, 0.2)",
|
|
201
|
+
"300": "#ff4dff",
|
|
202
|
+
"400": "#ff1aff",
|
|
203
|
+
"500": "#ff00ff",
|
|
204
|
+
"600": "#cc00cc",
|
|
205
|
+
"700": "#990099",
|
|
206
|
+
"800": "#660066",
|
|
207
|
+
"900": "#330033"
|
|
208
|
+
},
|
|
209
|
+
"blue": {
|
|
210
|
+
"50": "rgba(0, 125, 255, 0.1)",
|
|
211
|
+
"100": "rgba(0, 125, 255, 0.15)",
|
|
212
|
+
"200": "rgba(0, 125, 255, 0.2)",
|
|
213
|
+
"300": "#80c7ff",
|
|
214
|
+
"400": "#4dabff",
|
|
215
|
+
"500": "#007dff",
|
|
216
|
+
"600": "#0064cc",
|
|
217
|
+
"700": "#004b99",
|
|
218
|
+
"800": "#003266",
|
|
219
|
+
"900": "#001933"
|
|
220
|
+
},
|
|
221
|
+
"green": {
|
|
222
|
+
"50": "rgba(0, 255, 0, 0.1)",
|
|
223
|
+
"100": "rgba(0, 255, 0, 0.15)",
|
|
224
|
+
"200": "rgba(0, 255, 0, 0.2)",
|
|
225
|
+
"300": "#80ff80",
|
|
226
|
+
"400": "#4dff4d",
|
|
227
|
+
"500": "#00ff00",
|
|
228
|
+
"600": "#00cc00",
|
|
229
|
+
"700": "#009900",
|
|
230
|
+
"800": "#006600",
|
|
231
|
+
"900": "#003300"
|
|
232
|
+
},
|
|
233
|
+
"orange": {
|
|
234
|
+
"50": "rgba(255, 125, 0, 0.1)",
|
|
235
|
+
"100": "rgba(255, 125, 0, 0.15)",
|
|
236
|
+
"200": "rgba(255, 125, 0, 0.2)",
|
|
237
|
+
"300": "#ffc880",
|
|
238
|
+
"400": "#ffab4d",
|
|
239
|
+
"500": "#ff7d00",
|
|
240
|
+
"600": "#cc6400",
|
|
241
|
+
"700": "#994b00",
|
|
242
|
+
"800": "#663200",
|
|
243
|
+
"900": "#331900"
|
|
244
|
+
},
|
|
245
|
+
"red": {
|
|
246
|
+
"50": "rgba(239, 68, 68, 0.1)",
|
|
247
|
+
"100": "rgba(239, 68, 68, 0.15)",
|
|
248
|
+
"200": "rgba(239, 68, 68, 0.2)",
|
|
249
|
+
"300": "#fecaca",
|
|
250
|
+
"400": "#fca5a5",
|
|
251
|
+
"500": "#f87171",
|
|
252
|
+
"600": "#c55a5a",
|
|
253
|
+
"700": "#924343",
|
|
254
|
+
"800": "#5f2c2c",
|
|
255
|
+
"900": "#2c1515"
|
|
256
|
+
},
|
|
257
|
+
"amber": {
|
|
258
|
+
"50": "rgba(255, 125, 0, 0.1)",
|
|
259
|
+
"100": "rgba(255, 125, 0, 0.15)",
|
|
260
|
+
"200": "rgba(255, 125, 0, 0.2)",
|
|
261
|
+
"300": "#ffc880",
|
|
262
|
+
"400": "#ffab4d",
|
|
263
|
+
"500": "#ff7d00",
|
|
264
|
+
"600": "#cc6400",
|
|
265
|
+
"700": "#994b00",
|
|
266
|
+
"800": "#663200",
|
|
267
|
+
"900": "#331900"
|
|
268
|
+
},
|
|
269
|
+
"emerald": {
|
|
270
|
+
"50": "rgba(0, 255, 0, 0.1)",
|
|
271
|
+
"100": "rgba(0, 255, 0, 0.15)",
|
|
272
|
+
"200": "rgba(0, 255, 0, 0.2)",
|
|
273
|
+
"300": "#80ff80",
|
|
274
|
+
"400": "#4dff4d",
|
|
275
|
+
"500": "#00ff00",
|
|
276
|
+
"600": "#00cc00",
|
|
277
|
+
"700": "#009900",
|
|
278
|
+
"800": "#006600",
|
|
279
|
+
"900": "#003300"
|
|
280
|
+
},
|
|
281
|
+
"neutral": {
|
|
282
|
+
"50": "#0f0f1a",
|
|
283
|
+
"100": "#171717",
|
|
284
|
+
"200": "#262626",
|
|
285
|
+
"300": "#404040",
|
|
286
|
+
"400": "#525252",
|
|
287
|
+
"500": "#737373",
|
|
288
|
+
"600": "#a3a3a3",
|
|
289
|
+
"700": "#d4d4d4",
|
|
290
|
+
"800": "#e5e5e5",
|
|
291
|
+
"900": "#f5f5f5",
|
|
292
|
+
"950": "#ffffff"
|
|
293
|
+
}
|
|
171
294
|
}
|
|
172
295
|
}
|
|
173
296
|
}
|
package/tokens/colors/light.json
CHANGED
|
@@ -144,6 +144,129 @@
|
|
|
144
144
|
"disabledText": "#a3a3a3",
|
|
145
145
|
"focus": "#0891b2",
|
|
146
146
|
"focusRing": "#06b6d4"
|
|
147
|
+
},
|
|
148
|
+
"primitive": {
|
|
149
|
+
"cyan": {
|
|
150
|
+
"50": "#ecfeff",
|
|
151
|
+
"100": "#cffafe",
|
|
152
|
+
"200": "#a5f3fc",
|
|
153
|
+
"300": "#67e8f9",
|
|
154
|
+
"400": "#22d3ee",
|
|
155
|
+
"500": "#06b6d4",
|
|
156
|
+
"600": "#0891b2",
|
|
157
|
+
"700": "#0e7490",
|
|
158
|
+
"800": "#155e75",
|
|
159
|
+
"900": "#164e63"
|
|
160
|
+
},
|
|
161
|
+
"purple": {
|
|
162
|
+
"50": "#faf5ff",
|
|
163
|
+
"100": "#f3e8ff",
|
|
164
|
+
"200": "#e9d5ff",
|
|
165
|
+
"300": "#d8b4fe",
|
|
166
|
+
"400": "#c084fc",
|
|
167
|
+
"500": "#a855f7",
|
|
168
|
+
"600": "#9333ea",
|
|
169
|
+
"700": "#7e22ce",
|
|
170
|
+
"800": "#6b21a8",
|
|
171
|
+
"900": "#581c87"
|
|
172
|
+
},
|
|
173
|
+
"pink": {
|
|
174
|
+
"50": "#fdf2f8",
|
|
175
|
+
"100": "#fce7f3",
|
|
176
|
+
"200": "#fbcfe8",
|
|
177
|
+
"300": "#f9a8d4",
|
|
178
|
+
"400": "#f472b6",
|
|
179
|
+
"500": "#ec4899",
|
|
180
|
+
"600": "#db2777",
|
|
181
|
+
"700": "#be185d",
|
|
182
|
+
"800": "#9f1239",
|
|
183
|
+
"900": "#831843"
|
|
184
|
+
},
|
|
185
|
+
"blue": {
|
|
186
|
+
"50": "#eff6ff",
|
|
187
|
+
"100": "#dbeafe",
|
|
188
|
+
"200": "#bfdbfe",
|
|
189
|
+
"300": "#93c5fd",
|
|
190
|
+
"400": "#60a5fa",
|
|
191
|
+
"500": "#3b82f6",
|
|
192
|
+
"600": "#2563eb",
|
|
193
|
+
"700": "#1d4ed8",
|
|
194
|
+
"800": "#1e40af",
|
|
195
|
+
"900": "#1e3a8a"
|
|
196
|
+
},
|
|
197
|
+
"green": {
|
|
198
|
+
"50": "#f0fdf4",
|
|
199
|
+
"100": "#dcfce7",
|
|
200
|
+
"200": "#bbf7d0",
|
|
201
|
+
"300": "#86efac",
|
|
202
|
+
"400": "#4ade80",
|
|
203
|
+
"500": "#22c55e",
|
|
204
|
+
"600": "#16a34a",
|
|
205
|
+
"700": "#15803d",
|
|
206
|
+
"800": "#166534",
|
|
207
|
+
"900": "#14532d"
|
|
208
|
+
},
|
|
209
|
+
"orange": {
|
|
210
|
+
"50": "#fff7ed",
|
|
211
|
+
"100": "#ffedd5",
|
|
212
|
+
"200": "#fed7aa",
|
|
213
|
+
"300": "#fdba74",
|
|
214
|
+
"400": "#fb923c",
|
|
215
|
+
"500": "#f97316",
|
|
216
|
+
"600": "#ea580c",
|
|
217
|
+
"700": "#c2410c",
|
|
218
|
+
"800": "#9a3412",
|
|
219
|
+
"900": "#7c2d12"
|
|
220
|
+
},
|
|
221
|
+
"red": {
|
|
222
|
+
"50": "#fef2f2",
|
|
223
|
+
"100": "#fee2e2",
|
|
224
|
+
"200": "#fecaca",
|
|
225
|
+
"300": "#fca5a5",
|
|
226
|
+
"400": "#f87171",
|
|
227
|
+
"500": "#ef4444",
|
|
228
|
+
"600": "#dc2626",
|
|
229
|
+
"700": "#b91c1c",
|
|
230
|
+
"800": "#991b1b",
|
|
231
|
+
"900": "#7f1d1d"
|
|
232
|
+
},
|
|
233
|
+
"amber": {
|
|
234
|
+
"50": "#fffbeb",
|
|
235
|
+
"100": "#fef3c7",
|
|
236
|
+
"200": "#fde68a",
|
|
237
|
+
"300": "#fcd34d",
|
|
238
|
+
"400": "#fbbf24",
|
|
239
|
+
"500": "#f59e0b",
|
|
240
|
+
"600": "#d97706",
|
|
241
|
+
"700": "#b45309",
|
|
242
|
+
"800": "#92400e",
|
|
243
|
+
"900": "#78350f"
|
|
244
|
+
},
|
|
245
|
+
"emerald": {
|
|
246
|
+
"50": "#ecfdf5",
|
|
247
|
+
"100": "#d1fae5",
|
|
248
|
+
"200": "#a7f3d0",
|
|
249
|
+
"300": "#6ee7b7",
|
|
250
|
+
"400": "#34d399",
|
|
251
|
+
"500": "#10b981",
|
|
252
|
+
"600": "#059669",
|
|
253
|
+
"700": "#047857",
|
|
254
|
+
"800": "#065f46",
|
|
255
|
+
"900": "#064e3b"
|
|
256
|
+
},
|
|
257
|
+
"neutral": {
|
|
258
|
+
"50": "#fafafa",
|
|
259
|
+
"100": "#f5f5f5",
|
|
260
|
+
"200": "#e5e5e5",
|
|
261
|
+
"300": "#d4d4d4",
|
|
262
|
+
"400": "#a3a3a3",
|
|
263
|
+
"500": "#737373",
|
|
264
|
+
"600": "#525252",
|
|
265
|
+
"700": "#404040",
|
|
266
|
+
"800": "#262626",
|
|
267
|
+
"900": "#171717",
|
|
268
|
+
"950": "#0a0a0f"
|
|
269
|
+
}
|
|
147
270
|
}
|
|
148
271
|
}
|
|
149
272
|
}
|
package/tokens/index.ts
CHANGED
|
@@ -18,6 +18,7 @@ import typography from './typography.json';
|
|
|
18
18
|
import spacing from './spacing.json';
|
|
19
19
|
import radius from './radius.json';
|
|
20
20
|
import shadows from './shadows.json';
|
|
21
|
+
import animations from './animations.json';
|
|
21
22
|
|
|
22
23
|
// Utility tokens (Tailwind CSS classes)
|
|
23
24
|
export * from './utilities';
|
|
@@ -40,6 +41,7 @@ export * from './accessibility';
|
|
|
40
41
|
* @property {Object} spacing - Tokens de espaçamento (margens, paddings)
|
|
41
42
|
* @property {Object} radius - Tokens de raio de borda
|
|
42
43
|
* @property {Object} shadows - Tokens de sombras para ambos os temas
|
|
44
|
+
* @property {Object} animations - Tokens de animações (keyframes e durações)
|
|
43
45
|
*
|
|
44
46
|
* @constant
|
|
45
47
|
* @readonly
|
|
@@ -64,6 +66,7 @@ export const tokens = {
|
|
|
64
66
|
spacing: spacing.spacing,
|
|
65
67
|
radius: radius.radius,
|
|
66
68
|
shadows: shadows.shadows,
|
|
69
|
+
animations: animations.animations,
|
|
67
70
|
} as const;
|
|
68
71
|
|
|
69
72
|
/**
|
|
@@ -186,6 +189,27 @@ export const radiusTokens = radius.radius;
|
|
|
186
189
|
*/
|
|
187
190
|
export const shadowTokens = shadows.shadows;
|
|
188
191
|
|
|
192
|
+
/**
|
|
193
|
+
* Tokens de animações
|
|
194
|
+
*
|
|
195
|
+
* @description
|
|
196
|
+
* Exporta todos os tokens de animações, incluindo keyframes, durações
|
|
197
|
+
* e funções de timing para transições e animações do sistema.
|
|
198
|
+
*
|
|
199
|
+
* @type {Object}
|
|
200
|
+
* @constant
|
|
201
|
+
* @readonly
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
* ```typescript
|
|
205
|
+
* import { animationTokens } from 'rainer-design-tokens';
|
|
206
|
+
*
|
|
207
|
+
* const slideIn = animationTokens['slide-in'];
|
|
208
|
+
* const fadeIn = animationTokens['fade-in'];
|
|
209
|
+
* ```
|
|
210
|
+
*/
|
|
211
|
+
export const animationTokens = animations.animations;
|
|
212
|
+
|
|
189
213
|
/**
|
|
190
214
|
* Tipo TypeScript para todos os tokens
|
|
191
215
|
*
|
|
@@ -250,6 +274,15 @@ export type Radius = typeof radius.radius;
|
|
|
250
274
|
*/
|
|
251
275
|
export type Shadows = typeof shadows.shadows;
|
|
252
276
|
|
|
277
|
+
/**
|
|
278
|
+
* Tipo TypeScript para tokens de animações
|
|
279
|
+
*
|
|
280
|
+
* @typedef {Object} Animations
|
|
281
|
+
* @description
|
|
282
|
+
* Tipo que representa todos os tokens de animações.
|
|
283
|
+
*/
|
|
284
|
+
export type Animations = typeof animations.animations;
|
|
285
|
+
|
|
253
286
|
/**
|
|
254
287
|
* Exportação padrão dos tokens
|
|
255
288
|
*
|