athlefi-ui 0.1.1 → 0.1.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
@@ -56,13 +56,22 @@ tsconfig.json
56
56
 
57
57
  Instalar:
58
58
 
59
- npm install @athlefi/ui
59
+ npm install athlefi-ui
60
60
 
61
61
 
62
- Importar componentes:
62
+ Importar tokens en tu layout principal (una sola vez):
63
63
 
64
64
  ---
65
- import { Button } from "@athlefi/ui";
65
+ // src/layouts/Layout.astro
66
+ import "athlefi-ui/tokens/colors.css";
67
+ import "athlefi-ui/tokens/typography.css";
68
+ ---
69
+
70
+
71
+ Usar componentes:
72
+
73
+ ---
74
+ import { Button } from "athlefi-ui";
66
75
  ---
67
76
 
68
77
  <Button variant="primary">Invertir ahora</Button>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "athlefi-ui",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Librería UI centralizada del ecosistema AthleFi basada en Componentes Astro",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -1,14 +1,14 @@
1
- @theme {
2
- --color-primary-90: #06080e;
3
- --color-primary-60: #01eac7;
4
- --color-primary-30: #0890d1;
5
-
6
- --color-white: #ffffff;
7
- --color-gray-medium: #d9d9d9;
8
- --color-gray-light: #f2f2f2;
9
-
10
- /* Colores semánticos */
11
- --color-success: #25a249;
12
- --color-warning: #f1c21b;
13
- --color-error: #da1e28;
14
- }
1
+ :root {
2
+ --color-primary-90: #06080e;
3
+ --color-primary-60: #01eac7;
4
+ --color-primary-30: #0890d1;
5
+
6
+ --color-white: #ffffff;
7
+ --color-gray-medium: #d9d9d9;
8
+ --color-gray-light: #f2f2f2;
9
+
10
+ /* Colores semánticos */
11
+ --color-success: #25a249;
12
+ --color-warning: #f1c21b;
13
+ --color-error: #da1e28;
14
+ }