orbital-ds 0.7.0 → 0.9.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/AGENTS.md +145 -80
- package/README.md +87 -73
- package/components.manifest.json +1326 -1267
- package/contract.json +226 -168
- package/dist/hooks/use-ds-messages.d.ts +36 -0
- package/dist/hooks/use-ds-messages.js +12 -0
- package/dist/hooks/use-ds-motion.d.ts +17 -0
- package/dist/hooks/use-ds-motion.js +50 -0
- package/dist/lib/i18n.d.ts +46 -0
- package/dist/lib/i18n.js +109 -0
- package/dist/lib/motion.d.ts +74 -0
- package/dist/lib/motion.js +97 -0
- package/dist/styles.css +876 -528
- package/dist/themes/friendly.css +362 -318
- package/dist/themes/friendly.meta.json +75 -14
- package/dist/themes/friendly.scoped.css +362 -318
- package/dist/themes/qratia.meta.json +42 -12
- package/dist/themes/tactile.css +575 -429
- package/dist/themes/tactile.fonts.css +3 -2
- package/dist/themes/tactile.guide.md +82 -49
- package/dist/themes/tactile.meta.json +175 -16
- package/dist/themes/tactile.scoped.css +575 -429
- package/dist/themes/twitter.css +354 -298
- package/dist/themes/twitter.meta.json +83 -61
- package/dist/themes/twitter.scoped.css +354 -298
- package/dist/themes/zyro.css +443 -389
- package/dist/themes/zyro.meta.json +67 -14
- package/dist/themes/zyro.scoped.css +443 -389
- package/dist/ui/accordion.js +5 -5
- package/dist/ui/alert-dialog.js +3 -3
- package/dist/ui/alert.d.ts +1 -1
- package/dist/ui/alert.js +9 -3
- package/dist/ui/attachment.d.ts +1 -1
- package/dist/ui/attachment.js +4 -4
- package/dist/ui/avatar.js +6 -6
- package/dist/ui/ayuda.js +3 -2
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/badge.js +9 -3
- package/dist/ui/banner.d.ts +14 -0
- package/dist/ui/banner.js +88 -0
- package/dist/ui/breadcrumb.js +7 -3
- package/dist/ui/bubble.js +6 -6
- package/dist/ui/button-group.js +4 -4
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/button.js +5 -5
- package/dist/ui/calendar.js +33 -6
- package/dist/ui/card.js +4 -4
- package/dist/ui/carousel.js +15 -8
- package/dist/ui/chart.js +7 -3
- package/dist/ui/checkbox.js +1 -1
- package/dist/ui/combobox.js +7 -7
- package/dist/ui/command.js +13 -11
- package/dist/ui/context-menu.js +8 -8
- package/dist/ui/dialog.js +10 -6
- package/dist/ui/drawer.js +9 -9
- package/dist/ui/dropdown-menu.js +8 -8
- package/dist/ui/empty.js +3 -3
- package/dist/ui/field.js +2 -2
- package/dist/ui/hover-card.js +1 -1
- package/dist/ui/i18n-provider.d.ts +11 -0
- package/dist/ui/i18n-provider.js +18 -0
- package/dist/ui/icon-tile.d.ts +1 -1
- package/dist/ui/input-group.d.ts +1 -1
- package/dist/ui/input-group.js +11 -9
- package/dist/ui/input-otp.js +3 -3
- package/dist/ui/input.js +1 -1
- package/dist/ui/item.d.ts +1 -1
- package/dist/ui/item.js +3 -3
- package/dist/ui/kbd.js +1 -1
- package/dist/ui/label.js +1 -1
- package/dist/ui/marker.d.ts +1 -1
- package/dist/ui/marker.js +2 -2
- package/dist/ui/menubar.js +9 -9
- package/dist/ui/message-scroller.js +5 -2
- package/dist/ui/message.js +2 -2
- package/dist/ui/motion-provider.d.ts +11 -0
- package/dist/ui/motion-provider.js +16 -0
- package/dist/ui/native-select.js +4 -4
- package/dist/ui/navigation-menu.js +7 -6
- package/dist/ui/pagination.js +19 -11
- package/dist/ui/popover.js +2 -2
- package/dist/ui/progress.js +2 -2
- package/dist/ui/questionnaire.js +20 -15
- package/dist/ui/radio-group.js +2 -2
- package/dist/ui/resizable.js +2 -2
- package/dist/ui/scroll-area.js +3 -3
- package/dist/ui/select.js +6 -6
- package/dist/ui/separator.js +1 -1
- package/dist/ui/sheet.js +6 -4
- package/dist/ui/sidebar.js +42 -30
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/slider.js +6 -6
- package/dist/ui/sonner.js +25 -8
- package/dist/ui/spinner.js +4 -1
- package/dist/ui/switch.js +2 -2
- package/dist/ui/table.js +3 -3
- package/dist/ui/tabs.js +5 -5
- package/dist/ui/textarea.js +1 -1
- package/dist/ui/toast.js +15 -12
- package/dist/ui/toggle-group.js +2 -2
- package/dist/ui/toggle.js +6 -4
- package/dist/ui/tooltip.js +2 -2
- package/docs/CONTRACT.md +183 -153
- package/package.json +160 -142
- package/scripts/brand-core.mjs +153 -0
- package/scripts/doctor.mjs +128 -7
- package/scripts/i18n.mjs +111 -0
- package/scripts/init.mjs +294 -57
- package/scripts/setup.mjs +99 -0
|
@@ -1,389 +1,443 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* TEMA zyro — «liquid glass» (traducido de faro-orbital-zyro-ui).
|
|
3
|
-
*
|
|
4
|
-
* Personalidad: lavanda claro / azul muy oscuro, acento azul profundo (claro) y
|
|
5
|
-
* cian (oscuro). El cristal vive en la capa de NAVEGACIÓN y CONTROLES (sidebar,
|
|
6
|
-
* campos, menús); el CONTENIDO (tarjetas) se mantiene casi opaco, como indican
|
|
7
|
-
* las guías de cristal. Sidebar a ras de borde, sin silueta flotante. Acción
|
|
8
|
-
* primaria = píldora con degradado de marca y brillo.
|
|
9
|
-
*
|
|
10
|
-
* Estructura del fichero:
|
|
11
|
-
* 1. Variables claras (:root) y oscuras (.dark) — el CONTRATO del tema.
|
|
12
|
-
* 2. Capa de PERSONALIDAD — reglas sobre los ganchos del DOM (`data-slot`,
|
|
13
|
-
* `data-variant`…) escritas solo con variables. Va SIN capa para ganar a las
|
|
14
|
-
* utilidades de los componentes, así que define también los estados
|
|
15
|
-
* (hover, active). Es lo que da forma propia a los elementos.
|
|
16
|
-
*
|
|
17
|
-
* Variables `--zy-*`: privadas de este tema (no son contrato).
|
|
18
|
-
* Importar DESPUÉS de la estructura. Fuentes: `zyro.fonts.css`, lo primero del CSS.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
/* ── 1. VARIABLES · PIEL CLARA ───────────────────────────────────────────── */
|
|
22
|
-
:root:where([data-theme='zyro']) {
|
|
23
|
-
--radius: 18px;
|
|
24
|
-
|
|
25
|
-
/* Tipografía: Montserrat (titulares) + Roboto (cuerpo) */
|
|
26
|
-
--ds-font-sans: 'Roboto', system-ui, -apple-system, sans-serif;
|
|
27
|
-
--ds-font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
|
|
28
|
-
--ds-font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
|
|
29
|
-
|
|
30
|
-
/* Lateral: iconos, raíl, logo y separadores (cada tema fija su forma y tamaño) */
|
|
31
|
-
--ds-sidebar-icon: 1.25rem;
|
|
32
|
-
--ds-sidebar-icon-stroke: 2;
|
|
33
|
-
--ds-sidebar-rail-w: 4.5rem;
|
|
34
|
-
--ds-sidebar-rail-item: 2.75rem;
|
|
35
|
-
--ds-sidebar-logo: 2.25rem;
|
|
36
|
-
--ds-sidebar-sep-inset: 0rem;
|
|
37
|
-
--ds-heading-tracking: -0.01em;
|
|
38
|
-
|
|
39
|
-
/* Color */
|
|
40
|
-
--background: #eaeefb;
|
|
41
|
-
--foreground: rgba(14, 22, 48, 0.92);
|
|
42
|
-
|
|
43
|
-
--card: rgba(255, 255, 255, 0.98);
|
|
44
|
-
--card-foreground: rgba(14, 22, 48, 0.92);
|
|
45
|
-
--popover: #ffffff;
|
|
46
|
-
--popover-foreground: rgba(14, 22, 48, 0.92);
|
|
47
|
-
|
|
48
|
-
--primary: #0349fe;
|
|
49
|
-
--primary-foreground: #ffffff;
|
|
50
|
-
--secondary: rgba(243, 246, 253, 0.9);
|
|
51
|
-
--secondary-foreground: rgba(14, 22, 48, 0.92);
|
|
52
|
-
--muted: rgba(243, 246, 253, 0.9);
|
|
53
|
-
--muted-foreground: rgba(14, 22, 48, 0.66);
|
|
54
|
-
--accent: rgba(3, 73, 254, 0.09);
|
|
55
|
-
--accent-foreground: #0349fe;
|
|
56
|
-
--destructive: #e61919;
|
|
57
|
-
--destructive-foreground: #ffffff;
|
|
58
|
-
|
|
59
|
-
--border: rgba(168, 190, 235, 0.3);
|
|
60
|
-
--input: rgba(168, 190, 235, 0.55);
|
|
61
|
-
--ring: #0349fe;
|
|
62
|
-
|
|
63
|
-
--chart-1: #0349fe;
|
|
64
|
-
--chart-2: #14bd44;
|
|
65
|
-
--chart-3: #ffb300;
|
|
66
|
-
--chart-4: #eb1919;
|
|
67
|
-
--chart-5: #9747ff;
|
|
68
|
-
|
|
69
|
-
--sidebar: rgba(255, 255, 255, 0.58);
|
|
70
|
-
--sidebar-foreground: rgba(14, 22, 48, 0.78);
|
|
71
|
-
--sidebar-primary: #0349fe;
|
|
72
|
-
--sidebar-primary-foreground: #ffffff;
|
|
73
|
-
--sidebar-accent: rgba(3, 73, 254, 0.09);
|
|
74
|
-
--sidebar-accent-foreground: #0349fe;
|
|
75
|
-
--sidebar-border: rgba(168, 190, 235, 0.35);
|
|
76
|
-
--sidebar-ring: #0349fe;
|
|
77
|
-
|
|
78
|
-
--danger: #c21414;
|
|
79
|
-
--danger-soft: rgba(235, 25, 25, 0.1);
|
|
80
|
-
--warning: #845f00;
|
|
81
|
-
--warning-soft: rgba(255, 179, 0, 0.16);
|
|
82
|
-
--success: #0b742a;
|
|
83
|
-
--success-soft: rgba(20, 189, 68, 0.12);
|
|
84
|
-
--info: #1267a1;
|
|
85
|
-
--info-soft: rgba(42, 147, 213, 0.12);
|
|
86
|
-
--neutral: rgba(14, 22, 48, 0.63);
|
|
87
|
-
--neutral-soft: rgba(14, 22, 48, 0.06);
|
|
88
|
-
|
|
89
|
-
--link: #0349fe;
|
|
90
|
-
--link-hover: #0236c0;
|
|
91
|
-
--inset: rgba(243, 246, 253, 0.9);
|
|
92
|
-
--inset-foreground: rgba(14, 22, 48, 0.92);
|
|
93
|
-
--brand: #0349fe;
|
|
94
|
-
--brand-bright: #36b3ed;
|
|
95
|
-
|
|
96
|
-
/* Formas: la esquina crece con el tamaño del contenedor (7·10·14·18·22) */
|
|
97
|
-
--ds-radius-sm: 7px;
|
|
98
|
-
--ds-radius-md: 10px;
|
|
99
|
-
--ds-radius-lg: 14px;
|
|
100
|
-
--ds-radius-xl: 18px;
|
|
101
|
-
--ds-radius-2xl: 22px;
|
|
102
|
-
--ds-radius-control: 10px;
|
|
103
|
-
--ds-radius-overlay: 22px;
|
|
104
|
-
|
|
105
|
-
/* Sombras de cristal: capa tenue + brillo interior en el borde superior */
|
|
106
|
-
--ds-shadow-card: 0 2px 14px rgba(28, 48, 100, 0.07);
|
|
107
|
-
--ds-shadow-card-hover: 0 6px 26px rgba(28, 48, 100, 0.1);
|
|
108
|
-
--ds-shadow-raised: 0 4px 30px rgba(28, 48, 100, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
|
|
109
|
-
--ds-shadow-overlay: 0 14px 52px rgba(28, 48, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
|
|
110
|
-
--ds-shadow-popover: 0 14px 52px rgba(28, 48, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
|
|
111
|
-
|
|
112
|
-
/* Medidas: controles algo más altos y holgados */
|
|
113
|
-
--ds-control-h-sm: 2.25rem;
|
|
114
|
-
--ds-control-h-md: 2.5rem;
|
|
115
|
-
--ds-control-h-lg: 2.75rem;
|
|
116
|
-
--ds-button-px-sm: 1rem;
|
|
117
|
-
--ds-button-px-md: 1.25rem;
|
|
118
|
-
--ds-button-px-lg: 1.5rem;
|
|
119
|
-
--ds-field-px: 1rem;
|
|
120
|
-
|
|
121
|
-
/* Materiales: cristal en navegación y controles; tarjetas sin desenfoque */
|
|
122
|
-
--ds-sidebar-backdrop: blur(28px) saturate(180%);
|
|
123
|
-
--ds-overlay-backdrop: blur(28px) saturate(180%);
|
|
124
|
-
--ds-field-backdrop: blur(12px) saturate(160%);
|
|
125
|
-
--ds-card-backdrop: none;
|
|
126
|
-
--ds-page-backdrop:
|
|
127
|
-
radial-gradient(55% 45% at 78% 6%, rgba(54, 179, 237, 0.3), transparent 70%),
|
|
128
|
-
radial-gradient(50% 45% at 96% 58%, rgba(3, 73, 254, 0.16), transparent 70%),
|
|
129
|
-
radial-gradient(55% 50% at 40% 106%, rgba(151, 71, 255, 0.14), transparent 70%);
|
|
130
|
-
|
|
131
|
-
/* Sidebar a ras de borde: sin separación, sin silueta; filo de 1px */
|
|
132
|
-
--ds-sidebar-pad: 0px;
|
|
133
|
-
--ds-sidebar-radius: 0px;
|
|
134
|
-
--ds-sidebar-shadow: 0 0 #0000;
|
|
135
|
-
--ds-sidebar-ring: 0px;
|
|
136
|
-
--ds-sidebar-edge: 1px solid var(--zy-glass-bs);
|
|
137
|
-
--ds-sidebar-item-radius: var(--ds-radius-lg);
|
|
138
|
-
|
|
139
|
-
/* Privadas de zyro */
|
|
140
|
-
--zy-accent-g: linear-gradient(135deg, #0349fe, #36b3ed);
|
|
141
|
-
--zy-accent-glow: rgba(3, 73, 254, 0.24);
|
|
142
|
-
--zy-glass-bt: rgba(255, 255, 255, 0.95);
|
|
143
|
-
--zy-glass-bs: rgba(168, 190, 235, 0.4);
|
|
144
|
-
--zy-card-bt: rgba(255, 255, 255, 1);
|
|
145
|
-
--zy-card-bs: rgba(168, 190, 235, 0.46);
|
|
146
|
-
--zy-field-bg: rgba(255, 255, 255, 0.72);
|
|
147
|
-
--zy-field-b: rgba(168, 190, 235, 0.55);
|
|
148
|
-
--zy-field-bt: rgba(255, 255, 255, 1);
|
|
149
|
-
--zy-pill: rgba(255, 255, 255, 0.55);
|
|
150
|
-
--zy-pill-on: rgba(255, 255, 255, 0.98);
|
|
151
|
-
--zy-conv-h: rgba(20, 40, 90, 0.04);
|
|
152
|
-
--zy-conv-a: rgba(3, 73, 254, 0.07);
|
|
153
|
-
--zy-conv-ab: rgba(3, 73, 254, 0.24);
|
|
154
|
-
--zy-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/* ── 1b. VARIABLES · PIEL OSCURA ─────────────────────────────────────────── */
|
|
158
|
-
:where(:root[data-theme='zyro']).dark {
|
|
159
|
-
--background: #0e3148;
|
|
160
|
-
--foreground: rgba(255, 255, 255, 0.94);
|
|
161
|
-
|
|
162
|
-
--card: rgba(16, 24, 54, 0.94);
|
|
163
|
-
--card-foreground: rgba(255, 255, 255, 0.94);
|
|
164
|
-
--popover: rgba(22, 32, 68, 0.97);
|
|
165
|
-
--popover-foreground: rgba(255, 255, 255, 0.94);
|
|
166
|
-
|
|
167
|
-
--primary: #36b3ed;
|
|
168
|
-
--primary-foreground: #04121c;
|
|
169
|
-
--secondary: rgba(255, 255, 255, 0.05);
|
|
170
|
-
--secondary-foreground: rgba(255, 255, 255, 0.94);
|
|
171
|
-
--muted: rgba(255, 255, 255, 0.05);
|
|
172
|
-
--muted-foreground: rgba(255, 255, 255, 0.68);
|
|
173
|
-
--accent: rgba(54, 179, 237, 0.16);
|
|
174
|
-
--accent-foreground: #36b3ed;
|
|
175
|
-
--destructive: #e61919;
|
|
176
|
-
--destructive-foreground: #ffffff;
|
|
177
|
-
|
|
178
|
-
--border: rgba(255, 255, 255, 0.07);
|
|
179
|
-
--input: rgba(255, 255, 255, 0.12);
|
|
180
|
-
--ring: #36b3ed;
|
|
181
|
-
|
|
182
|
-
--chart-1: #36b3ed;
|
|
183
|
-
--chart-2: #14bd44;
|
|
184
|
-
--chart-3: #ffb300;
|
|
185
|
-
--chart-4: #eb1919;
|
|
186
|
-
--chart-5: #9747ff;
|
|
187
|
-
|
|
188
|
-
--sidebar: rgba(255, 255, 255, 0.04);
|
|
189
|
-
--sidebar-foreground: rgba(255, 255, 255, 0.72);
|
|
190
|
-
--sidebar-primary: #36b3ed;
|
|
191
|
-
--sidebar-primary-foreground: #04121c;
|
|
192
|
-
--sidebar-accent: rgba(54, 179, 237, 0.16);
|
|
193
|
-
--sidebar-accent-foreground: #36b3ed;
|
|
194
|
-
--sidebar-border: rgba(255, 255, 255, 0.07);
|
|
195
|
-
--sidebar-ring: #36b3ed;
|
|
196
|
-
|
|
197
|
-
--danger: #ff6b6b;
|
|
198
|
-
--danger-soft: rgba(235, 25, 25, 0.2);
|
|
199
|
-
--warning: #ffb300;
|
|
200
|
-
--warning-soft: rgba(255, 179, 0, 0.18);
|
|
201
|
-
--success: #3cc864;
|
|
202
|
-
--success-soft: rgba(20, 189, 68, 0.18);
|
|
203
|
-
--info: #70b7e3;
|
|
204
|
-
--info-soft: rgba(42, 147, 213, 0.2);
|
|
205
|
-
--neutral: rgba(255, 255, 255, 0.6);
|
|
206
|
-
--neutral-soft: rgba(255, 255, 255, 0.08);
|
|
207
|
-
|
|
208
|
-
--link: #36b3ed;
|
|
209
|
-
--link-hover: #7fd0f5;
|
|
210
|
-
--inset: rgba(255, 255, 255, 0.05);
|
|
211
|
-
--inset-foreground: rgba(255, 255, 255, 0.94);
|
|
212
|
-
--brand: #36b3ed;
|
|
213
|
-
--brand-bright: #7fd0f5;
|
|
214
|
-
|
|
215
|
-
--ds-shadow-card: 0 2px 14px rgba(0, 0, 0, 0.3);
|
|
216
|
-
--ds-shadow-card-hover: 0 6px 26px rgba(0, 0, 0, 0.38);
|
|
217
|
-
--ds-shadow-raised: 0 8px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
|
218
|
-
--ds-shadow-overlay: 0 22px 64px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.13);
|
|
219
|
-
--ds-shadow-popover: 0 22px 64px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.13);
|
|
220
|
-
|
|
221
|
-
--ds-sidebar-backdrop: blur(24px) saturate(180%);
|
|
222
|
-
--ds-overlay-backdrop: blur(24px) saturate(180%);
|
|
223
|
-
--ds-page-backdrop:
|
|
224
|
-
radial-gradient(55% 45% at 78% 6%, rgba(54, 179, 237, 0.26), transparent 70%),
|
|
225
|
-
radial-gradient(50% 45% at 96% 58%, rgba(3, 73, 254, 0.24), transparent 70%),
|
|
226
|
-
radial-gradient(55% 50% at 40% 106%, rgba(151, 71, 255, 0.2), transparent 70%);
|
|
227
|
-
|
|
228
|
-
--zy-accent-g: linear-gradient(135deg, #36b3ed, #0349fe);
|
|
229
|
-
--zy-accent-glow: rgba(54, 179, 237, 0.42);
|
|
230
|
-
--zy-glass-bt: rgba(255, 255, 255, 0.3);
|
|
231
|
-
--zy-glass-bs: rgba(255, 255, 255, 0.07);
|
|
232
|
-
--zy-card-bt: rgba(255, 255, 255, 0.11);
|
|
233
|
-
--zy-card-bs: rgba(255, 255, 255, 0.06);
|
|
234
|
-
--zy-field-bg: rgba(255, 255, 255, 0.06);
|
|
235
|
-
--zy-field-b: rgba(255, 255, 255, 0.12);
|
|
236
|
-
--zy-field-bt: rgba(255, 255, 255, 0.26);
|
|
237
|
-
--zy-pill: rgba(255, 255, 255, 0.05);
|
|
238
|
-
--zy-pill-on: rgba(255, 255, 255, 0.12);
|
|
239
|
-
--zy-conv-h: rgba(255, 255, 255, 0.05);
|
|
240
|
-
--zy-conv-a: rgba(54, 179, 237, 0.14);
|
|
241
|
-
--zy-conv-ab: rgba(54, 179, 237, 0.4);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/* ──
|
|
245
|
-
*
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
[data-slot='
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
[data-slot='
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
[data-slot='
|
|
338
|
-
background-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
[data-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
[data-slot='
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
border-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
border-
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
/*
|
|
369
|
-
[data-slot='
|
|
370
|
-
background:
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
1
|
+
/*
|
|
2
|
+
* TEMA zyro — «liquid glass» (traducido de faro-orbital-zyro-ui).
|
|
3
|
+
*
|
|
4
|
+
* Personalidad: lavanda claro / azul muy oscuro, acento azul profundo (claro) y
|
|
5
|
+
* cian (oscuro). El cristal vive en la capa de NAVEGACIÓN y CONTROLES (sidebar,
|
|
6
|
+
* campos, menús); el CONTENIDO (tarjetas) se mantiene casi opaco, como indican
|
|
7
|
+
* las guías de cristal. Sidebar a ras de borde, sin silueta flotante. Acción
|
|
8
|
+
* primaria = píldora con degradado de marca y brillo.
|
|
9
|
+
*
|
|
10
|
+
* Estructura del fichero:
|
|
11
|
+
* 1. Variables claras (:root) y oscuras (.dark) — el CONTRATO del tema.
|
|
12
|
+
* 2. Capa de PERSONALIDAD — reglas sobre los ganchos del DOM (`data-slot`,
|
|
13
|
+
* `data-variant`…) escritas solo con variables. Va SIN capa para ganar a las
|
|
14
|
+
* utilidades de los componentes, así que define también los estados
|
|
15
|
+
* (hover, active). Es lo que da forma propia a los elementos.
|
|
16
|
+
*
|
|
17
|
+
* Variables `--zy-*`: privadas de este tema (no son contrato).
|
|
18
|
+
* Importar DESPUÉS de la estructura. Fuentes: `zyro.fonts.css`, lo primero del CSS.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/* ── 1. VARIABLES · PIEL CLARA ───────────────────────────────────────────── */
|
|
22
|
+
:root:where([data-theme='zyro']) {
|
|
23
|
+
--radius: 18px;
|
|
24
|
+
|
|
25
|
+
/* Tipografía: Montserrat (titulares) + Roboto (cuerpo) */
|
|
26
|
+
--ds-font-sans: 'Roboto', system-ui, -apple-system, sans-serif;
|
|
27
|
+
--ds-font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
|
|
28
|
+
--ds-font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
|
|
29
|
+
|
|
30
|
+
/* Lateral: iconos, raíl, logo y separadores (cada tema fija su forma y tamaño) */
|
|
31
|
+
--ds-sidebar-icon: 1.25rem;
|
|
32
|
+
--ds-sidebar-icon-stroke: 2;
|
|
33
|
+
--ds-sidebar-rail-w: 4.5rem;
|
|
34
|
+
--ds-sidebar-rail-item: 2.75rem;
|
|
35
|
+
--ds-sidebar-logo: 2.25rem;
|
|
36
|
+
--ds-sidebar-sep-inset: 0rem;
|
|
37
|
+
--ds-heading-tracking: -0.01em;
|
|
38
|
+
|
|
39
|
+
/* Color */
|
|
40
|
+
--background: #eaeefb;
|
|
41
|
+
--foreground: rgba(14, 22, 48, 0.92);
|
|
42
|
+
|
|
43
|
+
--card: rgba(255, 255, 255, 0.98);
|
|
44
|
+
--card-foreground: rgba(14, 22, 48, 0.92);
|
|
45
|
+
--popover: #ffffff;
|
|
46
|
+
--popover-foreground: rgba(14, 22, 48, 0.92);
|
|
47
|
+
|
|
48
|
+
--primary: #0349fe;
|
|
49
|
+
--primary-foreground: #ffffff;
|
|
50
|
+
--secondary: rgba(243, 246, 253, 0.9);
|
|
51
|
+
--secondary-foreground: rgba(14, 22, 48, 0.92);
|
|
52
|
+
--muted: rgba(243, 246, 253, 0.9);
|
|
53
|
+
--muted-foreground: rgba(14, 22, 48, 0.66);
|
|
54
|
+
--accent: rgba(3, 73, 254, 0.09);
|
|
55
|
+
--accent-foreground: #0349fe;
|
|
56
|
+
--destructive: #e61919;
|
|
57
|
+
--destructive-foreground: #ffffff;
|
|
58
|
+
|
|
59
|
+
--border: rgba(168, 190, 235, 0.3);
|
|
60
|
+
--input: rgba(168, 190, 235, 0.55);
|
|
61
|
+
--ring: #0349fe;
|
|
62
|
+
|
|
63
|
+
--chart-1: #0349fe;
|
|
64
|
+
--chart-2: #14bd44;
|
|
65
|
+
--chart-3: #ffb300;
|
|
66
|
+
--chart-4: #eb1919;
|
|
67
|
+
--chart-5: #9747ff;
|
|
68
|
+
|
|
69
|
+
--sidebar: rgba(255, 255, 255, 0.58);
|
|
70
|
+
--sidebar-foreground: rgba(14, 22, 48, 0.78);
|
|
71
|
+
--sidebar-primary: #0349fe;
|
|
72
|
+
--sidebar-primary-foreground: #ffffff;
|
|
73
|
+
--sidebar-accent: rgba(3, 73, 254, 0.09);
|
|
74
|
+
--sidebar-accent-foreground: #0349fe;
|
|
75
|
+
--sidebar-border: rgba(168, 190, 235, 0.35);
|
|
76
|
+
--sidebar-ring: #0349fe;
|
|
77
|
+
|
|
78
|
+
--danger: #c21414;
|
|
79
|
+
--danger-soft: rgba(235, 25, 25, 0.1);
|
|
80
|
+
--warning: #845f00;
|
|
81
|
+
--warning-soft: rgba(255, 179, 0, 0.16);
|
|
82
|
+
--success: #0b742a;
|
|
83
|
+
--success-soft: rgba(20, 189, 68, 0.12);
|
|
84
|
+
--info: #1267a1;
|
|
85
|
+
--info-soft: rgba(42, 147, 213, 0.12);
|
|
86
|
+
--neutral: rgba(14, 22, 48, 0.63);
|
|
87
|
+
--neutral-soft: rgba(14, 22, 48, 0.06);
|
|
88
|
+
|
|
89
|
+
--link: #0349fe;
|
|
90
|
+
--link-hover: #0236c0;
|
|
91
|
+
--inset: rgba(243, 246, 253, 0.9);
|
|
92
|
+
--inset-foreground: rgba(14, 22, 48, 0.92);
|
|
93
|
+
--brand: #0349fe;
|
|
94
|
+
--brand-bright: #36b3ed;
|
|
95
|
+
|
|
96
|
+
/* Formas: la esquina crece con el tamaño del contenedor (7·10·14·18·22) */
|
|
97
|
+
--ds-radius-sm: 7px;
|
|
98
|
+
--ds-radius-md: 10px;
|
|
99
|
+
--ds-radius-lg: 14px;
|
|
100
|
+
--ds-radius-xl: 18px;
|
|
101
|
+
--ds-radius-2xl: 22px;
|
|
102
|
+
--ds-radius-control: 10px;
|
|
103
|
+
--ds-radius-overlay: 22px;
|
|
104
|
+
|
|
105
|
+
/* Sombras de cristal: capa tenue + brillo interior en el borde superior */
|
|
106
|
+
--ds-shadow-card: 0 2px 14px rgba(28, 48, 100, 0.07);
|
|
107
|
+
--ds-shadow-card-hover: 0 6px 26px rgba(28, 48, 100, 0.1);
|
|
108
|
+
--ds-shadow-raised: 0 4px 30px rgba(28, 48, 100, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
|
|
109
|
+
--ds-shadow-overlay: 0 14px 52px rgba(28, 48, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
|
|
110
|
+
--ds-shadow-popover: 0 14px 52px rgba(28, 48, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
|
|
111
|
+
|
|
112
|
+
/* Medidas: controles algo más altos y holgados */
|
|
113
|
+
--ds-control-h-sm: 2.25rem;
|
|
114
|
+
--ds-control-h-md: 2.5rem;
|
|
115
|
+
--ds-control-h-lg: 2.75rem;
|
|
116
|
+
--ds-button-px-sm: 1rem;
|
|
117
|
+
--ds-button-px-md: 1.25rem;
|
|
118
|
+
--ds-button-px-lg: 1.5rem;
|
|
119
|
+
--ds-field-px: 1rem;
|
|
120
|
+
|
|
121
|
+
/* Materiales: cristal en navegación y controles; tarjetas sin desenfoque */
|
|
122
|
+
--ds-sidebar-backdrop: blur(28px) saturate(180%);
|
|
123
|
+
--ds-overlay-backdrop: blur(28px) saturate(180%);
|
|
124
|
+
--ds-field-backdrop: blur(12px) saturate(160%);
|
|
125
|
+
--ds-card-backdrop: none;
|
|
126
|
+
--ds-page-backdrop:
|
|
127
|
+
radial-gradient(55% 45% at 78% 6%, rgba(54, 179, 237, 0.3), transparent 70%),
|
|
128
|
+
radial-gradient(50% 45% at 96% 58%, rgba(3, 73, 254, 0.16), transparent 70%),
|
|
129
|
+
radial-gradient(55% 50% at 40% 106%, rgba(151, 71, 255, 0.14), transparent 70%);
|
|
130
|
+
|
|
131
|
+
/* Sidebar a ras de borde: sin separación, sin silueta; filo de 1px */
|
|
132
|
+
--ds-sidebar-pad: 0px;
|
|
133
|
+
--ds-sidebar-radius: 0px;
|
|
134
|
+
--ds-sidebar-shadow: 0 0 #0000;
|
|
135
|
+
--ds-sidebar-ring: 0px;
|
|
136
|
+
--ds-sidebar-edge: 1px solid var(--zy-glass-bs);
|
|
137
|
+
--ds-sidebar-item-radius: var(--ds-radius-lg);
|
|
138
|
+
|
|
139
|
+
/* Privadas de zyro */
|
|
140
|
+
--zy-accent-g: linear-gradient(135deg, #0349fe, #36b3ed);
|
|
141
|
+
--zy-accent-glow: rgba(3, 73, 254, 0.24);
|
|
142
|
+
--zy-glass-bt: rgba(255, 255, 255, 0.95);
|
|
143
|
+
--zy-glass-bs: rgba(168, 190, 235, 0.4);
|
|
144
|
+
--zy-card-bt: rgba(255, 255, 255, 1);
|
|
145
|
+
--zy-card-bs: rgba(168, 190, 235, 0.46);
|
|
146
|
+
--zy-field-bg: rgba(255, 255, 255, 0.72);
|
|
147
|
+
--zy-field-b: rgba(168, 190, 235, 0.55);
|
|
148
|
+
--zy-field-bt: rgba(255, 255, 255, 1);
|
|
149
|
+
--zy-pill: rgba(255, 255, 255, 0.55);
|
|
150
|
+
--zy-pill-on: rgba(255, 255, 255, 0.98);
|
|
151
|
+
--zy-conv-h: rgba(20, 40, 90, 0.04);
|
|
152
|
+
--zy-conv-a: rgba(3, 73, 254, 0.07);
|
|
153
|
+
--zy-conv-ab: rgba(3, 73, 254, 0.24);
|
|
154
|
+
--zy-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* ── 1b. VARIABLES · PIEL OSCURA ─────────────────────────────────────────── */
|
|
158
|
+
:where(:root[data-theme='zyro']).dark {
|
|
159
|
+
--background: #0e3148;
|
|
160
|
+
--foreground: rgba(255, 255, 255, 0.94);
|
|
161
|
+
|
|
162
|
+
--card: rgba(16, 24, 54, 0.94);
|
|
163
|
+
--card-foreground: rgba(255, 255, 255, 0.94);
|
|
164
|
+
--popover: rgba(22, 32, 68, 0.97);
|
|
165
|
+
--popover-foreground: rgba(255, 255, 255, 0.94);
|
|
166
|
+
|
|
167
|
+
--primary: #36b3ed;
|
|
168
|
+
--primary-foreground: #04121c;
|
|
169
|
+
--secondary: rgba(255, 255, 255, 0.05);
|
|
170
|
+
--secondary-foreground: rgba(255, 255, 255, 0.94);
|
|
171
|
+
--muted: rgba(255, 255, 255, 0.05);
|
|
172
|
+
--muted-foreground: rgba(255, 255, 255, 0.68);
|
|
173
|
+
--accent: rgba(54, 179, 237, 0.16);
|
|
174
|
+
--accent-foreground: #36b3ed;
|
|
175
|
+
--destructive: #e61919;
|
|
176
|
+
--destructive-foreground: #ffffff;
|
|
177
|
+
|
|
178
|
+
--border: rgba(255, 255, 255, 0.07);
|
|
179
|
+
--input: rgba(255, 255, 255, 0.12);
|
|
180
|
+
--ring: #36b3ed;
|
|
181
|
+
|
|
182
|
+
--chart-1: #36b3ed;
|
|
183
|
+
--chart-2: #14bd44;
|
|
184
|
+
--chart-3: #ffb300;
|
|
185
|
+
--chart-4: #eb1919;
|
|
186
|
+
--chart-5: #9747ff;
|
|
187
|
+
|
|
188
|
+
--sidebar: rgba(255, 255, 255, 0.04);
|
|
189
|
+
--sidebar-foreground: rgba(255, 255, 255, 0.72);
|
|
190
|
+
--sidebar-primary: #36b3ed;
|
|
191
|
+
--sidebar-primary-foreground: #04121c;
|
|
192
|
+
--sidebar-accent: rgba(54, 179, 237, 0.16);
|
|
193
|
+
--sidebar-accent-foreground: #36b3ed;
|
|
194
|
+
--sidebar-border: rgba(255, 255, 255, 0.07);
|
|
195
|
+
--sidebar-ring: #36b3ed;
|
|
196
|
+
|
|
197
|
+
--danger: #ff6b6b;
|
|
198
|
+
--danger-soft: rgba(235, 25, 25, 0.2);
|
|
199
|
+
--warning: #ffb300;
|
|
200
|
+
--warning-soft: rgba(255, 179, 0, 0.18);
|
|
201
|
+
--success: #3cc864;
|
|
202
|
+
--success-soft: rgba(20, 189, 68, 0.18);
|
|
203
|
+
--info: #70b7e3;
|
|
204
|
+
--info-soft: rgba(42, 147, 213, 0.2);
|
|
205
|
+
--neutral: rgba(255, 255, 255, 0.6);
|
|
206
|
+
--neutral-soft: rgba(255, 255, 255, 0.08);
|
|
207
|
+
|
|
208
|
+
--link: #36b3ed;
|
|
209
|
+
--link-hover: #7fd0f5;
|
|
210
|
+
--inset: rgba(255, 255, 255, 0.05);
|
|
211
|
+
--inset-foreground: rgba(255, 255, 255, 0.94);
|
|
212
|
+
--brand: #36b3ed;
|
|
213
|
+
--brand-bright: #7fd0f5;
|
|
214
|
+
|
|
215
|
+
--ds-shadow-card: 0 2px 14px rgba(0, 0, 0, 0.3);
|
|
216
|
+
--ds-shadow-card-hover: 0 6px 26px rgba(0, 0, 0, 0.38);
|
|
217
|
+
--ds-shadow-raised: 0 8px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
|
218
|
+
--ds-shadow-overlay: 0 22px 64px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.13);
|
|
219
|
+
--ds-shadow-popover: 0 22px 64px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.13);
|
|
220
|
+
|
|
221
|
+
--ds-sidebar-backdrop: blur(24px) saturate(180%);
|
|
222
|
+
--ds-overlay-backdrop: blur(24px) saturate(180%);
|
|
223
|
+
--ds-page-backdrop:
|
|
224
|
+
radial-gradient(55% 45% at 78% 6%, rgba(54, 179, 237, 0.26), transparent 70%),
|
|
225
|
+
radial-gradient(50% 45% at 96% 58%, rgba(3, 73, 254, 0.24), transparent 70%),
|
|
226
|
+
radial-gradient(55% 50% at 40% 106%, rgba(151, 71, 255, 0.2), transparent 70%);
|
|
227
|
+
|
|
228
|
+
--zy-accent-g: linear-gradient(135deg, #36b3ed, #0349fe);
|
|
229
|
+
--zy-accent-glow: rgba(54, 179, 237, 0.42);
|
|
230
|
+
--zy-glass-bt: rgba(255, 255, 255, 0.3);
|
|
231
|
+
--zy-glass-bs: rgba(255, 255, 255, 0.07);
|
|
232
|
+
--zy-card-bt: rgba(255, 255, 255, 0.11);
|
|
233
|
+
--zy-card-bs: rgba(255, 255, 255, 0.06);
|
|
234
|
+
--zy-field-bg: rgba(255, 255, 255, 0.06);
|
|
235
|
+
--zy-field-b: rgba(255, 255, 255, 0.12);
|
|
236
|
+
--zy-field-bt: rgba(255, 255, 255, 0.26);
|
|
237
|
+
--zy-pill: rgba(255, 255, 255, 0.05);
|
|
238
|
+
--zy-pill-on: rgba(255, 255, 255, 0.12);
|
|
239
|
+
--zy-conv-h: rgba(255, 255, 255, 0.05);
|
|
240
|
+
--zy-conv-a: rgba(54, 179, 237, 0.14);
|
|
241
|
+
--zy-conv-ab: rgba(54, 179, 237, 0.4);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* ── VARIABLES DE LA PERSONALIDAD ────────────────────────────────────────────
|
|
245
|
+
* Lo que las reglas de abajo piden: cámbialo aquí (o en el brand.css de la app),
|
|
246
|
+
* nunca en las reglas. Las `--zy-*` son privadas del tema.
|
|
247
|
+
*/
|
|
248
|
+
:root:where([data-theme='zyro']) {
|
|
249
|
+
/* Movimiento: suave y largo, como el cristal; curva muy amortiguada */
|
|
250
|
+
--ds-motion-fast: 140ms;
|
|
251
|
+
--ds-motion-base: 260ms;
|
|
252
|
+
--ds-motion-slow: 380ms;
|
|
253
|
+
--ds-ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
|
|
254
|
+
--ds-ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
|
|
255
|
+
--ds-ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
|
|
256
|
+
--ds-motion-distance: 12px;
|
|
257
|
+
--ds-motion-scale: 0.97;
|
|
258
|
+
--ds-motion-blur: 6px;
|
|
259
|
+
--ds-spring-bounce: 0.1;
|
|
260
|
+
--ds-motion-stagger: 55ms;
|
|
261
|
+
--ds-motion-press-scale: 0.98;
|
|
262
|
+
--ds-rule-w: 1px;
|
|
263
|
+
--ds-shadow-button: 0 4px 16px var(--zy-accent-glow);
|
|
264
|
+
--ds-shadow-button-hover: 0 6px 22px var(--zy-accent-glow);
|
|
265
|
+
--zy-accent-ink: #ffffff; /* texto sobre el degradado de marca, en las dos pieles */
|
|
266
|
+
--zy-shadow-danger: 0 4px 16px rgba(235, 25, 25, 0.3);
|
|
267
|
+
--zy-shadow-tab-active: 0 1px 6px rgba(28, 48, 100, 0.12);
|
|
268
|
+
--zy-press-scale: 0.98;
|
|
269
|
+
--zy-hover-brightness: 1.1;
|
|
270
|
+
--zy-drift-duration: 40s;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* La sombra lee un color que cambia de piel: se repite en .dark para que se resuelva allí. */
|
|
274
|
+
:where(:root[data-theme='zyro']).dark {
|
|
275
|
+
--ds-shadow-button: 0 4px 16px var(--zy-accent-glow);
|
|
276
|
+
--ds-shadow-button-hover: 0 6px 22px var(--zy-accent-glow);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/* ── 2. PERSONALIDAD ─────────────────────────────────────────────────────────
|
|
280
|
+
* Sin capa: gana a las utilidades de los componentes. Solo variables (lo comprueba
|
|
281
|
+
* el doctor: tema `conformance: strict`). Familias completas.
|
|
282
|
+
*/
|
|
283
|
+
:root:where([data-theme='zyro']) {
|
|
284
|
+
/* Botones: píldora. Acción primaria con degradado de marca y brillo. */
|
|
285
|
+
[data-slot='button'] {
|
|
286
|
+
border-radius: var(--ds-radius-pill);
|
|
287
|
+
transition: all var(--ds-motion-base) var(--zy-ease);
|
|
288
|
+
}
|
|
289
|
+
[data-slot='button'][data-size^='icon'] {
|
|
290
|
+
border-radius: var(--ds-radius-xl);
|
|
291
|
+
}
|
|
292
|
+
[data-slot='button']:active:not(:disabled) {
|
|
293
|
+
transform: scale(var(--zy-press-scale));
|
|
294
|
+
}
|
|
295
|
+
[data-slot='button'][data-variant='default'] {
|
|
296
|
+
background-color: transparent;
|
|
297
|
+
background-image: var(--zy-accent-g);
|
|
298
|
+
color: var(--zy-accent-ink);
|
|
299
|
+
border-color: transparent;
|
|
300
|
+
box-shadow: var(--ds-shadow-button);
|
|
301
|
+
}
|
|
302
|
+
[data-slot='button'][data-variant='default']:hover:not(:disabled) {
|
|
303
|
+
filter: brightness(var(--zy-hover-brightness));
|
|
304
|
+
box-shadow: var(--ds-shadow-button-hover);
|
|
305
|
+
}
|
|
306
|
+
[data-slot='button'][data-variant='destructive'] {
|
|
307
|
+
box-shadow: var(--zy-shadow-danger);
|
|
308
|
+
}
|
|
309
|
+
[data-slot='button'][data-variant='outline'],
|
|
310
|
+
[data-slot='button'][data-variant='secondary'] {
|
|
311
|
+
border: var(--ds-rule-w) solid var(--zy-field-b);
|
|
312
|
+
background: color-mix(in oklch, var(--foreground) 5%, var(--background));
|
|
313
|
+
color: var(--muted-foreground);
|
|
314
|
+
}
|
|
315
|
+
[data-slot='button'][data-variant='outline']:hover:not(:disabled),
|
|
316
|
+
[data-slot='button'][data-variant='secondary']:hover:not(:disabled) {
|
|
317
|
+
background: color-mix(in oklch, var(--foreground) 11%, var(--background));
|
|
318
|
+
color: var(--foreground);
|
|
319
|
+
}
|
|
320
|
+
[data-slot='button'][data-variant='ghost']:hover:not(:disabled) {
|
|
321
|
+
background: var(--zy-conv-h);
|
|
322
|
+
color: var(--foreground);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/* Tarjetas: contenido casi opaco con filo superior luminoso */
|
|
326
|
+
[data-slot='card'] {
|
|
327
|
+
border: var(--ds-rule-w) solid var(--zy-card-bs);
|
|
328
|
+
border-top-color: var(--zy-card-bt);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* Campos (familia «field»): cristal claro con filo superior */
|
|
332
|
+
[data-slot='input'],
|
|
333
|
+
[data-slot='textarea'],
|
|
334
|
+
[data-slot='select-trigger'],
|
|
335
|
+
[data-slot='native-select'],
|
|
336
|
+
[data-slot='input-group'],
|
|
337
|
+
[data-slot='input-otp-slot'] {
|
|
338
|
+
background-color: var(--zy-field-bg);
|
|
339
|
+
border-color: var(--zy-field-b);
|
|
340
|
+
border-top-color: var(--zy-field-bt);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* Capas (familias «modal» y «floating»): filo de cristal */
|
|
344
|
+
[data-slot='dialog-content'],
|
|
345
|
+
[data-slot='sheet-content'],
|
|
346
|
+
[data-slot='alert-dialog-content'],
|
|
347
|
+
[data-slot='drawer-popup'],
|
|
348
|
+
[data-slot='popover-content'],
|
|
349
|
+
[data-slot='dropdown-menu-content'],
|
|
350
|
+
[data-slot='dropdown-menu-sub-content'],
|
|
351
|
+
[data-slot='select-content'],
|
|
352
|
+
[data-slot='context-menu-content'],
|
|
353
|
+
[data-slot='context-menu-sub-content'],
|
|
354
|
+
[data-slot='menubar-content'],
|
|
355
|
+
[data-slot='menubar-sub-content'],
|
|
356
|
+
[data-slot='hover-card-content'],
|
|
357
|
+
[data-slot='combobox-content'],
|
|
358
|
+
[data-slot='navigation-menu-popup'] {
|
|
359
|
+
border: var(--ds-rule-w) solid var(--zy-glass-bs);
|
|
360
|
+
border-top-color: var(--zy-glass-bt);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/* Etiquetas en píldora */
|
|
364
|
+
[data-slot='badge'] {
|
|
365
|
+
border-radius: var(--ds-radius-pill);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/* Conmutadores (familia «toggle»): píldora de cristal con el activo elevado */
|
|
369
|
+
[data-slot='tabs-list'] {
|
|
370
|
+
background: var(--zy-pill);
|
|
371
|
+
border: var(--ds-rule-w) solid var(--zy-card-bs);
|
|
372
|
+
border-radius: var(--ds-radius-pill);
|
|
373
|
+
}
|
|
374
|
+
[data-slot='tabs-trigger'],
|
|
375
|
+
[data-slot='toggle'],
|
|
376
|
+
[data-slot='toggle-group-item'] {
|
|
377
|
+
border-radius: var(--ds-radius-pill);
|
|
378
|
+
}
|
|
379
|
+
[data-slot='tabs-trigger'][data-active],
|
|
380
|
+
[data-slot='toggle'][aria-pressed='true'],
|
|
381
|
+
[data-slot='toggle-group-item'][aria-pressed='true'] {
|
|
382
|
+
background: var(--zy-pill-on);
|
|
383
|
+
box-shadow: var(--zy-shadow-tab-active);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/* Interruptor y progreso: degradado de marca */
|
|
387
|
+
[data-slot='switch'][data-checked] {
|
|
388
|
+
background-image: var(--zy-accent-g);
|
|
389
|
+
background-color: transparent;
|
|
390
|
+
}
|
|
391
|
+
[data-slot='progress-indicator'] {
|
|
392
|
+
background-image: var(--zy-accent-g);
|
|
393
|
+
background-color: transparent;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/* Sidebar: destino activo con tinte y filo, como la conversación activa de zyro */
|
|
397
|
+
[data-sidebar='menu-button'][data-active='true'] {
|
|
398
|
+
background: var(--zy-conv-a);
|
|
399
|
+
box-shadow: inset 0 0 0 var(--ds-rule-w) var(--zy-conv-ab);
|
|
400
|
+
color: var(--sidebar-accent-foreground);
|
|
401
|
+
}
|
|
402
|
+
[data-sidebar='menu-button']:hover:not([data-active='true']) {
|
|
403
|
+
background: var(--zy-conv-h);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/* Ajustes de personalidad (vistos en el banco de pruebas) */
|
|
408
|
+
:root:where([data-theme='zyro']) {
|
|
409
|
+
/* Grupos de botones: píldora solo en los extremos, el interior recto */
|
|
410
|
+
[data-slot='button-group'] [data-slot='button'] {
|
|
411
|
+
border-radius: 0;
|
|
412
|
+
}
|
|
413
|
+
[data-slot='button-group'] [data-slot='button']:first-child {
|
|
414
|
+
border-start-start-radius: var(--ds-radius-pill);
|
|
415
|
+
border-end-start-radius: var(--ds-radius-pill);
|
|
416
|
+
}
|
|
417
|
+
[data-slot='button-group'] [data-slot='button']:last-child {
|
|
418
|
+
border-start-end-radius: var(--ds-radius-pill);
|
|
419
|
+
border-end-end-radius: var(--ds-radius-pill);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/* Esqueletos: visibles sobre la tarjeta casi blanca */
|
|
423
|
+
[data-slot='skeleton'] {
|
|
424
|
+
background: color-mix(in oklch, var(--foreground) 9%, transparent);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/* Fondo vivo: los degradados derivan despacio (aproximación ligera, sin WebGL de la
|
|
429
|
+
malla original). `prefers-reduced-motion` ya detiene la animación en la estructura. */
|
|
430
|
+
:root:where([data-theme='zyro']) {
|
|
431
|
+
body {
|
|
432
|
+
background-size: 160% 160%;
|
|
433
|
+
animation: zy-drift var(--zy-drift-duration) ease-in-out infinite alternate;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
@keyframes zy-drift {
|
|
437
|
+
from {
|
|
438
|
+
background-position: 0% 0%;
|
|
439
|
+
}
|
|
440
|
+
to {
|
|
441
|
+
background-position: 100% 100%;
|
|
442
|
+
}
|
|
443
|
+
}
|