@rainersoft/design-tokens 2.0.0 → 2.3.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.
- 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 +37 -85
- 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/formats/tokens.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/rainer-design-tokens.json",
|
|
3
3
|
"name": "@rainersoft/design-tokens",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"description": "Universal design tokens export for Rainer Design System",
|
|
6
6
|
"$generated": "This file is auto-generated. Do not edit manually.",
|
|
7
7
|
"$source": "tokens/*.json",
|
|
@@ -38,9 +38,12 @@
|
|
|
38
38
|
"$path": "tokens/shadows.json"
|
|
39
39
|
},
|
|
40
40
|
"meta": {
|
|
41
|
-
"repository": "https://github.com/RainerTeixeira/rainer-design-tokens
|
|
42
|
-
"author":
|
|
41
|
+
"repository": "https://github.com/RainerTeixeira/rainer-design-tokens",
|
|
42
|
+
"author": {
|
|
43
|
+
"name": "Rainer Teixeira",
|
|
44
|
+
"email": "suporte@rainersoft.com.br"
|
|
45
|
+
},
|
|
43
46
|
"license": "MIT",
|
|
44
|
-
"generatedAt": "2025-
|
|
47
|
+
"generatedAt": "2025-12-11T16:28:49.799Z"
|
|
45
48
|
}
|
|
46
49
|
}
|
package/package.json
CHANGED
|
@@ -1,126 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rainersoft/design-tokens",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
"version": "2.3.0",
|
|
4
|
+
"description": "Design tokens globais (CSS Variables, Tailwind config, temas) para o ecossistema Rainersoft",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Rainer Teixeira",
|
|
7
|
+
"email": "suporte@rainersoft.com.br"
|
|
8
|
+
},
|
|
8
9
|
"license": "MIT",
|
|
10
|
+
"packageManager": "pnpm@9.0.0",
|
|
9
11
|
"keywords": [
|
|
10
12
|
"design-tokens",
|
|
11
|
-
"
|
|
12
|
-
"w3c",
|
|
13
|
-
"dtcg",
|
|
14
|
-
"storybook",
|
|
13
|
+
"css-variables",
|
|
15
14
|
"tailwind",
|
|
16
|
-
"react",
|
|
17
|
-
"nextjs",
|
|
18
15
|
"design-system",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"typescript",
|
|
22
|
-
"primitive-tokens",
|
|
23
|
-
"semantic-tokens",
|
|
24
|
-
"theme",
|
|
25
|
-
"dark-mode",
|
|
26
|
-
"8pt-grid",
|
|
27
|
-
"modular-scale"
|
|
16
|
+
"themes",
|
|
17
|
+
"dark-mode"
|
|
28
18
|
],
|
|
29
|
-
"main": "
|
|
30
|
-
"module": "
|
|
31
|
-
"types": "
|
|
19
|
+
"main": "dist/index.js",
|
|
20
|
+
"module": "dist/index.mjs",
|
|
21
|
+
"types": "dist/index.d.ts",
|
|
32
22
|
"exports": {
|
|
33
23
|
".": {
|
|
34
24
|
"types": "./dist/index.d.ts",
|
|
35
25
|
"import": "./dist/index.mjs",
|
|
36
|
-
"require": "./dist/index.
|
|
37
|
-
"default": "./dist/index.mjs"
|
|
38
|
-
},
|
|
39
|
-
"./css": {
|
|
40
|
-
"types": "./dist/css.d.ts",
|
|
41
|
-
"import": "./dist/css.mjs"
|
|
42
|
-
},
|
|
43
|
-
"./tailwind": {
|
|
44
|
-
"types": "./dist/tailwind.d.ts",
|
|
45
|
-
"import": "./dist/tailwind.mjs"
|
|
26
|
+
"require": "./dist/index.js"
|
|
46
27
|
},
|
|
28
|
+
"./src/css-vars.css": "./src/css-vars.css",
|
|
47
29
|
"./formats/css-vars.css": "./formats/css-vars.css",
|
|
48
30
|
"./formats/tokens.json": "./formats/tokens.json",
|
|
49
|
-
"./formats/tailwind.config":
|
|
50
|
-
"types": "./formats/tailwind.config.ts",
|
|
51
|
-
"import": "./formats/tailwind.config.ts"
|
|
52
|
-
},
|
|
31
|
+
"./formats/tailwind.config": "./formats/tailwind.config.ts",
|
|
53
32
|
"./package.json": "./package.json"
|
|
54
33
|
},
|
|
55
34
|
"files": [
|
|
56
35
|
"dist",
|
|
36
|
+
"src",
|
|
57
37
|
"formats",
|
|
58
|
-
"
|
|
59
|
-
"themes",
|
|
60
|
-
"README.md",
|
|
61
|
-
"LICENSE"
|
|
38
|
+
"README.md"
|
|
62
39
|
],
|
|
63
40
|
"scripts": {
|
|
64
|
-
"build": "
|
|
65
|
-
"build:formats": "tsx scripts/build-formats.ts",
|
|
66
|
-
"build:css": "tsx scripts/build-css.ts",
|
|
67
|
-
"build:tailwind": "tsx scripts/build-tailwind.ts",
|
|
68
|
-
"build:tokens-json": "tsx scripts/build-tokens-json.ts",
|
|
41
|
+
"build": "tsx scripts/build-formats.ts && tsup",
|
|
69
42
|
"dev": "tsup --watch",
|
|
70
|
-
"
|
|
71
|
-
"lint": "pnpm exec eslint .",
|
|
43
|
+
"lint": "eslint . --ext ts,tsx",
|
|
72
44
|
"test": "jest",
|
|
73
|
-
"test:watch": "jest --watch",
|
|
74
45
|
"test:coverage": "jest --coverage",
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"setup:auth": "node scripts/setup-npm-auth.js",
|
|
79
|
-
"prepublishOnly": "pnpm run build:formats && pnpm run update:version && pnpm run type-check",
|
|
80
|
-
"clean": "pnpm exec rimraf dist",
|
|
81
|
-
"storybook": "storybook dev -p 6006",
|
|
82
|
-
"build-storybook": "storybook build",
|
|
83
|
-
"update:dates": "tsx scripts/update-dates.ts",
|
|
84
|
-
"update:version": "tsx scripts/update-version.ts",
|
|
85
|
-
"changelog": "tsx scripts/generate-changelog.ts",
|
|
86
|
-
"setup": "pnpm install",
|
|
87
|
-
"setup:clean": "pnpm run clean:all && pnpm install",
|
|
88
|
-
"clean:all": "pnpm exec rimraf node_modules pnpm-lock.yaml dist .storybook-build"
|
|
89
|
-
},
|
|
90
|
-
"peerDependencies": {
|
|
91
|
-
"react": ">=18.0.0"
|
|
46
|
+
"clean": "rimraf dist node_modules pnpm-lock.yaml",
|
|
47
|
+
"type-check": "tsc --noEmit",
|
|
48
|
+
"validate": "node scripts/validate-tokens.js"
|
|
92
49
|
},
|
|
93
50
|
"devDependencies": {
|
|
94
|
-
"@
|
|
95
|
-
"@storybook/addon-docs": "^10.0.8",
|
|
96
|
-
"@storybook/addon-onboarding": "^10.0.8",
|
|
97
|
-
"@storybook/react": "^10.0.8",
|
|
98
|
-
"@storybook/react-vite": "^10.0.8",
|
|
51
|
+
"@tailwindcss/postcss": "^4.0.0",
|
|
99
52
|
"@types/jest": "^29.5.11",
|
|
53
|
+
"@types/minimatch": "^6.0.0",
|
|
100
54
|
"@types/node": "^20.10.0",
|
|
101
|
-
"@
|
|
102
|
-
"@typescript-eslint/
|
|
103
|
-
"
|
|
104
|
-
"debug": "^4.4.3",
|
|
105
|
-
"eslint": "^9.39.1",
|
|
106
|
-
"eslint-plugin-storybook": "^10.0.8",
|
|
107
|
-
"globals": "^16.5.0",
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
56
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
57
|
+
"eslint": "^8.57.1",
|
|
108
58
|
"jest": "^29.7.0",
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"storybook": "^10.0.8",
|
|
59
|
+
"rimraf": "^5.0.5",
|
|
60
|
+
"tailwindcss": "^4.0.0",
|
|
112
61
|
"ts-jest": "^29.1.1",
|
|
113
62
|
"tsup": "^8.0.1",
|
|
114
63
|
"tsx": "^4.20.6",
|
|
115
|
-
"typescript": "^5.3.3"
|
|
116
|
-
"typescript-eslint": "^8.47.0"
|
|
64
|
+
"typescript": "^5.3.3"
|
|
117
65
|
},
|
|
118
66
|
"repository": {
|
|
119
67
|
"type": "git",
|
|
120
|
-
"url": "https://github.com/RainerTeixeira/rainer-design-tokens.git"
|
|
68
|
+
"url": "git+https://github.com/RainerTeixeira/rainer-design-tokens.git"
|
|
121
69
|
},
|
|
122
70
|
"bugs": {
|
|
123
71
|
"url": "https://github.com/RainerTeixeira/rainer-design-tokens/issues"
|
|
124
72
|
},
|
|
125
|
-
"homepage": "https://github.com/RainerTeixeira/rainer-design-tokens#readme"
|
|
73
|
+
"homepage": "https://github.com/RainerTeixeira/rainer-design-tokens#readme",
|
|
74
|
+
"publishConfig": {
|
|
75
|
+
"access": "public",
|
|
76
|
+
"registry": "https://registry.npmjs.org/"
|
|
77
|
+
}
|
|
126
78
|
}
|
package/themes/dark.ts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Tema Escuro - Edição Cyberpunk
|
|
3
|
-
*
|
|
4
|
-
* @description
|
|
5
|
-
* Combina tokens de design em um tema escuro inspirado no estilo cyberpunk.
|
|
6
|
-
* Possui cores neon vibrantes e efeitos de brilho (glow) para uso noturno.
|
|
7
|
-
* Este tema oferece uma experiência visual única e moderna, ideal para
|
|
8
|
-
* aplicações que buscam um visual futurista e impactante.
|
|
9
|
-
*
|
|
10
|
-
* @module themes/dark
|
|
11
|
-
* @version 2.0.0
|
|
12
|
-
* @author Rainer Teixeira
|
|
13
|
-
* @since 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
import { tokens } from '../tokens';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Objeto contendo os tokens para o tema escuro
|
|
20
|
-
*
|
|
21
|
-
* @description
|
|
22
|
-
* Tema completo que agrupa todos os tokens de design necessários
|
|
23
|
-
* para uma aplicação com tema escuro cyberpunk. Inclui cores neon,
|
|
24
|
-
* tipografia, espaçamento, raios de borda e sombras com efeitos de brilho.
|
|
25
|
-
*
|
|
26
|
-
* @type {Object}
|
|
27
|
-
* @property {Object} colors - Tokens de cores para o tema escuro (cyberpunk)
|
|
28
|
-
* @property {Object} typography - Tokens de tipografia (fontes, tamanhos, pesos, etc.)
|
|
29
|
-
* @property {Object} spacing - Tokens de espaçamento (margens, paddings)
|
|
30
|
-
* @property {Object} radius - Tokens de raio de borda
|
|
31
|
-
* @property {Object} shadows - Tokens de sombras com efeitos de brilho para o tema escuro
|
|
32
|
-
*
|
|
33
|
-
* @constant
|
|
34
|
-
* @readonly
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```typescript
|
|
38
|
-
* import { darkTheme } from '@rainersoft/design-tokens';
|
|
39
|
-
*
|
|
40
|
-
* // Acessar cores neon do tema escuro
|
|
41
|
-
* const neonCyan = darkTheme.colors.accent.cyan;
|
|
42
|
-
*
|
|
43
|
-
* // Acessar efeitos de brilho
|
|
44
|
-
* const glowShadow = darkTheme.shadows.glow.cyan;
|
|
45
|
-
*
|
|
46
|
-
* // Aplicar em componente
|
|
47
|
-
* <div style={{
|
|
48
|
-
* backgroundColor: darkTheme.colors.background.primary,
|
|
49
|
-
* boxShadow: darkTheme.shadows.glow.purple,
|
|
50
|
-
* padding: darkTheme.spacing.md
|
|
51
|
-
* }}>
|
|
52
|
-
* Conteúdo Cyberpunk
|
|
53
|
-
* </div>
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
export const darkTheme = {
|
|
57
|
-
colors: tokens.colors.dark,
|
|
58
|
-
typography: tokens.typography,
|
|
59
|
-
spacing: tokens.spacing,
|
|
60
|
-
radius: tokens.radius,
|
|
61
|
-
shadows: tokens.shadows.dark,
|
|
62
|
-
} as const;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Tipo TypeScript do tema escuro
|
|
66
|
-
*
|
|
67
|
-
* @typedef {Object} DarkTheme
|
|
68
|
-
* @description
|
|
69
|
-
* Tipo que representa a estrutura completa do tema escuro.
|
|
70
|
-
* Útil para type-checking e autocomplete em IDEs.
|
|
71
|
-
*
|
|
72
|
-
* @property {Object} colors - Cores do tema escuro (cyberpunk)
|
|
73
|
-
* @property {Object} typography - Tokens de tipografia
|
|
74
|
-
* @property {Object} spacing - Tokens de espaçamento
|
|
75
|
-
* @property {Object} radius - Tokens de raio de borda
|
|
76
|
-
* @property {Object} shadows - Sombras com efeitos de brilho do tema escuro
|
|
77
|
-
*/
|
|
78
|
-
export type DarkTheme = typeof darkTheme;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Exportação padrão do tema escuro
|
|
82
|
-
*
|
|
83
|
-
* @description
|
|
84
|
-
* Exporta o tema escuro como exportação padrão do módulo.
|
|
85
|
-
*
|
|
86
|
-
* @type {DarkTheme}
|
|
87
|
-
* @default darkTheme
|
|
88
|
-
*/
|
|
89
|
-
export default darkTheme;
|
package/themes/index.ts
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Ponto de entrada dos temas
|
|
3
|
-
*
|
|
4
|
-
* @description
|
|
5
|
-
* Exporta os temas claro e escuro para fácil consumo.
|
|
6
|
-
* Cada tema agrupa todos os tokens de design de forma organizada,
|
|
7
|
-
* facilitando a aplicação de temas completos na aplicação.
|
|
8
|
-
*
|
|
9
|
-
* @module themes
|
|
10
|
-
* @version 2.0.0
|
|
11
|
-
* @author Rainer Teixeira
|
|
12
|
-
* @since 1.0.0
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```typescript
|
|
16
|
-
* import { themes, lightTheme, darkTheme } from '@rainersoft/design-tokens';
|
|
17
|
-
*
|
|
18
|
-
* // Usar tema completo
|
|
19
|
-
* const currentTheme = themes.light;
|
|
20
|
-
*
|
|
21
|
-
* // Ou importar diretamente
|
|
22
|
-
* const colors = lightTheme.colors;
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Exporta o tema claro e seu tipo
|
|
28
|
-
*
|
|
29
|
-
* @description
|
|
30
|
-
* Tema claro profissional e limpo, adequado para uso diurno.
|
|
31
|
-
*
|
|
32
|
-
* @see {LightTheme} Para o tipo TypeScript do tema claro
|
|
33
|
-
*/
|
|
34
|
-
export { lightTheme, type LightTheme } from './light';
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Exporta o tema escuro e seu tipo
|
|
38
|
-
*
|
|
39
|
-
* @description
|
|
40
|
-
* Tema escuro inspirado no estilo cyberpunk com cores neon e efeitos de brilho.
|
|
41
|
-
*
|
|
42
|
-
* @see {DarkTheme} Para o tipo TypeScript do tema escuro
|
|
43
|
-
*/
|
|
44
|
-
export { darkTheme, type DarkTheme } from './dark';
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Objeto contendo todos os temas disponíveis
|
|
48
|
-
*
|
|
49
|
-
* @description
|
|
50
|
-
* Objeto que agrupa todos os temas do sistema, permitindo acesso
|
|
51
|
-
* fácil e organizado aos diferentes temas disponíveis.
|
|
52
|
-
*
|
|
53
|
-
* @type {Object}
|
|
54
|
-
* @property {LightTheme} light - Tema claro
|
|
55
|
-
* @property {DarkTheme} dark - Tema escuro (cyberpunk)
|
|
56
|
-
*
|
|
57
|
-
* @constant
|
|
58
|
-
* @readonly
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```typescript
|
|
62
|
-
* import { themes } from '@rainersoft/design-tokens';
|
|
63
|
-
*
|
|
64
|
-
* // Acessar tema claro
|
|
65
|
-
* const lightColors = themes.light.colors;
|
|
66
|
-
*
|
|
67
|
-
* // Acessar tema escuro
|
|
68
|
-
* const darkShadows = themes.dark.shadows;
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
import { lightTheme } from './light';
|
|
72
|
-
import { darkTheme } from './dark';
|
|
73
|
-
|
|
74
|
-
export const themes = {
|
|
75
|
-
light: lightTheme,
|
|
76
|
-
dark: darkTheme,
|
|
77
|
-
} as const;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Tipo TypeScript para todos os temas
|
|
81
|
-
*
|
|
82
|
-
* @typedef {Object} Themes
|
|
83
|
-
* @description
|
|
84
|
-
* Tipo que representa a estrutura completa de todos os temas disponíveis.
|
|
85
|
-
* Útil para type-checking e autocomplete em IDEs.
|
|
86
|
-
*/
|
|
87
|
-
export type Themes = typeof themes;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Exportação padrão dos temas
|
|
91
|
-
*
|
|
92
|
-
* @description
|
|
93
|
-
* Exporta o objeto principal contendo todos os temas disponíveis.
|
|
94
|
-
*
|
|
95
|
-
* @type {Themes}
|
|
96
|
-
* @default themes
|
|
97
|
-
*/
|
|
98
|
-
export default themes;
|
|
99
|
-
|
package/themes/light.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Tema Claro - Rainer Design System
|
|
3
|
-
*
|
|
4
|
-
* @description
|
|
5
|
-
* Agrupa os design tokens em um tema claro profissional e limpo,
|
|
6
|
-
* adequado para uso diurno. Este tema oferece uma experiência visual
|
|
7
|
-
* clara e moderna, ideal para aplicações que requerem legibilidade
|
|
8
|
-
* e profissionalismo.
|
|
9
|
-
*
|
|
10
|
-
* @module themes/light
|
|
11
|
-
* @version 2.0.0
|
|
12
|
-
* @author Rainer Teixeira
|
|
13
|
-
* @since 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
import { tokens } from '../tokens';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Objeto contendo os tokens para o tema claro
|
|
20
|
-
*
|
|
21
|
-
* @description
|
|
22
|
-
* Tema completo que agrupa todos os tokens de design necessários
|
|
23
|
-
* para uma aplicação com tema claro. Inclui cores, tipografia,
|
|
24
|
-
* espaçamento, raios de borda e sombras.
|
|
25
|
-
*
|
|
26
|
-
* @type {Object}
|
|
27
|
-
* @property {Object} colors - Tokens de cores para o tema claro
|
|
28
|
-
* @property {Object} typography - Tokens de tipografia (fontes, tamanhos, pesos, etc.)
|
|
29
|
-
* @property {Object} spacing - Tokens de espaçamento (margens, paddings)
|
|
30
|
-
* @property {Object} radius - Tokens de raio de borda
|
|
31
|
-
* @property {Object} shadows - Tokens de sombras para o tema claro
|
|
32
|
-
*
|
|
33
|
-
* @constant
|
|
34
|
-
* @readonly
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```typescript
|
|
38
|
-
* import { lightTheme } from '@rainersoft/design-tokens';
|
|
39
|
-
*
|
|
40
|
-
* // Acessar cores do tema claro
|
|
41
|
-
* const primaryColor = lightTheme.colors.brand.primary;
|
|
42
|
-
*
|
|
43
|
-
* // Acessar tipografia
|
|
44
|
-
* const fontSize = lightTheme.typography.fontSize.lg;
|
|
45
|
-
*
|
|
46
|
-
* // Aplicar em componente
|
|
47
|
-
* <div style={{
|
|
48
|
-
* backgroundColor: lightTheme.colors.background.primary,
|
|
49
|
-
* padding: lightTheme.spacing.md
|
|
50
|
-
* }}>
|
|
51
|
-
* Conteúdo
|
|
52
|
-
* </div>
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
export const lightTheme = {
|
|
56
|
-
colors: tokens.colors.light,
|
|
57
|
-
typography: tokens.typography,
|
|
58
|
-
spacing: tokens.spacing,
|
|
59
|
-
radius: tokens.radius,
|
|
60
|
-
shadows: tokens.shadows.light,
|
|
61
|
-
} as const;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Tipo TypeScript do tema claro
|
|
65
|
-
*
|
|
66
|
-
* @typedef {Object} LightTheme
|
|
67
|
-
* @description
|
|
68
|
-
* Tipo que representa a estrutura completa do tema claro.
|
|
69
|
-
* Útil para type-checking e autocomplete em IDEs.
|
|
70
|
-
*
|
|
71
|
-
* @property {Object} colors - Cores do tema claro
|
|
72
|
-
* @property {Object} typography - Tokens de tipografia
|
|
73
|
-
* @property {Object} spacing - Tokens de espaçamento
|
|
74
|
-
* @property {Object} radius - Tokens de raio de borda
|
|
75
|
-
* @property {Object} shadows - Sombras do tema claro
|
|
76
|
-
*/
|
|
77
|
-
export type LightTheme = typeof lightTheme;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Exportação padrão do tema claro
|
|
81
|
-
*
|
|
82
|
-
* @description
|
|
83
|
-
* Exporta o tema claro como exportação padrão do módulo.
|
|
84
|
-
*
|
|
85
|
-
* @type {LightTheme}
|
|
86
|
-
* @default lightTheme
|
|
87
|
-
*/
|
|
88
|
-
export default lightTheme;
|