@wmoney/ui-kit 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/README.md CHANGED
@@ -27,6 +27,30 @@ function App() {
27
27
  }
28
28
  ```
29
29
 
30
+ ## Tipagem dos Tokens
31
+
32
+ Para ter acesso à tipagem TypeScript dos tokens de cores:
33
+
34
+ ```tsx
35
+ import { ThemeTokensProvider, type ThemeTokens } from '@wmoney/ui-kit';
36
+
37
+ const customTokens: ThemeTokens = {
38
+ primary: '#ff0000',
39
+ secondary: '#00ff00',
40
+ background: '#ffffff',
41
+ foreground: '#000000',
42
+ // ... outros tokens com autocomplete e validação de tipos
43
+ };
44
+
45
+ function App() {
46
+ return (
47
+ <ThemeTokensProvider tokens={customTokens}>
48
+ {/* Seus componentes */}
49
+ </ThemeTokensProvider>
50
+ );
51
+ }
52
+ ```
53
+
30
54
  ## Personalização de Temas
31
55
 
32
56
  O UI Kit suporta personalização de tokens de cores através do `ThemeTokensProvider`. Você pode passar tokens alternativos para personalizar as cores: