orbital-ds 0.30.0 → 0.31.1

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.
Files changed (86) hide show
  1. package/components.manifest.json +1 -1
  2. package/dist/motion.css +146 -0
  3. package/dist/styles.css +1678 -0
  4. package/dist/themes/chocolate.css +259 -0
  5. package/dist/themes/chocolate.fonts.css +2 -0
  6. package/dist/themes/chocolate.guide.md +30 -0
  7. package/dist/themes/chocolate.meta.json +61 -0
  8. package/dist/themes/chocolate.scoped.css +259 -0
  9. package/dist/themes/chocolate.tokens.json +49 -0
  10. package/dist/themes/fractalia.css +556 -0
  11. package/dist/themes/fractalia.fonts.css +3 -0
  12. package/dist/themes/fractalia.guide.md +86 -0
  13. package/dist/themes/fractalia.meta.json +112 -0
  14. package/dist/themes/fractalia.scoped.css +556 -0
  15. package/dist/themes/fractalia.tokens.json +39 -0
  16. package/dist/themes/friendly.css +375 -0
  17. package/dist/themes/friendly.fonts.css +2 -0
  18. package/dist/themes/friendly.guide.md +38 -0
  19. package/dist/themes/friendly.meta.json +82 -0
  20. package/dist/themes/friendly.scoped.css +375 -0
  21. package/dist/themes/friendly.tokens.json +45 -0
  22. package/dist/themes/lagoon.css +359 -0
  23. package/dist/themes/lagoon.fonts.css +2 -0
  24. package/dist/themes/lagoon.guide.md +47 -0
  25. package/dist/themes/lagoon.meta.json +85 -0
  26. package/dist/themes/lagoon.scoped.css +359 -0
  27. package/dist/themes/lagoon.tokens.json +49 -0
  28. package/dist/themes/liquid.css +510 -0
  29. package/dist/themes/liquid.fonts.css +7 -0
  30. package/dist/themes/liquid.guide.md +82 -0
  31. package/dist/themes/liquid.meta.json +134 -0
  32. package/dist/themes/liquid.scoped.css +510 -0
  33. package/dist/themes/liquid.tokens.json +47 -0
  34. package/dist/themes/matcha.css +259 -0
  35. package/dist/themes/matcha.fonts.css +2 -0
  36. package/dist/themes/matcha.guide.md +30 -0
  37. package/dist/themes/matcha.meta.json +61 -0
  38. package/dist/themes/matcha.scoped.css +259 -0
  39. package/dist/themes/matcha.tokens.json +49 -0
  40. package/dist/themes/qratia.css +264 -0
  41. package/dist/themes/qratia.fonts.css +2 -0
  42. package/dist/themes/qratia.guide.md +34 -0
  43. package/dist/themes/qratia.meta.json +49 -0
  44. package/dist/themes/qratia.scoped.css +264 -0
  45. package/dist/themes/qratia.tokens.json +49 -0
  46. package/dist/themes/stone.css +263 -0
  47. package/dist/themes/stone.fonts.css +2 -0
  48. package/dist/themes/stone.guide.md +30 -0
  49. package/dist/themes/stone.meta.json +47 -0
  50. package/dist/themes/stone.scoped.css +263 -0
  51. package/dist/themes/stone.tokens.json +49 -0
  52. package/dist/themes/tactile.css +596 -0
  53. package/dist/themes/tactile.fonts.css +3 -0
  54. package/dist/themes/tactile.guide.md +82 -0
  55. package/dist/themes/tactile.meta.json +182 -0
  56. package/dist/themes/tactile.scoped.css +596 -0
  57. package/dist/themes/tactile.tokens.json +42 -0
  58. package/dist/themes/twitter.css +364 -0
  59. package/dist/themes/twitter.fonts.css +6 -0
  60. package/dist/themes/twitter.guide.md +35 -0
  61. package/dist/themes/twitter.meta.json +90 -0
  62. package/dist/themes/twitter.scoped.css +364 -0
  63. package/dist/themes/twitter.tokens.json +45 -0
  64. package/dist/themes/y2k.css +259 -0
  65. package/dist/themes/y2k.fonts.css +2 -0
  66. package/dist/themes/y2k.guide.md +30 -0
  67. package/dist/themes/y2k.meta.json +59 -0
  68. package/dist/themes/y2k.scoped.css +259 -0
  69. package/dist/themes/y2k.tokens.json +49 -0
  70. package/dist/themes/zyro.css +442 -0
  71. package/dist/themes/zyro.fonts.css +2 -0
  72. package/dist/themes/zyro.guide.md +33 -0
  73. package/dist/themes/zyro.meta.json +74 -0
  74. package/dist/themes/zyro.scoped.css +442 -0
  75. package/dist/themes/zyro.tokens.json +46 -0
  76. package/dist/ui/badge.d.ts +1 -1
  77. package/dist/ui/bubble.d.ts +1 -1
  78. package/dist/ui/button.d.ts +1 -1
  79. package/dist/ui/item.d.ts +1 -1
  80. package/dist/ui/marker.d.ts +1 -1
  81. package/dist/ui/sparkline.d.ts +1 -1
  82. package/dist/ui/status-badge.d.ts +2 -2
  83. package/dist/ui/tabs.d.ts +1 -1
  84. package/package.json +1 -1
  85. package/scripts/brand-core.mjs +20 -1
  86. package/scripts/init.mjs +1 -1
