@agroshine/ags-web-ui-kit 1.2.1 → 1.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/dist/styles/tokens.css +184 -4
- package/package.json +1 -1
package/dist/styles/tokens.css
CHANGED
|
@@ -1,11 +1,191 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* AgroShine · Luna Nueva — tokens
|
|
3
|
-
* Importar desde el CSS raíz de la app si NO se usa el Tailwind preset.
|
|
2
|
+
* AgroShine · Luna Nueva — design tokens (Tailwind v4 + shadcn-compatible).
|
|
4
3
|
*
|
|
5
|
-
*
|
|
4
|
+
* Importar desde el CSS raíz de la app:
|
|
6
5
|
*
|
|
7
|
-
*
|
|
6
|
+
* @import 'tailwindcss';
|
|
7
|
+
* @import '@agroshine/ags-web-ui-kit/styles/tokens.css';
|
|
8
|
+
*
|
|
9
|
+
* Provee:
|
|
10
|
+
* 1. `@theme` con escalas de marca (default/primary/secondary/success/warning/
|
|
11
|
+
* danger/grey/content1-4/focus/overlay), fuentes, radius, tipografía,
|
|
12
|
+
* animaciones — para que Tailwind v4 genere `bg-primary-500`,
|
|
13
|
+
* `border-secondary-50`, `text-h2`, `font-roboto`, etc.
|
|
14
|
+
* 2. Variables HSL semánticas shadcn (`--background`, `--border`, etc.) en
|
|
15
|
+
* `:root` y `.dark`, vinculadas a los tokens semánticos del `@theme`.
|
|
16
|
+
*
|
|
17
|
+
* Las escalas full 50-900 también viven en `tailwind.preset.cjs` para apps
|
|
18
|
+
* que sigan en Tailwind v3.
|
|
8
19
|
*/
|
|
20
|
+
|
|
21
|
+
@theme {
|
|
22
|
+
/* ---------- Fonts ---------- */
|
|
23
|
+
--font-roboto: 'Roboto', sans-serif;
|
|
24
|
+
--font-mono: 'JetBrains Mono', ui-monospace, monospace;
|
|
25
|
+
|
|
26
|
+
/* ---------- Type scale ---------- */
|
|
27
|
+
--text-h2: 20px;
|
|
28
|
+
--text-h2--font-weight: 700;
|
|
29
|
+
--text-subtitleLarge: 16px;
|
|
30
|
+
--text-subtitleLarge--font-weight: 600;
|
|
31
|
+
--text-subtitleMedium: 14px;
|
|
32
|
+
--text-subtitleMedium--font-weight: 600;
|
|
33
|
+
--text-bodyMedium: 14px;
|
|
34
|
+
--text-bodyMedium--font-weight: 500;
|
|
35
|
+
--text-caption: 12px;
|
|
36
|
+
--text-caption--font-weight: 600;
|
|
37
|
+
--text-buttons: 14px;
|
|
38
|
+
--text-buttons--font-weight: 600;
|
|
39
|
+
|
|
40
|
+
/* ---------- Radius ---------- */
|
|
41
|
+
--radius-lg: var(--radius);
|
|
42
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
43
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
44
|
+
|
|
45
|
+
/* ---------- Brand color scales ---------- */
|
|
46
|
+
--color-default-50: #f6f8f7;
|
|
47
|
+
--color-default-100: #eaefec;
|
|
48
|
+
--color-default-200: #dee5e0;
|
|
49
|
+
--color-default-300: #d2dcd5;
|
|
50
|
+
--color-default-400: #c5d2c9;
|
|
51
|
+
--color-default-500: #b9c9be;
|
|
52
|
+
--color-default-600: #99a69d;
|
|
53
|
+
--color-default-700: #78837c;
|
|
54
|
+
--color-default-800: #585f5a;
|
|
55
|
+
--color-default-900: #383c39;
|
|
56
|
+
--color-default: #d4d4d8;
|
|
57
|
+
--color-default-foreground: #000;
|
|
58
|
+
|
|
59
|
+
--color-primary-50: #e3e7e6;
|
|
60
|
+
--color-primary-100: #bbc6c3;
|
|
61
|
+
--color-primary-200: #94a5a0;
|
|
62
|
+
--color-primary-300: #6c847c;
|
|
63
|
+
--color-primary-400: #456359;
|
|
64
|
+
--color-primary-500: #1d4236;
|
|
65
|
+
--color-primary-600: #18362d;
|
|
66
|
+
--color-primary-700: #132b23;
|
|
67
|
+
--color-primary-800: #0e1f1a;
|
|
68
|
+
--color-primary-900: #091410;
|
|
69
|
+
--color-primary: #1d4236;
|
|
70
|
+
--color-primary-foreground: #fff;
|
|
71
|
+
|
|
72
|
+
--color-secondary-50: #fbf1e8;
|
|
73
|
+
--color-secondary-100: #f4dcc4;
|
|
74
|
+
--color-secondary-200: #e9c19a;
|
|
75
|
+
--color-secondary-300: #dea670;
|
|
76
|
+
--color-secondary-400: #d38d4f;
|
|
77
|
+
--color-secondary-500: #c87a3c;
|
|
78
|
+
--color-secondary-600: #a86430;
|
|
79
|
+
--color-secondary-700: #834d25;
|
|
80
|
+
--color-secondary-800: #5e371a;
|
|
81
|
+
--color-secondary-900: #3a210f;
|
|
82
|
+
--color-secondary: #c87a3c;
|
|
83
|
+
--color-secondary-foreground: #fff;
|
|
84
|
+
|
|
85
|
+
--color-success-50: #e8faf0;
|
|
86
|
+
--color-success-100: #d1f4e0;
|
|
87
|
+
--color-success-200: #a2e9c1;
|
|
88
|
+
--color-success-300: #74dfa2;
|
|
89
|
+
--color-success-400: #45d483;
|
|
90
|
+
--color-success-500: #17c964;
|
|
91
|
+
--color-success-600: #12a150;
|
|
92
|
+
--color-success-700: #0e793c;
|
|
93
|
+
--color-success-800: #095028;
|
|
94
|
+
--color-success-900: #052814;
|
|
95
|
+
--color-success: #405f54;
|
|
96
|
+
--color-success-foreground: #fff;
|
|
97
|
+
|
|
98
|
+
--color-warning-50: #fefce8;
|
|
99
|
+
--color-warning-100: #fdedd3;
|
|
100
|
+
--color-warning-200: #fbdba7;
|
|
101
|
+
--color-warning-300: #f9c97c;
|
|
102
|
+
--color-warning-400: #f7b750;
|
|
103
|
+
--color-warning-500: #f5a524;
|
|
104
|
+
--color-warning-600: #f5a524;
|
|
105
|
+
--color-warning-700: #936316;
|
|
106
|
+
--color-warning-800: #62420e;
|
|
107
|
+
--color-warning-900: #312107;
|
|
108
|
+
--color-warning: #ebc40e;
|
|
109
|
+
--color-warning-foreground: #000;
|
|
110
|
+
|
|
111
|
+
--color-danger-50: #fee7ef;
|
|
112
|
+
--color-danger-100: #fdd0df;
|
|
113
|
+
--color-danger-200: #faa0bf;
|
|
114
|
+
--color-danger-300: #f871a0;
|
|
115
|
+
--color-danger-400: #f54180;
|
|
116
|
+
--color-danger-500: #f31260;
|
|
117
|
+
--color-danger-600: #c20e4d;
|
|
118
|
+
--color-danger-700: #920b3a;
|
|
119
|
+
--color-danger-800: #610726;
|
|
120
|
+
--color-danger-900: #310413;
|
|
121
|
+
--color-danger: #ed8688;
|
|
122
|
+
--color-danger-foreground: #000;
|
|
123
|
+
|
|
124
|
+
--color-grey-50: #ffffff;
|
|
125
|
+
--color-grey-100: #fefefe;
|
|
126
|
+
--color-grey-200: #f4f4f5;
|
|
127
|
+
--color-grey-300: #eaeaec;
|
|
128
|
+
--color-grey-400: #dfdfe2;
|
|
129
|
+
--color-grey-500: #d5d5d9;
|
|
130
|
+
--color-grey-600: #cbcbd0;
|
|
131
|
+
--color-grey-700: #c1c1c6;
|
|
132
|
+
--color-grey-800: #b6b6bd;
|
|
133
|
+
--color-grey-900: #acacb4;
|
|
134
|
+
--color-grey: #acacb4;
|
|
135
|
+
--color-grey-foreground: #000;
|
|
136
|
+
|
|
137
|
+
--color-content1: #ffffff;
|
|
138
|
+
--color-content1-foreground: #000;
|
|
139
|
+
--color-content2: #f4f4f5;
|
|
140
|
+
--color-content2-foreground: #000;
|
|
141
|
+
--color-content3: #e4e4e7;
|
|
142
|
+
--color-content3-foreground: #000;
|
|
143
|
+
--color-content4: #d4d4d8;
|
|
144
|
+
--color-content4-foreground: #000;
|
|
145
|
+
|
|
146
|
+
--color-focus: #456359;
|
|
147
|
+
--color-overlay: #000000;
|
|
148
|
+
|
|
149
|
+
/* ---------- shadcn semantic tokens (resuelven HSL via :root) ---------- */
|
|
150
|
+
--color-background: hsl(var(--background));
|
|
151
|
+
--color-foreground: hsl(var(--foreground));
|
|
152
|
+
--color-card: hsl(var(--card));
|
|
153
|
+
--color-card-foreground: hsl(var(--card-foreground));
|
|
154
|
+
--color-popover: hsl(var(--popover));
|
|
155
|
+
--color-popover-foreground: hsl(var(--popover-foreground));
|
|
156
|
+
--color-muted: hsl(var(--muted));
|
|
157
|
+
--color-muted-foreground: hsl(var(--muted-foreground));
|
|
158
|
+
--color-accent: hsl(var(--accent));
|
|
159
|
+
--color-accent-foreground: hsl(var(--accent-foreground));
|
|
160
|
+
--color-destructive: hsl(var(--destructive));
|
|
161
|
+
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
|
162
|
+
--color-border: hsl(var(--border));
|
|
163
|
+
--color-input: hsl(var(--input));
|
|
164
|
+
--color-ring: hsl(var(--ring));
|
|
165
|
+
|
|
166
|
+
/* ---------- Animations ---------- */
|
|
167
|
+
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
168
|
+
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@keyframes accordion-down {
|
|
172
|
+
from {
|
|
173
|
+
height: 0;
|
|
174
|
+
}
|
|
175
|
+
to {
|
|
176
|
+
height: var(--radix-accordion-content-height);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
@keyframes accordion-up {
|
|
181
|
+
from {
|
|
182
|
+
height: var(--radix-accordion-content-height);
|
|
183
|
+
}
|
|
184
|
+
to {
|
|
185
|
+
height: 0;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
9
189
|
:root {
|
|
10
190
|
--background: 0 0% 100%;
|
|
11
191
|
--foreground: 0 0% 3.9%;
|