@rainersoft/design-tokens 2.0.0 → 2.3.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 +167 -519
- package/dist/index.d.mts +8485 -0
- package/dist/index.d.ts +1052 -31
- package/dist/index.js +44 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +16 -2
- package/dist/index.mjs.map +1 -1
- package/formats/tokens.json +7 -4
- package/package.json +38 -86
- package/themes/dark.ts +0 -89
- package/themes/index.ts +0 -99
- package/themes/light.ts +0 -88
- package/tokens/accessibility.ts +0 -280
- package/tokens/animations.json +0 -142
- package/tokens/breakpoints.json +0 -30
- package/tokens/colors/dark.json +0 -296
- package/tokens/colors/light.json +0 -272
- package/tokens/components/celestial-background.json +0 -106
- package/tokens/effects.json +0 -125
- package/tokens/hero.json +0 -69
- package/tokens/index.ts +0 -443
- package/tokens/motion.json +0 -33
- package/tokens/radius.json +0 -16
- package/tokens/shadows.json +0 -33
- package/tokens/spacing.json +0 -42
- package/tokens/typography.json +0 -264
- package/tokens/utilities.ts +0 -594
- package/tokens/z-index.json +0 -27
package/tokens/effects.json
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$description": "Tokens para efeitos visuais - filters, blur, glow, backdrop effects",
|
|
4
|
-
"effects": {
|
|
5
|
-
"filter": {
|
|
6
|
-
"brightness": {
|
|
7
|
-
"subtle": "brightness(1.1)",
|
|
8
|
-
"moderate": "brightness(1.2)",
|
|
9
|
-
"intense": "brightness(1.3)",
|
|
10
|
-
"strong": "brightness(1.4)",
|
|
11
|
-
"extreme": "brightness(1.6)"
|
|
12
|
-
},
|
|
13
|
-
"contrast": {
|
|
14
|
-
"subtle": "contrast(1.05)",
|
|
15
|
-
"moderate": "contrast(1.1)",
|
|
16
|
-
"strong": "contrast(1.2)",
|
|
17
|
-
"intense": "contrast(1.3)"
|
|
18
|
-
},
|
|
19
|
-
"saturate": {
|
|
20
|
-
"subtle": "saturate(1.1)",
|
|
21
|
-
"moderate": "saturate(1.2)",
|
|
22
|
-
"strong": "saturate(1.3)",
|
|
23
|
-
"intense": "saturate(1.4)"
|
|
24
|
-
},
|
|
25
|
-
"combined": {
|
|
26
|
-
"neon-subtle": "brightness(1.2) saturate(1.1)",
|
|
27
|
-
"neon-moderate": "brightness(1.3) saturate(1.2)",
|
|
28
|
-
"neon-intense": "brightness(1.4) saturate(1.3)",
|
|
29
|
-
"neon-extreme": "brightness(1.6) contrast(1.3) saturate(1.4)",
|
|
30
|
-
"glass": "blur(8px) saturate(180%)",
|
|
31
|
-
"frosted": "blur(12px) saturate(150%)"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"blur": {
|
|
35
|
-
"none": "blur(0)",
|
|
36
|
-
"xs": "blur(0.5px)",
|
|
37
|
-
"sm": "blur(2px)",
|
|
38
|
-
"base": "blur(4px)",
|
|
39
|
-
"md": "blur(8px)",
|
|
40
|
-
"lg": "blur(12px)",
|
|
41
|
-
"xl": "blur(16px)",
|
|
42
|
-
"2xl": "blur(24px)",
|
|
43
|
-
"3xl": "blur(40px)"
|
|
44
|
-
},
|
|
45
|
-
"backdrop": {
|
|
46
|
-
"blur": {
|
|
47
|
-
"none": "backdrop-blur-none",
|
|
48
|
-
"sm": "backdrop-blur-sm",
|
|
49
|
-
"base": "backdrop-blur",
|
|
50
|
-
"md": "backdrop-blur-md",
|
|
51
|
-
"lg": "backdrop-blur-lg",
|
|
52
|
-
"xl": "backdrop-blur-xl",
|
|
53
|
-
"2xl": "backdrop-blur-2xl",
|
|
54
|
-
"3xl": "backdrop-blur-3xl"
|
|
55
|
-
},
|
|
56
|
-
"saturate": {
|
|
57
|
-
"default": "backdrop-saturate-100",
|
|
58
|
-
"enhanced": "backdrop-saturate-150",
|
|
59
|
-
"strong": "backdrop-saturate-200"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"glow": {
|
|
63
|
-
"star": {
|
|
64
|
-
"small": {
|
|
65
|
-
"radius": "0 0 4px",
|
|
66
|
-
"color": "rgba(255, 255, 255, 0.8)"
|
|
67
|
-
},
|
|
68
|
-
"medium": {
|
|
69
|
-
"radius": "0 0 8px",
|
|
70
|
-
"color": "rgba(255, 255, 255, 0.8)"
|
|
71
|
-
},
|
|
72
|
-
"large": {
|
|
73
|
-
"radius": "0 0 12px",
|
|
74
|
-
"color": "rgba(255, 255, 255, 0.8)"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"neon": {
|
|
78
|
-
"cyan": {
|
|
79
|
-
"subtle": "0 0 10px rgba(0, 230, 255, 0.3)",
|
|
80
|
-
"moderate": "0 0 20px rgba(0, 230, 255, 0.5), 0 0 40px rgba(0, 230, 255, 0.3)",
|
|
81
|
-
"intense": "0 0 30px rgba(0, 230, 255, 0.7), 0 0 60px rgba(0, 230, 255, 0.5)"
|
|
82
|
-
},
|
|
83
|
-
"purple": {
|
|
84
|
-
"subtle": "0 0 10px rgba(125, 0, 255, 0.3)",
|
|
85
|
-
"moderate": "0 0 20px rgba(125, 0, 255, 0.5), 0 0 40px rgba(125, 0, 255, 0.3)",
|
|
86
|
-
"intense": "0 0 30px rgba(125, 0, 255, 0.7), 0 0 60px rgba(125, 0, 255, 0.5)"
|
|
87
|
-
},
|
|
88
|
-
"pink": {
|
|
89
|
-
"subtle": "0 0 10px rgba(255, 0, 255, 0.3)",
|
|
90
|
-
"moderate": "0 0 20px rgba(255, 0, 255, 0.5), 0 0 40px rgba(255, 0, 255, 0.3)",
|
|
91
|
-
"intense": "0 0 30px rgba(255, 0, 255, 0.7), 0 0 60px rgba(255, 0, 255, 0.5)"
|
|
92
|
-
},
|
|
93
|
-
"green": {
|
|
94
|
-
"subtle": "0 0 10px rgba(0, 255, 0, 0.3)",
|
|
95
|
-
"moderate": "0 0 20px rgba(0, 255, 0, 0.5), 0 0 40px rgba(0, 255, 0, 0.3)",
|
|
96
|
-
"intense": "0 0 30px rgba(0, 255, 0, 0.7), 0 0 60px rgba(0, 255, 0, 0.5)"
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
"textShadow": {
|
|
101
|
-
"glow": {
|
|
102
|
-
"cyan-subtle": "0 0 10px rgba(34, 211, 238, 0.5)",
|
|
103
|
-
"cyan-moderate": "0 0 20px rgba(34, 211, 238, 0.8), 0 0 40px rgba(34, 211, 238, 0.6)",
|
|
104
|
-
"cyan-intense": "0 0 40px rgba(34, 211, 238, 1), 0 0 60px rgba(103, 232, 249, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5)"
|
|
105
|
-
},
|
|
106
|
-
"depth": {
|
|
107
|
-
"subtle": "0 1px 2px rgba(0, 0, 0, 0.1)",
|
|
108
|
-
"moderate": "0 2px 4px rgba(0, 0, 0, 0.3)",
|
|
109
|
-
"strong": "0 2px 4px rgba(0, 0, 0, 0.5)"
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
"boxShadow": {
|
|
113
|
-
"cyberpunk": {
|
|
114
|
-
"card": "0 0 20px rgba(34, 211, 238, 0.1)",
|
|
115
|
-
"cardHover": "0 0 30px rgba(34, 211, 238, 0.2)",
|
|
116
|
-
"elevated": "0 25px 50px -12px rgba(0, 0, 0, 0.5)"
|
|
117
|
-
},
|
|
118
|
-
"glass": {
|
|
119
|
-
"subtle": "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)",
|
|
120
|
-
"moderate": "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)",
|
|
121
|
-
"strong": "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
package/tokens/hero.json
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hero": {
|
|
3
|
-
"title": {
|
|
4
|
-
"fontSize": {
|
|
5
|
-
"mobile": "1.5rem",
|
|
6
|
-
"responsive": "4vw",
|
|
7
|
-
"desktop": "3.5rem",
|
|
8
|
-
"clamp": "clamp(1.5rem, 4vw, 3.5rem)"
|
|
9
|
-
},
|
|
10
|
-
"lineHeight": "1.2",
|
|
11
|
-
"letterSpacing": "-0.02em",
|
|
12
|
-
"wordSpacing": "0.05em",
|
|
13
|
-
"fontWeight": "800",
|
|
14
|
-
"filter": "brightness(1.2) contrast(1.1)",
|
|
15
|
-
"textShadow": {
|
|
16
|
-
"dark": "0 0 40px rgba(34, 211, 238, 1), 0 0 60px rgba(103, 232, 249, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5)",
|
|
17
|
-
"light": "0 0 30px rgba(37, 99, 235, 0.8), 0 0 50px rgba(59, 130, 246, 0.6), 0 2px 4px rgba(0, 0, 0, 0.3)"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"subtitle": {
|
|
21
|
-
"fontSize": {
|
|
22
|
-
"mobile": "0.875rem",
|
|
23
|
-
"responsive": "1.5vw",
|
|
24
|
-
"desktop": "1.25rem",
|
|
25
|
-
"clamp": "clamp(0.875rem, 1.5vw, 1.25rem)"
|
|
26
|
-
},
|
|
27
|
-
"lineHeight": "1.6",
|
|
28
|
-
"letterSpacing": "0.01em",
|
|
29
|
-
"fontWeight": "400",
|
|
30
|
-
"maxWidth": "56rem",
|
|
31
|
-
"textShadow": {
|
|
32
|
-
"dark": "0 0 20px rgba(52, 211, 153, 0.6)",
|
|
33
|
-
"light": "0 0 20px rgba(16, 185, 129, 0.5)"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"container": {
|
|
37
|
-
"maxWidth": {
|
|
38
|
-
"mobile": "90vw",
|
|
39
|
-
"sm": "48rem",
|
|
40
|
-
"md": "56rem",
|
|
41
|
-
"lg": "64rem"
|
|
42
|
-
},
|
|
43
|
-
"padding": {
|
|
44
|
-
"top": "clamp(3rem, 10vh, 8rem)",
|
|
45
|
-
"bottom": "clamp(3rem, 10vh, 8rem)",
|
|
46
|
-
"x": {
|
|
47
|
-
"mobile": "1rem",
|
|
48
|
-
"sm": "1.5rem",
|
|
49
|
-
"md": "2rem"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"gap": "clamp(1.5rem, 3vh, 2.5rem)"
|
|
53
|
-
},
|
|
54
|
-
"effects": {
|
|
55
|
-
"cyberpunk": {
|
|
56
|
-
"glitch": {
|
|
57
|
-
"animation": "glitch 2s infinite",
|
|
58
|
-
"animationDelay": "0s, 0.3s, 0.6s"
|
|
59
|
-
},
|
|
60
|
-
"neon": {
|
|
61
|
-
"animation": "neon-pulse 1.5s ease-in-out infinite alternate"
|
|
62
|
-
},
|
|
63
|
-
"flicker": {
|
|
64
|
-
"animation": "flicker 3s linear infinite"
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
package/tokens/index.ts
DELETED
|
@@ -1,443 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Ponto de entrada dos tokens de design
|
|
3
|
-
*
|
|
4
|
-
* @description
|
|
5
|
-
* Tokens de design tecnologicamente agnósticos que definem a linguagem visual
|
|
6
|
-
* do Rainer Design System. Estes tokens podem ser utilizados em qualquer
|
|
7
|
-
* framework ou tecnologia, garantindo consistência visual.
|
|
8
|
-
*
|
|
9
|
-
* @module tokens
|
|
10
|
-
* @version 2.0.0
|
|
11
|
-
* @author Rainer Teixeira
|
|
12
|
-
* @since 1.0.0
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import lightColors from './colors/light.json';
|
|
16
|
-
import darkColors from './colors/dark.json';
|
|
17
|
-
import typography from './typography.json';
|
|
18
|
-
import spacing from './spacing.json';
|
|
19
|
-
import radius from './radius.json';
|
|
20
|
-
import shadows from './shadows.json';
|
|
21
|
-
import animations from './animations.json';
|
|
22
|
-
import hero from './hero.json';
|
|
23
|
-
import effects from './effects.json';
|
|
24
|
-
import celestialBackground from './components/celestial-background.json';
|
|
25
|
-
import motion from './motion.json';
|
|
26
|
-
import breakpoints from './breakpoints.json';
|
|
27
|
-
import zIndex from './z-index.json';
|
|
28
|
-
|
|
29
|
-
// Utility tokens (Tailwind CSS classes)
|
|
30
|
-
export * from './utilities';
|
|
31
|
-
|
|
32
|
-
// Accessibility utilities (WCAG contrast checking)
|
|
33
|
-
export * from './accessibility';
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Todos os tokens de design organizados por categoria
|
|
37
|
-
*
|
|
38
|
-
* @description
|
|
39
|
-
* Objeto principal contendo todos os tokens de design do sistema,
|
|
40
|
-
* organizados em categorias lógicas para fácil acesso e manutenção.
|
|
41
|
-
*
|
|
42
|
-
* @type {Object}
|
|
43
|
-
* @property {Object} colors - Tokens de cores para temas claro e escuro
|
|
44
|
-
* @property {Object} colors.light - Cores do tema claro
|
|
45
|
-
* @property {Object} colors.dark - Cores do tema escuro
|
|
46
|
-
* @property {Object} typography - Tokens de tipografia (fontes, tamanhos, pesos, etc.)
|
|
47
|
-
* @property {Object} spacing - Tokens de espaçamento (margens, paddings)
|
|
48
|
-
* @property {Object} radius - Tokens de raio de borda
|
|
49
|
-
* @property {Object} shadows - Tokens de sombras para ambos os temas
|
|
50
|
-
* @property {Object} animations - Tokens de animações (keyframes e durações)
|
|
51
|
-
*
|
|
52
|
-
* @constant
|
|
53
|
-
* @readonly
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```typescript
|
|
57
|
-
* import { tokens } from '@rainersoft/design-tokens';
|
|
58
|
-
*
|
|
59
|
-
* // Acessar cor primária do tema claro
|
|
60
|
-
* const primaryColor = tokens.colors.light.brand.primary;
|
|
61
|
-
*
|
|
62
|
-
* // Acessar espaçamento padrão
|
|
63
|
-
* const spacing = tokens.spacing.md;
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
export const tokens = {
|
|
67
|
-
colors: {
|
|
68
|
-
light: lightColors.colors,
|
|
69
|
-
dark: darkColors.colors,
|
|
70
|
-
},
|
|
71
|
-
typography: typography.typography,
|
|
72
|
-
spacing: spacing.spacing,
|
|
73
|
-
radius: radius.radius,
|
|
74
|
-
shadows: shadows.shadows,
|
|
75
|
-
animations: animations.animations,
|
|
76
|
-
motion: motion.motion,
|
|
77
|
-
breakpoints: breakpoints.breakpoints,
|
|
78
|
-
zIndex: zIndex.zIndex,
|
|
79
|
-
hero: hero.hero,
|
|
80
|
-
effects: effects.effects,
|
|
81
|
-
components: {
|
|
82
|
-
celestialBackground: celestialBackground.celestialBackground,
|
|
83
|
-
},
|
|
84
|
-
} as const;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Cores do tema claro
|
|
88
|
-
*
|
|
89
|
-
* @description
|
|
90
|
-
* Exporta apenas as cores do tema claro para uso direto.
|
|
91
|
-
*
|
|
92
|
-
* @type {Object}
|
|
93
|
-
* @constant
|
|
94
|
-
* @readonly
|
|
95
|
-
*
|
|
96
|
-
* @example
|
|
97
|
-
* ```typescript
|
|
98
|
-
* import { lightThemeColors } from '@rainersoft/design-tokens';
|
|
99
|
-
*
|
|
100
|
-
* const primaryColor = lightThemeColors.brand.primary;
|
|
101
|
-
* ```
|
|
102
|
-
*/
|
|
103
|
-
export const lightThemeColors = lightColors.colors;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Cores do tema escuro
|
|
107
|
-
*
|
|
108
|
-
* @description
|
|
109
|
-
* Exporta apenas as cores do tema escuro (estilo cyberpunk) para uso direto.
|
|
110
|
-
*
|
|
111
|
-
* @type {Object}
|
|
112
|
-
* @constant
|
|
113
|
-
* @readonly
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* ```typescript
|
|
117
|
-
* import { darkThemeColors } from '@rainersoft/design-tokens';
|
|
118
|
-
*
|
|
119
|
-
* const neonColor = darkThemeColors.accent.cyan;
|
|
120
|
-
* ```
|
|
121
|
-
*/
|
|
122
|
-
export const darkThemeColors = darkColors.colors;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Tokens de tipografia
|
|
126
|
-
*
|
|
127
|
-
* @description
|
|
128
|
-
* Exporta todos os tokens relacionados à tipografia, incluindo
|
|
129
|
-
* famílias de fontes, tamanhos, pesos, alturas de linha e espaçamento entre letras.
|
|
130
|
-
*
|
|
131
|
-
* @type {Object}
|
|
132
|
-
* @constant
|
|
133
|
-
* @readonly
|
|
134
|
-
*
|
|
135
|
-
* @example
|
|
136
|
-
* ```typescript
|
|
137
|
-
* import { typographyTokens } from '@rainersoft/design-tokens';
|
|
138
|
-
*
|
|
139
|
-
* const fontSize = typographyTokens.fontSize.lg;
|
|
140
|
-
* const fontFamily = typographyTokens.fontFamily.sans;
|
|
141
|
-
* ```
|
|
142
|
-
*/
|
|
143
|
-
export const typographyTokens = typography.typography;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Tokens de espaçamento
|
|
147
|
-
*
|
|
148
|
-
* @description
|
|
149
|
-
* Exporta todos os tokens de espaçamento padronizados do sistema.
|
|
150
|
-
* Utilizados para margens, paddings e gaps consistentes.
|
|
151
|
-
*
|
|
152
|
-
* @type {Object}
|
|
153
|
-
* @constant
|
|
154
|
-
* @readonly
|
|
155
|
-
*
|
|
156
|
-
* @example
|
|
157
|
-
* ```typescript
|
|
158
|
-
* import { spacingTokens } from '@rainersoft/design-tokens';
|
|
159
|
-
*
|
|
160
|
-
* const margin = spacingTokens.md;
|
|
161
|
-
* const padding = spacingTokens.lg;
|
|
162
|
-
* ```
|
|
163
|
-
*/
|
|
164
|
-
export const spacingTokens = spacing.spacing;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Tokens de raio de borda
|
|
168
|
-
*
|
|
169
|
-
* @description
|
|
170
|
-
* Exporta todos os tokens de raio de borda (border-radius) padronizados.
|
|
171
|
-
*
|
|
172
|
-
* @type {Object}
|
|
173
|
-
* @constant
|
|
174
|
-
* @readonly
|
|
175
|
-
*
|
|
176
|
-
* @example
|
|
177
|
-
* ```typescript
|
|
178
|
-
* import { radiusTokens } from '@rainersoft/design-tokens';
|
|
179
|
-
*
|
|
180
|
-
* const borderRadius = radiusTokens.md;
|
|
181
|
-
* ```
|
|
182
|
-
*/
|
|
183
|
-
export const radiusTokens = radius.radius;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Tokens de sombras
|
|
187
|
-
*
|
|
188
|
-
* @description
|
|
189
|
-
* Exporta todos os tokens de sombras, incluindo sombras para tema claro
|
|
190
|
-
* e efeitos de brilho (glow) para tema escuro.
|
|
191
|
-
*
|
|
192
|
-
* @type {Object}
|
|
193
|
-
* @constant
|
|
194
|
-
* @readonly
|
|
195
|
-
*
|
|
196
|
-
* @example
|
|
197
|
-
* ```typescript
|
|
198
|
-
* import { shadowTokens } from '@rainersoft/design-tokens';
|
|
199
|
-
*
|
|
200
|
-
* const shadow = shadowTokens.light.md;
|
|
201
|
-
* const glow = shadowTokens.dark.glow.cyan;
|
|
202
|
-
* ```
|
|
203
|
-
*/
|
|
204
|
-
export const shadowTokens = shadows.shadows;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Tokens de animações
|
|
208
|
-
*
|
|
209
|
-
* @description
|
|
210
|
-
* Exporta todos os tokens de animações, incluindo keyframes, durações
|
|
211
|
-
* e funções de timing para transições e animações do sistema.
|
|
212
|
-
*
|
|
213
|
-
* @type {Object}
|
|
214
|
-
* @constant
|
|
215
|
-
* @readonly
|
|
216
|
-
*
|
|
217
|
-
* @example
|
|
218
|
-
* ```typescript
|
|
219
|
-
* import { animationTokens } from '@rainersoft/design-tokens';
|
|
220
|
-
*
|
|
221
|
-
* const slideIn = animationTokens['slide-in'];
|
|
222
|
-
* const fadeIn = animationTokens['fade-in'];
|
|
223
|
-
* ```
|
|
224
|
-
*/
|
|
225
|
-
export const animationTokens = animations.animations;
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Tokens de efeitos visuais
|
|
229
|
-
*
|
|
230
|
-
* @description
|
|
231
|
-
* Exporta todos os tokens de efeitos visuais, incluindo filters, blur,
|
|
232
|
-
* glow, backdrop effects e outros efeitos para criar elementos visuais sofisticados.
|
|
233
|
-
*
|
|
234
|
-
* @type {Object}
|
|
235
|
-
* @constant
|
|
236
|
-
* @readonly
|
|
237
|
-
*
|
|
238
|
-
* @example
|
|
239
|
-
* ```typescript
|
|
240
|
-
* import { effectTokens } from '@rainersoft/design-tokens';
|
|
241
|
-
*
|
|
242
|
-
* const blur = effectTokens.blur.md;
|
|
243
|
-
* const glow = effectTokens.glow.neon.cyan.moderate;
|
|
244
|
-
* ```
|
|
245
|
-
*/
|
|
246
|
-
export const effectTokens = effects.effects;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Tokens de componentes
|
|
250
|
-
*
|
|
251
|
-
* @description
|
|
252
|
-
* Exporta todos os tokens específicos de componentes, incluindo configurações
|
|
253
|
-
* para celestial background, carousels e outros componentes visuais.
|
|
254
|
-
*
|
|
255
|
-
* @type {Object}
|
|
256
|
-
* @constant
|
|
257
|
-
* @readonly
|
|
258
|
-
*
|
|
259
|
-
* @example
|
|
260
|
-
* ```typescript
|
|
261
|
-
* import { componentTokens } from '@rainersoft/design-tokens';
|
|
262
|
-
*
|
|
263
|
-
* const starConfig = componentTokens.celestialBackground.stars.default;
|
|
264
|
-
* ```
|
|
265
|
-
*/
|
|
266
|
-
export const componentTokens = {
|
|
267
|
-
celestialBackground: celestialBackground.celestialBackground,
|
|
268
|
-
};
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* Tokens de motion
|
|
272
|
-
*
|
|
273
|
-
* @description
|
|
274
|
-
* Exporta todos os tokens relacionados a motion e animações, incluindo
|
|
275
|
-
* durações, easings, keyframes e transições seguindo Material Design e Fluent Design.
|
|
276
|
-
*
|
|
277
|
-
* @type {Object}
|
|
278
|
-
* @constant
|
|
279
|
-
* @readonly
|
|
280
|
-
*
|
|
281
|
-
* @example
|
|
282
|
-
* ```typescript
|
|
283
|
-
* import { motionTokens } from '@rainersoft/design-tokens';
|
|
284
|
-
*
|
|
285
|
-
* const duration = motionTokens.duration.normal;
|
|
286
|
-
* const easing = motionTokens.easing.standard.productive;
|
|
287
|
-
* ```
|
|
288
|
-
*/
|
|
289
|
-
export const motionTokens = motion.motion;
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Tokens de breakpoints
|
|
293
|
-
*
|
|
294
|
-
* @description
|
|
295
|
-
* Exporta todos os tokens de breakpoints responsivos para criar layouts
|
|
296
|
-
* mobile-first consistentes em todas as plataformas.
|
|
297
|
-
*
|
|
298
|
-
* @type {Object}
|
|
299
|
-
* @constant
|
|
300
|
-
* @readonly
|
|
301
|
-
*
|
|
302
|
-
* @example
|
|
303
|
-
* ```typescript
|
|
304
|
-
* import { breakpointTokens } from '@rainersoft/design-tokens';
|
|
305
|
-
*
|
|
306
|
-
* const tabletSize = breakpointTokens.md;
|
|
307
|
-
* const mediaQuery = breakpointTokens.mediaQueries.lg;
|
|
308
|
-
* ```
|
|
309
|
-
*/
|
|
310
|
-
export const breakpointTokens = breakpoints.breakpoints;
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Tokens de z-index
|
|
314
|
-
*
|
|
315
|
-
* @description
|
|
316
|
-
* Exporta todos os tokens de z-index para gerenciar camadas e sobreposições
|
|
317
|
-
* de forma consistente e escalável.
|
|
318
|
-
*
|
|
319
|
-
* @type {Object}
|
|
320
|
-
* @constant
|
|
321
|
-
* @readonly
|
|
322
|
-
*
|
|
323
|
-
* @example
|
|
324
|
-
* ```typescript
|
|
325
|
-
* import { zIndexTokens } from '@rainersoft/design-tokens';
|
|
326
|
-
*
|
|
327
|
-
* const modalLayer = zIndexTokens.modal;
|
|
328
|
-
* const tooltipLayer = zIndexTokens.tooltip;
|
|
329
|
-
* ```
|
|
330
|
-
*/
|
|
331
|
-
export const zIndexTokens = zIndex.zIndex;
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Tipo TypeScript para todos os tokens
|
|
335
|
-
*
|
|
336
|
-
* @typedef {Object} Tokens
|
|
337
|
-
* @description
|
|
338
|
-
* Tipo que representa a estrutura completa de todos os tokens de design.
|
|
339
|
-
* Útil para type-checking e autocomplete em IDEs.
|
|
340
|
-
*/
|
|
341
|
-
export type Tokens = typeof tokens;
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Tipo TypeScript para cores do tema claro
|
|
345
|
-
*
|
|
346
|
-
* @typedef {Object} LightColors
|
|
347
|
-
* @description
|
|
348
|
-
* Tipo que representa todas as cores disponíveis no tema claro.
|
|
349
|
-
*/
|
|
350
|
-
export type LightColors = typeof lightColors.colors;
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* Tipo TypeScript para cores do tema escuro
|
|
354
|
-
*
|
|
355
|
-
* @typedef {Object} DarkColors
|
|
356
|
-
* @description
|
|
357
|
-
* Tipo que representa todas as cores disponíveis no tema escuro (cyberpunk).
|
|
358
|
-
*/
|
|
359
|
-
export type DarkColors = typeof darkColors.colors;
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* Tipo TypeScript para tokens de tipografia
|
|
363
|
-
*
|
|
364
|
-
* @typedef {Object} Typography
|
|
365
|
-
* @description
|
|
366
|
-
* Tipo que representa todos os tokens de tipografia.
|
|
367
|
-
*/
|
|
368
|
-
export type Typography = typeof typography.typography;
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* Tipo TypeScript para tokens de espaçamento
|
|
372
|
-
*
|
|
373
|
-
* @typedef {Object} Spacing
|
|
374
|
-
* @description
|
|
375
|
-
* Tipo que representa todos os tokens de espaçamento.
|
|
376
|
-
*/
|
|
377
|
-
export type Spacing = typeof spacing.spacing;
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
* Tipo TypeScript para tokens de raio de borda
|
|
381
|
-
*
|
|
382
|
-
* @typedef {Object} Radius
|
|
383
|
-
* @description
|
|
384
|
-
* Tipo que representa todos os tokens de raio de borda.
|
|
385
|
-
*/
|
|
386
|
-
export type Radius = typeof radius.radius;
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* Tipo TypeScript para tokens de sombras
|
|
390
|
-
*
|
|
391
|
-
* @typedef {Object} Shadows
|
|
392
|
-
* @description
|
|
393
|
-
* Tipo que representa todos os tokens de sombras.
|
|
394
|
-
*/
|
|
395
|
-
export type Shadows = typeof shadows.shadows;
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* Tipo TypeScript para tokens de animações
|
|
399
|
-
*
|
|
400
|
-
* @typedef {Object} Animations
|
|
401
|
-
* @description
|
|
402
|
-
* Tipo que representa todos os tokens de animações.
|
|
403
|
-
*/
|
|
404
|
-
export type Animations = typeof animations.animations;
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* Tipo TypeScript para tokens de motion
|
|
408
|
-
*
|
|
409
|
-
* @typedef {Object} Motion
|
|
410
|
-
* @description
|
|
411
|
-
* Tipo que representa todos os tokens de motion.
|
|
412
|
-
*/
|
|
413
|
-
export type Motion = typeof motion.motion;
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* Tipo TypeScript para tokens de breakpoints
|
|
417
|
-
*
|
|
418
|
-
* @typedef {Object} Breakpoints
|
|
419
|
-
* @description
|
|
420
|
-
* Tipo que representa todos os tokens de breakpoints responsivos.
|
|
421
|
-
*/
|
|
422
|
-
export type Breakpoints = typeof breakpoints.breakpoints;
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* Tipo TypeScript para tokens de z-index
|
|
426
|
-
*
|
|
427
|
-
* @typedef {Object} ZIndex
|
|
428
|
-
* @description
|
|
429
|
-
* Tipo que representa todos os tokens de z-index.
|
|
430
|
-
*/
|
|
431
|
-
export type ZIndex = typeof zIndex.zIndex;
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* Exportação padrão dos tokens
|
|
435
|
-
*
|
|
436
|
-
* @description
|
|
437
|
-
* Exporta o objeto principal contendo todos os tokens de design.
|
|
438
|
-
*
|
|
439
|
-
* @type {Tokens}
|
|
440
|
-
* @default tokens
|
|
441
|
-
*/
|
|
442
|
-
export default tokens;
|
|
443
|
-
|
package/tokens/motion.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/theme.json",
|
|
3
|
-
"$description": "Motion tokens - Durations, easings, and transitions for animations",
|
|
4
|
-
"motion": {
|
|
5
|
-
"duration": {
|
|
6
|
-
"instant": "0ms",
|
|
7
|
-
"fast": "100ms",
|
|
8
|
-
"normal": "200ms",
|
|
9
|
-
"slow": "300ms",
|
|
10
|
-
"slower": "500ms",
|
|
11
|
-
"slowest": "800ms"
|
|
12
|
-
},
|
|
13
|
-
"easing": {
|
|
14
|
-
"linear": "linear",
|
|
15
|
-
"easeIn": "cubic-bezier(0.4, 0, 1, 1)",
|
|
16
|
-
"easeOut": "cubic-bezier(0, 0, 0.2, 1)",
|
|
17
|
-
"easeInOut": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
18
|
-
"easeInQuad": "cubic-bezier(0.55, 0.085, 0.68, 0.53)",
|
|
19
|
-
"easeOutQuad": "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
|
|
20
|
-
"easeInOutQuad": "cubic-bezier(0.455, 0.03, 0.515, 0.955)",
|
|
21
|
-
"easeInCubic": "cubic-bezier(0.55, 0.055, 0.675, 0.19)",
|
|
22
|
-
"easeOutCubic": "cubic-bezier(0.215, 0.61, 0.355, 1)",
|
|
23
|
-
"easeInOutCubic": "cubic-bezier(0.645, 0.045, 0.355, 1)",
|
|
24
|
-
"spring": "cubic-bezier(0.68, -0.55, 0.265, 1.55)"
|
|
25
|
-
},
|
|
26
|
-
"delay": {
|
|
27
|
-
"none": "0ms",
|
|
28
|
-
"short": "50ms",
|
|
29
|
-
"medium": "100ms",
|
|
30
|
-
"long": "200ms"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
package/tokens/radius.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/theme.json",
|
|
3
|
-
"$description": "Border radius tokens - Consistent corner rounding",
|
|
4
|
-
"radius": {
|
|
5
|
-
"none": "0px",
|
|
6
|
-
"sm": "0.125rem",
|
|
7
|
-
"base": "0.25rem",
|
|
8
|
-
"md": "0.375rem",
|
|
9
|
-
"lg": "0.5rem",
|
|
10
|
-
"xl": "0.75rem",
|
|
11
|
-
"2xl": "1rem",
|
|
12
|
-
"3xl": "1.5rem",
|
|
13
|
-
"full": "9999px"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|