@@ -0,0 +1,442 @@
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
+ /* Movimiento automático (orbital-ds/motion.css): tipo de entrada por grupo; lo describe la ficha (motion.auto) */
24
+ --ds-enter-surfaces: ds-auto-focus;
25
+ --ds-enter-notices: ds-auto-focus;
26
+ --ds-enter-headers: ds-auto-fade;
27
+ --ds-enter-rows: ds-auto-fade;
28
+ --radius: 18px;
29
+
30
+ /* Tipografía: Montserrat (titulares) + Roboto (cuerpo) */
31
+ --ds-font-sans: 'Roboto', system-ui, -apple-system, sans-serif;
32
+ --ds-font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
33
+ --ds-font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
34
+
35
+ /* Lateral: iconos, raíl, logo y separadores (cada tema fija su forma y tamaño) */
36
+ --ds-sidebar-icon: 1.25rem;
37
+ --ds-sidebar-icon-stroke: 2;
38
+ --ds-sidebar-rail-w: 4.5rem;
39
+ --ds-sidebar-rail-item: 2.75rem;
40
+ --ds-sidebar-logo: 2.25rem;
41
+ --ds-sidebar-sep-inset: 0rem;
42
+ --ds-heading-tracking: -0.01em;
43
+
44
+ /* Color */
45
+ /* Gris estándar (scripts/neutral.mjs): solo el matiz; los neutros se calculan */
46
+ --ds-neutral-h: 272;
47
+ --ds-neutral-c: 0.036;
48
+
49
+ --background: #f0f4ff;
50
+ --foreground: #101526;
51
+
52
+ --card: #fafcff;
53
+ --card-foreground: #101526;
54
+ --popover: #fafcff;
55
+ --popover-foreground: #101526;
56
+
57
+ --primary: #0349fe;
58
+ --primary-foreground: #ffffff;
59
+ --secondary: #ebf0ff;
60
+ --secondary-foreground: #101526;
61
+ --muted: #ebf0ff;
62
+ --muted-foreground: #535a70;
63
+ --accent: rgba(3, 73, 254, 0.09);
64
+ --accent-foreground: #0349fe;
65
+ --destructive: #e61919;
66
+ --destructive-foreground: #ffffff;
67
+
68
+ --border: #d8ddef;
69
+ --input: #c4cade;
70
+ --ring: #0349fe;
71
+
72
+ --chart-1: #0349fe;
73
+ --chart-2: #14bd44;
74
+ --chart-3: #ffb300;
75
+ --chart-4: #eb1919;
76
+ --chart-5: #9747ff;
77
+
78
+ --sidebar: rgba(255, 255, 255, 0.58);
79
+ --sidebar-foreground: rgba(14, 22, 48, 0.78);
80
+ --sidebar-primary: #0349fe;
81
+ --sidebar-primary-foreground: #ffffff;
82
+ --sidebar-accent: rgba(3, 73, 254, 0.09);
83
+ --sidebar-accent-foreground: #0349fe;
84
+ --sidebar-border: rgba(168, 190, 235, 0.35);
85
+ --sidebar-ring: #0349fe;
86
+
87
+ --danger: #c21414;
88
+ --danger-soft: rgba(235, 25, 25, 0.1);
89
+ --warning: #845f00;
90
+ --warning-soft: rgba(255, 179, 0, 0.16);
91
+ --success: #0b742a;
92
+ --success-soft: rgba(20, 189, 68, 0.12);
93
+ --info: #1267a1;
94
+ --info-soft: rgba(42, 147, 213, 0.12);
95
+ --neutral: rgba(14, 22, 48, 0.63);
96
+ --neutral-soft: rgba(14, 22, 48, 0.06);
97
+
98
+ --link: #0349fe;
99
+ --link-hover: #0236c0;
100
+ --inset: #e2e7f9;
101
+ --inset-foreground: #101526;
102
+ --brand: #0349fe;
103
+ --brand-bright: #36b3ed;
104
+
105
+ /* Formas: la esquina crece con el tamaño del contenedor (7·10·14·18·22) */
106
+ --ds-radius-sm: 7px;
107
+ --ds-radius-md: 10px;
108
+ --ds-radius-lg: 14px;
109
+ --ds-radius-xl: 18px;
110
+ --ds-radius-2xl: 22px;
111
+ --ds-radius-control: 10px;
112
+ --ds-radius-overlay: 22px;
113
+ /* Píldoras: botones, etiquetas y conmutadores; el botón de solo icono, redondeado */
114
+ --ds-radius-button: var(--ds-radius-pill);
115
+ --ds-radius-button-icon: var(--ds-radius-xl);
116
+ --ds-radius-badge: var(--ds-radius-pill);
117
+ --ds-radius-tabs-list: var(--ds-radius-pill);
118
+ --ds-radius-tab: var(--ds-radius-pill);
119
+
120
+ /* Sombras de cristal: capa tenue + brillo interior en el borde superior */
121
+ --ds-shadow-card: 0 2px 14px rgba(28, 48, 100, 0.07);
122
+ --ds-shadow-card-hover: 0 6px 26px rgba(28, 48, 100, 0.1);
123
+ --ds-shadow-raised: 0 4px 30px rgba(28, 48, 100, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
124
+ --ds-shadow-overlay: 0 14px 52px rgba(28, 48, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
125
+ --ds-shadow-popover: 0 14px 52px rgba(28, 48, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
126
+
127
+ /* Medidas: controles algo más altos y holgados */
128
+ --ds-control-h-sm: 2.25rem;
129
+ --ds-control-h-md: 2.5rem;
130
+ --ds-control-h-lg: 2.75rem;
131
+ --ds-button-px-sm: 1rem;
132
+ --ds-button-px-md: 1.25rem;
133
+ --ds-button-px-lg: 1.5rem;
134
+ --ds-field-px: 1rem;
135
+ --ds-field-bg: var(--zy-field-bg); /* cristal claro (cada piel da su --zy-field-bg) */
136
+
137
+ /* Materiales: cristal en navegación y controles; tarjetas sin desenfoque */
138
+ --ds-sidebar-backdrop: blur(28px) saturate(180%);
139
+ --ds-overlay-backdrop: blur(28px) saturate(180%);
140
+ --ds-field-backdrop: blur(12px) saturate(160%);
141
+ --ds-card-backdrop: none;
142
+ --ds-page-backdrop:
143
+ radial-gradient(55% 45% at 78% 6%, rgba(54, 179, 237, 0.3), transparent 70%),
144
+ radial-gradient(50% 45% at 96% 58%, rgba(3, 73, 254, 0.16), transparent 70%),
145
+ radial-gradient(55% 50% at 40% 106%, rgba(151, 71, 255, 0.14), transparent 70%);
146
+
147
+ /* Sidebar a ras de borde: sin separación, sin silueta; filo de 1px */
148
+ --ds-sidebar-pad: 0px;
149
+ --ds-sidebar-radius: 0px;
150
+ --ds-sidebar-shadow: 0 0 #0000;
151
+ --ds-sidebar-ring: 0px;
152
+ --ds-sidebar-edge: 1px solid var(--zy-glass-bs);
153
+ --ds-sidebar-item-radius: var(--ds-radius-lg);
154
+
155
+ /* Privadas de zyro */
156
+ --zy-accent-g: linear-gradient(135deg, #0349fe, #36b3ed);
157
+ --zy-accent-glow: rgba(3, 73, 254, 0.24);
158
+ --zy-glass-bt: rgba(255, 255, 255, 0.95);
159
+ --zy-glass-bs: rgba(168, 190, 235, 0.4);
160
+ --zy-card-bt: rgba(255, 255, 255, 1);
161
+ --zy-card-bs: rgba(168, 190, 235, 0.46);
162
+ --zy-field-bg: rgba(255, 255, 255, 0.72);
163
+ --zy-field-b: rgba(168, 190, 235, 0.55);
164
+ --zy-field-bt: rgba(255, 255, 255, 1);
165
+ --zy-pill: rgba(255, 255, 255, 0.55);
166
+ --zy-pill-on: rgba(255, 255, 255, 0.98);
167
+ --zy-conv-h: rgba(20, 40, 90, 0.04);
168
+ --zy-conv-a: rgba(3, 73, 254, 0.07);
169
+ --zy-conv-ab: rgba(3, 73, 254, 0.24);
170
+ --zy-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
171
+ --ds-hover-bg: #e3e9fb;
172
+ --ds-active-bg: #d9dff2;
173
+ }
174
+
175
+ /* ── 1b. VARIABLES · PIEL OSCURA ─────────────────────────────────────────── */
176
+ :where(:root[data-theme='zyro']).dark {
177
+ --background: #080b14;
178
+ --foreground: #ebeef9;
179
+
180
+ --card: #121522;
181
+ --card-foreground: #ebeef9;
182
+ --popover: #121522;
183
+ --popover-foreground: #ebeef9;
184
+
185
+ --primary: #36b3ed;
186
+ --primary-foreground: #04121c;
187
+ --secondary: #1d2130;
188
+ --secondary-foreground: #ebeef9;
189
+ --muted: #1d2130;
190
+ --muted-foreground: #a0a7bd;
191
+ --accent: rgba(54, 179, 237, 0.16);
192
+ --accent-foreground: #36b3ed;
193
+ --destructive: #e61919;
194
+ --destructive-foreground: #ffffff;
195
+
196
+ --border: #2b303f;
197
+ --input: #343a4c;
198
+ --ring: #36b3ed;
199
+
200
+ --chart-1: #36b3ed;
201
+ --chart-2: #14bd44;
202
+ --chart-3: #ffb300;
203
+ --chart-4: #eb1919;
204
+ --chart-5: #9747ff;
205
+
206
+ --sidebar: rgba(255, 255, 255, 0.04);
207
+ --sidebar-foreground: rgba(255, 255, 255, 0.72);
208
+ --sidebar-primary: #36b3ed;
209
+ --sidebar-primary-foreground: #04121c;
210
+ --sidebar-accent: rgba(54, 179, 237, 0.16);
211
+ --sidebar-accent-foreground: #36b3ed;
212
+ --sidebar-border: rgba(255, 255, 255, 0.07);
213
+ --sidebar-ring: #36b3ed;
214
+
215
+ --danger: #ff6b6b;
216
+ --danger-soft: rgba(235, 25, 25, 0.2);
217
+ --warning: #ffb300;
218
+ --warning-soft: rgba(255, 179, 0, 0.18);
219
+ --success: #3cc864;
220
+ --success-soft: rgba(20, 189, 68, 0.18);
221
+ --info: #70b7e3;
222
+ --info-soft: rgba(42, 147, 213, 0.2);
223
+ --neutral: rgba(255, 255, 255, 0.6);
224
+ --neutral-soft: rgba(255, 255, 255, 0.08);
225
+
226
+ --link: #36b3ed;
227
+ --link-hover: #7fd0f5;
228
+ --inset: #0c0f1a;
229
+ --inset-foreground: #ebeef9;
230
+ --brand: #36b3ed;
231
+ --brand-bright: #7fd0f5;
232
+
233
+ --ds-shadow-card: 0 2px 14px rgba(0, 0, 0, 0.3);
234
+ --ds-shadow-card-hover: 0 6px 26px rgba(0, 0, 0, 0.38);
235
+ --ds-shadow-raised: 0 8px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
236
+ --ds-shadow-overlay: 0 22px 64px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.13);
237
+ --ds-shadow-popover: 0 22px 64px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.13);
238
+
239
+ --ds-sidebar-backdrop: blur(24px) saturate(180%);
240
+ --ds-overlay-backdrop: blur(24px) saturate(180%);
241
+ --ds-page-backdrop:
242
+ radial-gradient(55% 45% at 78% 6%, rgba(54, 179, 237, 0.26), transparent 70%),
243
+ radial-gradient(50% 45% at 96% 58%, rgba(3, 73, 254, 0.24), transparent 70%),
244
+ radial-gradient(55% 50% at 40% 106%, rgba(151, 71, 255, 0.2), transparent 70%);
245
+
246
+ --zy-accent-g: linear-gradient(135deg, #36b3ed, #0349fe);
247
+ --zy-accent-glow: rgba(54, 179, 237, 0.42);
248
+ --zy-glass-bt: rgba(255, 255, 255, 0.3);
249
+ --zy-glass-bs: rgba(255, 255, 255, 0.07);
250
+ --zy-card-bt: rgba(255, 255, 255, 0.11);
251
+ --zy-card-bs: rgba(255, 255, 255, 0.06);
252
+ --zy-field-bg: rgba(255, 255, 255, 0.06);
253
+ --zy-field-b: rgba(255, 255, 255, 0.12);
254
+ --zy-field-bt: rgba(255, 255, 255, 0.26);
255
+ --zy-pill: rgba(255, 255, 255, 0.05);
256
+ --zy-pill-on: rgba(255, 255, 255, 0.12);
257
+ --zy-conv-h: rgba(255, 255, 255, 0.05);
258
+ --zy-conv-a: rgba(54, 179, 237, 0.14);
259
+ --zy-conv-ab: rgba(54, 179, 237, 0.4);
260
+ --ds-hover-bg: #262b3a;
261
+ --ds-active-bg: #303545;
262
+ }
263
+
264
+ /* ── VARIABLES DE LA PERSONALIDAD ────────────────────────────────────────────
265
+ * Lo que las reglas de abajo piden: cámbialo aquí (o en el brand.css de la app),
266
+ * nunca en las reglas. Las `--zy-*` son privadas del tema.
267
+ */
268
+ :root:where([data-theme='zyro']) {
269
+ /* Movimiento: suave y largo, como el cristal; curva muy amortiguada */
270
+ --ds-motion-fast: 140ms;
271
+ --ds-motion-base: 260ms;
272
+ --ds-motion-slow: 380ms;
273
+ --ds-ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
274
+ --ds-ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
275
+ --ds-ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
276
+ --ds-motion-distance: 12px;
277
+ --ds-motion-scale: 0.97;
278
+ --ds-motion-blur: 6px;
279
+ --ds-spring-bounce: 0.1;
280
+ --ds-motion-stagger: 55ms;
281
+ --ds-motion-press-scale: 0.98;
282
+ --ds-rule-w: 1px;
283
+ --ds-shadow-button: 0 4px 16px var(--zy-accent-glow);
284
+ --ds-shadow-button-hover: 0 6px 22px var(--zy-accent-glow);
285
+ --zy-accent-ink: #ffffff; /* texto sobre el degradado de marca, en las dos pieles */
286
+ --zy-shadow-danger: 0 4px 16px rgba(235, 25, 25, 0.3);
287
+ --zy-shadow-tab-active: 0 1px 6px rgba(28, 48, 100, 0.12);
288
+ --zy-press-scale: 0.98;
289
+ --zy-hover-brightness: 1.1;
290
+ --zy-drift-duration: 40s;
291
+ }
292
+
293
+ /* La sombra lee un color que cambia de piel: se repite en .dark para que se resuelva allí. */
294
+ :where(:root[data-theme='zyro']).dark {
295
+ --ds-shadow-button: 0 4px 16px var(--zy-accent-glow);
296
+ --ds-shadow-button-hover: 0 6px 22px var(--zy-accent-glow);
297
+ }
298
+
299
+ /* ── 2. PERSONALIDAD ─────────────────────────────────────────────────────────
300
+ * Sin capa: gana a las utilidades de los componentes. Solo variables (lo comprueba
301
+ * el doctor: tema `conformance: strict`). Familias completas.
302
+ */
303
+ :root:where([data-theme='zyro']) {
304
+ /* Botones: píldora. Acción primaria con degradado de marca y brillo. */
305
+ [data-slot='button'] {
306
+ transition: all var(--ds-motion-base) var(--zy-ease);
307
+ }
308
+ [data-slot='button']:active:not(:disabled) {
309
+ transform: scale(var(--zy-press-scale));
310
+ }
311
+ [data-slot='button'][data-variant='default'] {
312
+ background-color: transparent;
313
+ background-image: var(--zy-accent-g);
314
+ color: var(--zy-accent-ink);
315
+ border-color: transparent;
316
+ box-shadow: var(--ds-shadow-button);
317
+ }
318
+ [data-slot='button'][data-variant='default']:hover:not(:disabled) {
319
+ filter: brightness(var(--zy-hover-brightness));
320
+ box-shadow: var(--ds-shadow-button-hover);
321
+ }
322
+ [data-slot='button'][data-variant='destructive'] {
323
+ box-shadow: var(--zy-shadow-danger);
324
+ }
325
+ [data-slot='button'][data-variant='outline'],
326
+ [data-slot='button'][data-variant='secondary'] {
327
+ border: var(--ds-rule-w) solid var(--zy-field-b);
328
+ background: color-mix(in oklch, var(--foreground) 5%, var(--background));
329
+ color: var(--muted-foreground);
330
+ }
331
+ [data-slot='button'][data-variant='outline']:hover:not(:disabled),
332
+ [data-slot='button'][data-variant='secondary']:hover:not(:disabled) {
333
+ background: color-mix(in oklch, var(--foreground) 11%, var(--background));
334
+ color: var(--foreground);
335
+ }
336
+ [data-slot='button'][data-variant='ghost']:hover:not(:disabled) {
337
+ background: var(--zy-conv-h);
338
+ color: var(--foreground);
339
+ }
340
+
341
+ /* Tarjetas: contenido casi opaco con filo superior luminoso */
342
+ [data-slot='card'],
343
+ [data-slot='panel'][data-variant='default'],
344
+ [data-slot='stat'][data-variant='card'],
345
+ [data-slot='item'][data-variant='card'] {
346
+ border: var(--ds-rule-w) solid var(--zy-card-bs);
347
+ border-top-color: var(--zy-card-bt);
348
+ }
349
+
350
+ /* Campos (familia «field»): filo superior; el cristal claro va en --ds-field-bg */
351
+ [data-slot='input'],
352
+ [data-slot='textarea'],
353
+ [data-slot='select-trigger'],
354
+ [data-slot='native-select'],
355
+ [data-slot='input-group'],
356
+ [data-slot='input-otp-slot'] {
357
+ border-color: var(--zy-field-b);
358
+ border-top-color: var(--zy-field-bt);
359
+ }
360
+
361
+ /* Capas (familias «modal» y «floating»): filo de cristal */
362
+ [data-slot='dialog-content'],
363
+ [data-slot='sheet-content'],
364
+ [data-slot='alert-dialog-content'],
365
+ [data-slot='drawer-popup'],
366
+ [data-slot='popover-content'],
367
+ [data-slot='dropdown-menu-content'],
368
+ [data-slot='dropdown-menu-sub-content'],
369
+ [data-slot='select-content'],
370
+ [data-slot='context-menu-content'],
371
+ [data-slot='context-menu-sub-content'],
372
+ [data-slot='menubar-content'],
373
+ [data-slot='menubar-sub-content'],
374
+ [data-slot='hover-card-content'],
375
+ [data-slot='combobox-content'],
376
+ [data-slot='navigation-menu-popup'] {
377
+ border: var(--ds-rule-w) solid var(--zy-glass-bs);
378
+ border-top-color: var(--zy-glass-bt);
379
+ }
380
+
381
+
382
+ /* Conmutadores (familia «toggle»): píldora de cristal con el activo elevado */
383
+ [data-slot='tabs-list'] {
384
+ background: var(--zy-pill);
385
+ border: var(--ds-rule-w) solid var(--zy-card-bs);
386
+ }
387
+ [data-slot='toggle'],
388
+ [data-slot='toggle-group-item'] {
389
+ border-radius: var(--ds-radius-pill);
390
+ }
391
+ [data-slot='tabs-trigger'][data-active],
392
+ [data-slot='toggle'][aria-pressed='true'],
393
+ [data-slot='toggle-group-item'][aria-pressed='true'] {
394
+ background: var(--zy-pill-on);
395
+ box-shadow: var(--zy-shadow-tab-active);
396
+ }
397
+
398
+ /* Interruptor y progreso: degradado de marca */
399
+ [data-slot='switch'][data-checked] {
400
+ background-image: var(--zy-accent-g);
401
+ background-color: transparent;
402
+ }
403
+ [data-slot='progress-indicator'] {
404
+ background-image: var(--zy-accent-g);
405
+ background-color: transparent;
406
+ }
407
+
408
+ /* Sidebar: destino activo con tinte y filo, como la conversación activa de zyro */
409
+ [data-sidebar='menu-button'][data-active='true'] {
410
+ background: var(--zy-conv-a);
411
+ box-shadow: inset 0 0 0 var(--ds-rule-w) var(--zy-conv-ab);
412
+ color: var(--sidebar-accent-foreground);
413
+ }
414
+ [data-sidebar='menu-button']:hover:not([data-active='true']) {
415
+ background: var(--zy-conv-h);
416
+ }
417
+ }
418
+
419
+ /* Ajustes de personalidad (vistos en el banco de pruebas) */
420
+ :root:where([data-theme='zyro']) {
421
+ /* Esqueletos: visibles sobre la tarjeta casi blanca */
422
+ [data-slot='skeleton'] {
423
+ background: color-mix(in oklch, var(--foreground) 9%, transparent);
424
+ }
425
+ }
426
+
427
+ /* Fondo vivo: los degradados derivan despacio (aproximación ligera, sin WebGL de la
428
+ malla original). `prefers-reduced-motion` ya detiene la animación en la estructura. */
429
+ :root:where([data-theme='zyro']) {
430
+ body {
431
+ background-size: 160% 160%;
432
+ animation: zy-drift var(--zy-drift-duration) ease-in-out infinite alternate;
433
+ }
434
+ }
435
+ @keyframes zy-drift {
436
+ from {
437
+ background-position: 0% 0%;
438
+ }
439
+ to {
440
+ background-position: 100% 100%;
441
+ }
442
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "zyro",
3
+ "light": {
4
+ "palette": [
5
+ "#0349fe",
6
+ "#14bd44",
7
+ "#ffb300",
8
+ "#eb1919",
9
+ "#9747ff",
10
+ "#1267a1",
11
+ "#0b742a",
12
+ "#845f00",
13
+ "#c21414"
14
+ ],
15
+ "foreground": "#101526",
16
+ "muted": "#535a70",
17
+ "border": "#d8ddef",
18
+ "surface": "#fafcff",
19
+ "surfaceForeground": "#101526",
20
+ "fontSans": "'Roboto', system-ui, -apple-system, sans-serif",
21
+ "fontDisplay": "'Montserrat', system-ui, -apple-system, sans-serif",
22
+ "motionBaseMs": 200,
23
+ "motionSlowMs": 300
24
+ },
25
+ "dark": {
26
+ "palette": [
27
+ "#36b3ed",
28
+ "#14bd44",
29
+ "#ffb300",
30
+ "#eb1919",
31
+ "#9747ff",
32
+ "#70b7e3",
33
+ "#3cc864",
34
+ "#ff6b6b"
35
+ ],
36
+ "foreground": "#ebeef9",
37
+ "muted": "#a0a7bd",
38
+ "border": "#2b303f",
39
+ "surface": "#121522",
40
+ "surfaceForeground": "#ebeef9",
41
+ "fontSans": "'Roboto', system-ui, -apple-system, sans-serif",
42
+ "fontDisplay": "'Montserrat', system-ui, -apple-system, sans-serif",
43
+ "motionBaseMs": 200,
44
+ "motionSlowMs": 300
45
+ }
46
+ }
@@ -4,7 +4,7 @@ import { useRender } from '@base-ui/react/use-render';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const badgeVariants: (props?: ({
7
- variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | "info" | "success" | "warning" | "danger" | "neutral" | null | undefined;
7
+ variant?: "default" | "destructive" | "info" | "success" | "warning" | "danger" | "link" | "outline" | "secondary" | "ghost" | "neutral" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  declare function Badge({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
10
10
 
@@ -5,7 +5,7 @@ import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare function BubbleGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
7
7
  declare const bubbleVariants: (props?: ({
8
- variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "muted" | "tinted" | null | undefined;
8
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "muted" | "tinted" | null | undefined;
9
9
  } & class_variance_authority_types.ClassProp) | undefined) => string;
10
10
  declare function Bubble({ variant, align, className, ...props }: React.ComponentProps<"div"> & VariantProps<typeof bubbleVariants> & {
11
11
  align?: "start" | "end";
@@ -4,7 +4,7 @@ import { useRender } from '@base-ui/react/use-render';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const buttonVariants: (props?: ({
7
- variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | "cta" | null | undefined;
7
+ variant?: "default" | "destructive" | "link" | "outline" | "secondary" | "ghost" | "cta" | null | undefined;
8
8
  size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
9
9
  } & class_variance_authority_types.ClassProp) | undefined) => string;
10
10
  declare function Button({ className, variant, size, render, nativeButton: _nativeButton, ...props }: useRender.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
package/dist/ui/item.d.ts CHANGED
@@ -13,7 +13,7 @@ declare const itemVariants: (props?: ({
13
13
  } & class_variance_authority_types.ClassProp) | undefined) => string;
14
14
  declare function Item({ className, variant, size, render, ...props }: useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>): React.JSX.Element;
15
15
  declare const itemMediaVariants: (props?: ({
16
- variant?: "image" | "default" | "icon" | null | undefined;
16
+ variant?: "default" | "image" | "icon" | null | undefined;
17
17
  } & class_variance_authority_types.ClassProp) | undefined) => string;
18
18
  declare function ItemMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): React.JSX.Element;
19
19
  declare function ItemContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
@@ -4,7 +4,7 @@ import { useRender } from '@base-ui/react/use-render';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const markerVariants: (props?: ({
7
- variant?: "separator" | "default" | "border" | null | undefined;
7
+ variant?: "default" | "separator" | "border" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  declare function Marker({ className, variant, render, ...props }: useRender.ComponentProps<"div"> & VariantProps<typeof markerVariants>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
10
10
  declare function MarkerIcon({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  type SparklineSeries = 1 | 2 | 3 | 4 | 5;
5
5
  type SparklineTone = "info" | "success" | "warning" | "danger" | "neutral";
6
6
  declare const sparklineVariants: (props?: ({
7
- color?: "current" | "info" | "success" | "warning" | "danger" | "neutral" | "series-1" | "series-2" | "series-3" | "series-4" | "series-5" | null | undefined;
7
+ color?: "info" | "success" | "warning" | "danger" | "current" | "neutral" | "series-1" | "series-2" | "series-3" | "series-4" | "series-5" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  type SparklineProps = Omit<React.ComponentProps<"svg">, "children" | "color"> & {
10
10
  /** Serie de valores; `null` = sin dato (hueco), nunca cero. */
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  type StatusLevel = "critical" | "warning" | "ok" | "info" | "neutral" | "none";
5
5
  type StatusBadgeVariant = "soft" | "dot" | "outline";
6
6
  declare const statusDotVariants: (props?: ({
7
- level?: "none" | "info" | "warning" | "neutral" | "critical" | "ok" | null | undefined;
7
+ level?: "info" | "warning" | "none" | "neutral" | "critical" | "ok" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  type StatusDotProps = Omit<React.ComponentProps<"span">, "children"> & {
10
10
  level?: StatusLevel;
@@ -17,7 +17,7 @@ type StatusDotProps = Omit<React.ComponentProps<"span">, "children"> & {
17
17
  declare function StatusDot({ level, pulse, size, label, className, ...props }: StatusDotProps): React.JSX.Element;
18
18
  declare const statusBadgeVariants: (props?: ({
19
19
  variant?: "outline" | "soft" | "dot" | null | undefined;
20
- level?: "none" | "info" | "warning" | "neutral" | "critical" | "ok" | null | undefined;
20
+ level?: "info" | "warning" | "none" | "neutral" | "critical" | "ok" | null | undefined;
21
21
  } & class_variance_authority_types.ClassProp) | undefined) => string;
22
22
  type StatusBadgeProps = Omit<React.ComponentProps<"span">, "children"> & {
23
23
  level?: StatusLevel;
package/dist/ui/tabs.d.ts CHANGED
@@ -5,7 +5,7 @@ import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare function Tabs({ className, orientation, ...props }: Tabs$1.Root.Props): React.JSX.Element;
7
7
  declare const tabsListVariants: (props?: ({
8
- variant?: "line" | "default" | null | undefined;
8
+ variant?: "default" | "line" | null | undefined;
9
9
  } & class_variance_authority_types.ClassProp) | undefined) => string;
10
10
  declare function TabsList({ className, variant, ...props }: Tabs$1.List.Props & VariantProps<typeof tabsListVariants>): React.JSX.Element;
11
11
  declare function TabsTrigger({ className, ...props }: Tabs$1.Tab.Props): React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orbital-ds",
3
- "version": "0.30.0",
3
+ "version": "0.31.1",
4
4
  "description": "Sistema de diseño genérico: estructura común + temas con personalidad (qratia, zyro) + ~60 componentes sobre Base UI y Tailwind v4, con contrato verificable y legible por agentes.",
5
5
  "keywords": [
6
6
  "design-system",
@@ -137,12 +137,17 @@ export function derivar(primario, { acento, secundario = null, marcador = true,
137
137
  // Foco: el primario si se ve (3:1 sobre papel y tarjeta); si no (p. ej. un amarillo), oscurecido hasta verse.
138
138
  const foco = ratio(prim, papel) >= 3 && ratio(prim, blanco) >= 3 ? prim : ajustar(prim, -1, (c) => ratio(c, papel) >= 3 && ratio(c, blanco) >= 3) ?? enlace;
139
139
  const enlaceHover = ajustar(enlace, -1, (c) => rgbToOklch(c).l <= rgbToOklch(enlace).l - 0.07) ?? enlace;
140
+ // Destino activo del lateral claro: el primario, pero visible (3:1) sobre el propio lateral y sobre blanco aunque
141
+ // el primario sea muy claro (amarillo, verde neón, blanco). El texto encima se recalcula contra ese tono.
142
+ const verSobre = (c) => ratio(c, suave) >= 3 && ratio(c, blanco) >= 3 && ratio(textoSobre(c), c) >= 4.5;
143
+ const activoL = verSobre(prim) ? prim : ajustar(prim, -1, verSobre) ?? enlace;
144
+ const activoLFg = textoSobre(activoL);
140
145
  const brillo = oklchToRgb({ ...rgbToOklch(prim), l: Math.min(0.95, rgbToOklch(prim).l + 0.08) });
141
146
 
142
147
  const acentoC = acento ?? secundario ?? ok(0.82, 0.16, (H + 180) % 360);
143
148
  const claro = {
144
149
  primary: hex(prim), 'primary-foreground': hex(primFg), ring: hex(foco), link: hex(enlace), 'link-hover': hex(enlaceHover),
145
- brand: hex(prim), 'brand-bright': hex(brillo), 'sidebar-primary': hex(prim), 'sidebar-primary-foreground': hex(primFg), 'sidebar-ring': hex(foco),
150
+ brand: hex(prim), 'brand-bright': hex(brillo), 'sidebar-primary': hex(activoL), 'sidebar-primary-foreground': hex(activoLFg), 'sidebar-ring': hex(foco),
146
151
  'accent-foreground': hex(tinta),
147
152
  background: hex(papel), foreground: hex(tinta), card: '#ffffff', 'card-foreground': hex(tinta), popover: '#ffffff', 'popover-foreground': hex(tinta),
148
153
  secondary: hex(suave), 'secondary-foreground': hex(tinta), muted: hex(suave), 'muted-foreground': rgba(tinta, 0.72),
@@ -150,6 +155,12 @@ export function derivar(primario, { acento, secundario = null, marcador = true,
150
155
  sidebar: hex(suave), 'sidebar-foreground': hex(tinta), 'sidebar-accent': '#ffffff', 'sidebar-accent-foreground': hex(tinta), 'sidebar-border': rgba(tinta, 0.26),
151
156
  inset: hex(suave), 'inset-foreground': hex(tinta), neutral: rgba(tinta, 0.72), 'neutral-soft': rgba(tinta, 0.08),
152
157
  };
158
+ // Secundario: además de la serie 2 de los gráficos, tiñe la superficie de acento (selección, resalte, activo).
159
+ if (secundario) {
160
+ const S = rgbToOklch(secundario);
161
+ claro.accent = hex(ok(0.93, S.c < 0.02 ? 0 : Math.min(Math.max(S.c * 0.3, 0.025), 0.06), S.h));
162
+ claro['accent-foreground'] = hex(tinta);
163
+ }
153
164
  if (gestos) {
154
165
  claro['ds-key-outline'] = hex(tinta); claro['ds-key-edge'] = rgba(tinta, 0.26);
155
166
  claro['ds-marker'] = marcador ? rgba(acentoC, 0.62) : 'transparent';
@@ -173,6 +184,11 @@ export function derivar(primario, { acento, secundario = null, marcador = true,
173
184
  sidebar: hex(suaveO), 'sidebar-foreground': hex(textoO), 'sidebar-accent': hex(tarjetaO), 'sidebar-accent-foreground': hex(textoO), 'sidebar-border': rgba(textoO, 0.26),
174
185
  inset: hex(suaveO), 'inset-foreground': hex(textoO), neutral: rgba(textoO, 0.72), 'neutral-soft': rgba(textoO, 0.1),
175
186
  };
187
+ if (secundario) {
188
+ const S = rgbToOklch(secundario);
189
+ oscuro.accent = hex(ok(0.3, S.c < 0.02 ? 0 : Math.min(Math.max(S.c * 0.3, 0.03), 0.07), S.h));
190
+ oscuro['accent-foreground'] = hex(textoO);
191
+ }
176
192
  if (gestos) {
177
193
  oscuro['ds-key-outline'] = rgba(textoO, 0.92); oscuro['ds-key-edge'] = rgba(textoO, 0.26);
178
194
  oscuro['ds-marker'] = marcador ? rgba(acentoC, 0.45) : 'transparent';
@@ -205,6 +221,8 @@ export function derivar(primario, { acento, secundario = null, marcador = true,
205
221
  const pares = [
206
222
  ['claro', 'texto/papel', tinta, papel, 4.5], ['claro', 'texto/tarjeta', tinta, blanco, 4.5], ['claro', 'texto sobre primario', primFg, prim, 4.5],
207
223
  ['claro', 'enlace/papel', enlace, papel, 4.5], ['claro', 'foco/papel', foco, papel, 3],
224
+ ['claro', 'activo del lateral/lateral', activoL, suave, 3], ['claro', 'texto sobre activo del lateral', activoLFg, activoL, 4.5],
225
+ ...(secundario ? [['claro', 'texto/acento', tinta, rgbFrom(claro.accent), 4.5], ['oscuro', 'texto/acento', textoO, rgbFrom(oscuro.accent), 4.5]] : []),
208
226
  ['oscuro', 'texto/fondo', textoO, fondoO, 4.5], ['oscuro', 'texto sobre primario', primOFg, primO, 4.5], ['oscuro', 'enlace/fondo', enlaceO, fondoO, 4.5], ['oscuro', 'foco/fondo', focoO, fondoO, 3],
209
227
  ...seriesC.map((c, i) => ['claro', `serie ${i + 1}/papel`, c, papel, 3]),
210
228
  ...seriesO.map((c, i) => ['oscuro', `serie ${i + 1}/fondo`, c, fondoO, 3]),
@@ -215,6 +233,7 @@ export function derivar(primario, { acento, secundario = null, marcador = true,
215
233
 
216
234
  /* ═══════════════════════════ API PÚBLICA (orbital-ds/brand) ═══════════════════ */
217
235
  /** Alias en inglés de la API pública. */
236
+ const rgbFrom = (h) => ({ r: parseInt(h.slice(1, 3), 16), g: parseInt(h.slice(3, 5), 16), b: parseInt(h.slice(5, 7), 16) });
218
237
  export const deriveBrand = derivar;
219
238
  export const deriveChartSeries = derivarSeries;
220
239
  export const contrastRatio = ratio;
package/scripts/init.mjs CHANGED
@@ -263,7 +263,7 @@ function calcularBase(modo, tema, primario, { acento, secundario = null, marcado
263
263
  const lateral = lateralTema(tema);
264
264
  const res = derivar(primario, { acento, secundario, marcador, gestos, base: baseTema(tema), lateral });
265
265
  // Solo el primario (y la serie 2 si hay secundario): el resto de series es la del tema.
266
- const quedan = (tokens) => Object.fromEntries(Object.entries(tokens).filter(([k]) => TOKENS_PRIMARIO.has(k) || (lateral === 'dark' && TOKENS_LATERAL.has(k)) || (secundario && k === 'chart-2')));
266
+ const quedan = (tokens) => Object.fromEntries(Object.entries(tokens).filter(([k]) => TOKENS_PRIMARIO.has(k) || (lateral === 'dark' && TOKENS_LATERAL.has(k)) || (secundario && (k === 'chart-2' || k === 'accent' || k === 'accent-foreground'))));
267
267
  const claro = quedan(res.claro), oscuro = quedan(res.oscuro);
268
268
  // La vista enseña las series que se USARÁN: las nuevas (1 y, con secundario, 2) y el resto, del tema.
269
269
  const tem = paletaTema(tema);