@wmoney/ui-kit 1.0.5 → 1.0.6
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 +29 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,11 +35,20 @@ Para ter acesso à tipagem TypeScript dos tokens de cores:
|
|
|
35
35
|
import { ThemeTokensProvider, type ThemeTokens } from '@wmoney/ui-kit';
|
|
36
36
|
|
|
37
37
|
const customTokens: ThemeTokens = {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
light: {
|
|
39
|
+
primary: '#ff0000',
|
|
40
|
+
secondary: '#00ff00',
|
|
41
|
+
background: '#ffffff',
|
|
42
|
+
foreground: '#000000',
|
|
43
|
+
// ... outros tokens com autocomplete e validação de tipos
|
|
44
|
+
},
|
|
45
|
+
dark: {
|
|
46
|
+
primary: '#ff0050',
|
|
47
|
+
secondary: '#00f199',
|
|
48
|
+
background: '#000000',
|
|
49
|
+
foreground: '#ffffff',
|
|
50
|
+
// ... outros tokens com autocomplete e validação de tipos
|
|
51
|
+
}
|
|
43
52
|
};
|
|
44
53
|
|
|
45
54
|
function App() {
|
|
@@ -59,10 +68,20 @@ O UI Kit suporta personalização de tokens de cores através do `ThemeTokensPro
|
|
|
59
68
|
import { ThemeTokensProvider } from '@wmoney/ui-kit';
|
|
60
69
|
|
|
61
70
|
const customTokens = {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
71
|
+
light: {
|
|
72
|
+
primary: '#ff0000',
|
|
73
|
+
secondary: '#00ff00',
|
|
74
|
+
background: '#ffffff',
|
|
75
|
+
foreground: '#000000',
|
|
76
|
+
// ... outros tokens com autocomplete e validação de tipos
|
|
77
|
+
},
|
|
78
|
+
dark: {
|
|
79
|
+
primary: '#ff0050',
|
|
80
|
+
secondary: '#00f199',
|
|
81
|
+
background: '#000000',
|
|
82
|
+
foreground: '#ffffff',
|
|
83
|
+
// ... outros tokens com autocomplete e validação de tipos
|
|
84
|
+
}
|
|
66
85
|
};
|
|
67
86
|
|
|
68
87
|
function App() {
|
|
@@ -74,7 +93,7 @@ function App() {
|
|
|
74
93
|
}
|
|
75
94
|
```
|
|
76
95
|
|
|
77
|
-
Os tokens disponíveis incluem: `primary`, `secondary`, `accent`, `foreground`, `background`, `muted`, `border`, `destructive`, `success`, `warning`, etc.
|
|
96
|
+
Os tokens disponíveis são separados por tema `light` e `dark`, e incluem: `primary`, `secondary`, `accent`, `foreground`, `background`, `muted`, `border`, `destructive`, `success`, `warning`, etc.
|
|
78
97
|
|
|
79
98
|
## Componentes Disponíveis
|
|
80
99
|
|