orbital-ds 0.29.1 → 0.30.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 +14 -0
- package/components.manifest.json +117 -6
- package/dist/hooks/use-ds-messages.d.ts +9 -0
- package/dist/lib/auth-flow.d.ts +26 -2
- package/dist/lib/auth-flow.js +20 -3
- package/dist/lib/header-control.d.ts +4 -0
- package/dist/lib/header-control.js +14 -0
- package/dist/lib/i18n.d.ts +9 -0
- package/dist/lib/i18n.js +27 -0
- package/dist/ui/app-bar.d.ts +10 -0
- package/dist/ui/app-bar.js +51 -0
- package/dist/ui/attachment.js +1 -1
- package/dist/ui/auth-form.d.ts +5 -1
- package/dist/ui/auth-form.js +5 -0
- package/dist/ui/badge.js +2 -2
- package/dist/ui/button.js +1 -1
- package/dist/ui/content-card.d.ts +6 -2
- package/dist/ui/content-card.js +27 -3
- package/dist/ui/dropzone.js +1 -1
- package/dist/ui/item.js +1 -1
- package/dist/ui/legend.js +1 -1
- package/dist/ui/locale-switcher.d.ts +19 -0
- package/dist/ui/locale-switcher.js +54 -0
- package/dist/ui/menubar.js +1 -1
- package/dist/ui/message-scroller.js +1 -1
- package/dist/ui/navigation-menu.js +2 -2
- package/dist/ui/notice-review.d.ts +1 -0
- package/dist/ui/notifications.d.ts +12 -2
- package/dist/ui/notifications.js +28 -5
- package/dist/ui/sidebar.d.ts +17 -3
- package/dist/ui/sidebar.js +25 -10
- package/dist/ui/theme-toggle.d.ts +14 -0
- package/dist/ui/theme-toggle.js +112 -0
- package/dist/ui/toggle.js +2 -2
- package/dist/ui/week-strip.js +1 -1
- package/docs/CONTRACT.md +1 -1
- package/docs/designer/patrones.md +6 -0
- package/package.json +188 -187
- package/scripts/cli.mjs +452 -452
- package/dist/motion.css +0 -146
- package/dist/styles.css +0 -1656
- package/dist/themes/fractalia.css +0 -549
- package/dist/themes/fractalia.fonts.css +0 -3
- package/dist/themes/fractalia.guide.md +0 -86
- package/dist/themes/fractalia.meta.json +0 -112
- package/dist/themes/fractalia.scoped.css +0 -549
- package/dist/themes/fractalia.tokens.json +0 -39
- package/dist/themes/friendly.css +0 -367
- package/dist/themes/friendly.fonts.css +0 -2
- package/dist/themes/friendly.guide.md +0 -38
- package/dist/themes/friendly.meta.json +0 -82
- package/dist/themes/friendly.scoped.css +0 -367
- package/dist/themes/friendly.tokens.json +0 -45
- package/dist/themes/lagoon.css +0 -348
- package/dist/themes/lagoon.fonts.css +0 -2
- package/dist/themes/lagoon.guide.md +0 -47
- package/dist/themes/lagoon.meta.json +0 -85
- package/dist/themes/lagoon.scoped.css +0 -348
- package/dist/themes/lagoon.tokens.json +0 -49
- package/dist/themes/liquid.css +0 -502
- package/dist/themes/liquid.fonts.css +0 -7
- package/dist/themes/liquid.guide.md +0 -82
- package/dist/themes/liquid.meta.json +0 -134
- package/dist/themes/liquid.scoped.css +0 -502
- package/dist/themes/liquid.tokens.json +0 -47
- package/dist/themes/qratia.css +0 -260
- package/dist/themes/qratia.fonts.css +0 -2
- package/dist/themes/qratia.guide.md +0 -34
- package/dist/themes/qratia.meta.json +0 -49
- package/dist/themes/qratia.scoped.css +0 -260
- package/dist/themes/qratia.tokens.json +0 -49
- package/dist/themes/tactile.css +0 -588
- package/dist/themes/tactile.fonts.css +0 -3
- package/dist/themes/tactile.guide.md +0 -82
- package/dist/themes/tactile.meta.json +0 -182
- package/dist/themes/tactile.scoped.css +0 -588
- package/dist/themes/tactile.tokens.json +0 -42
- package/dist/themes/twitter.css +0 -357
- package/dist/themes/twitter.fonts.css +0 -6
- package/dist/themes/twitter.guide.md +0 -35
- package/dist/themes/twitter.meta.json +0 -90
- package/dist/themes/twitter.scoped.css +0 -357
- package/dist/themes/twitter.tokens.json +0 -45
- package/dist/themes/zyro.css +0 -434
- package/dist/themes/zyro.fonts.css +0 -2
- package/dist/themes/zyro.guide.md +0 -33
- package/dist/themes/zyro.meta.json +0 -74
- package/dist/themes/zyro.scoped.css +0 -434
- package/dist/themes/zyro.tokens.json +0 -46
|
@@ -1,549 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* TEMA fractalia — «Plataforma Fractalia: navy institucional, claridad y cero adornos».
|
|
3
|
-
*
|
|
4
|
-
* Fuente: FractaliaDS (repositorio GitLab design-system → fractalia-ds/tokens.css),
|
|
5
|
-
* reflejo de las Variables de Figma y de las fichas de Supernova (DS 821888).
|
|
6
|
-
* Ningún valor de la piel clara está inventado: cada hex lleva al lado su token.
|
|
7
|
-
*
|
|
8
|
-
* Gestos del sistema que este tema traslada:
|
|
9
|
-
* - Botones en píldora (Radius Label 32px), Roboto Bold en MAYÚSCULAS por CSS.
|
|
10
|
-
* - Hover del primario = azul `primary-hover` + sombra `drop-shadow`; sin elevación.
|
|
11
|
-
* - Campos rellenos (neutral-bg) con borde fino neutral-black y esquina de 4px.
|
|
12
|
-
* - Pestañas en píldora: la activa, rellena de navy con texto blanco.
|
|
13
|
-
* - Montserrat Bold solo en encabezados; Roboto para todo lo demás.
|
|
14
|
-
* - Cero degradados. Solo las 4 sombras oficiales (Effect Styles).
|
|
15
|
-
*
|
|
16
|
-
* Importar DESPUÉS de la estructura. Variables `--zf-*`: privadas de este tema.
|
|
17
|
-
* Fuentes: `fractalia.fonts.css` (Montserrat + Roboto), lo primero del CSS de la app.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
/* ── VARIABLES · PIEL CLARA (publicada en el DS) ─────────────────────────── */
|
|
21
|
-
:root {
|
|
22
|
-
/* Movimiento automático (orbital-ds/motion.css): tipo de entrada por grupo; lo describe la ficha (motion.auto) */
|
|
23
|
-
--ds-enter-surfaces: ds-auto-enter;
|
|
24
|
-
--ds-enter-notices: ds-auto-fade;
|
|
25
|
-
--ds-enter-headers: ds-auto-fade;
|
|
26
|
-
--ds-enter-rows: ds-auto-fade;
|
|
27
|
-
--radius: 8px; /* Radius Notifications */
|
|
28
|
-
|
|
29
|
-
--ds-font-sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
30
|
-
--ds-font-display: 'Montserrat', system-ui, sans-serif;
|
|
31
|
-
--ds-font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
|
|
32
|
-
|
|
33
|
-
/* Lateral: iconos newcore a 24px, filas de 44px (item-menu desktop) */
|
|
34
|
-
--ds-sidebar-icon: 1.5rem;
|
|
35
|
-
--ds-sidebar-icon-stroke: 2;
|
|
36
|
-
--ds-sidebar-rail-w: 4.5rem;
|
|
37
|
-
--ds-sidebar-rail-item: 2.75rem;
|
|
38
|
-
--ds-sidebar-logo: 2.25rem;
|
|
39
|
-
--ds-sidebar-sep-inset: 0rem;
|
|
40
|
-
--ds-heading-tracking: normal; /* letter-spacing 0 en todos los estilos */
|
|
41
|
-
|
|
42
|
-
/* Color: lienzo neutral-bg, tinta neutral-black, primario navy, acento azul */
|
|
43
|
-
--background: #ecf1f8; /* neutral-100 · neutral-bg */
|
|
44
|
-
--foreground: #34383f; /* neutral-900 · neutral-black */
|
|
45
|
-
|
|
46
|
-
--card: #ffffff; /* neutral-0 */
|
|
47
|
-
--card-foreground: #34383f;
|
|
48
|
-
--popover: #ffffff;
|
|
49
|
-
--popover-foreground: #34383f;
|
|
50
|
-
|
|
51
|
-
--primary: #242b5a; /* primary-default */
|
|
52
|
-
--primary-foreground: #ffffff;
|
|
53
|
-
--secondary: #ecf1f8; /* botón Secondary: neutral-bg + texto navy */
|
|
54
|
-
--secondary-foreground: #242b5a;
|
|
55
|
-
--muted: #ecf1f8;
|
|
56
|
-
--muted-foreground: #666a73; /* neutral-700 · grey-medium (4.78:1 sobre muted) */
|
|
57
|
-
--accent: #ecf1f8; /* fila seleccionada de item-menu */
|
|
58
|
-
--accent-foreground: #34383f;
|
|
59
|
-
--destructive: #d60000; /* danger-500 · botón Delete */
|
|
60
|
-
--destructive-foreground: #ffffff;
|
|
61
|
-
|
|
62
|
-
--border: #e3e8f3; /* neutral-200 · grey (separadores) */
|
|
63
|
-
--input: #34383f; /* borde de inputs y dropdown: neutral-black */
|
|
64
|
-
--ring: #0349fe; /* accent-default (convención de foco) */
|
|
65
|
-
|
|
66
|
-
/* Series de gráficas (paleta de grafica-grafc + navy) */
|
|
67
|
-
--chart-1: #0349fe; /* accent */
|
|
68
|
-
--chart-2: #242b5a; /* primary */
|
|
69
|
-
--chart-3: #007922; /* success-700 */
|
|
70
|
-
--chart-4: #c25400; /* warning-900 */
|
|
71
|
-
--chart-5: #d60000; /* danger-500 */
|
|
72
|
-
|
|
73
|
-
--sidebar: #ffffff;
|
|
74
|
-
--sidebar-foreground: #34383f;
|
|
75
|
-
--sidebar-primary: #242b5a;
|
|
76
|
-
--sidebar-primary-foreground: #ffffff;
|
|
77
|
-
--sidebar-accent: #ecf1f8; /* item-menu selected */
|
|
78
|
-
--sidebar-accent-foreground: #34383f;
|
|
79
|
-
--sidebar-border: #e3e8f3;
|
|
80
|
-
--sidebar-ring: #0349fe;
|
|
81
|
-
|
|
82
|
-
--danger: #d60000; /* danger-500 */
|
|
83
|
-
--danger-soft: #ffd9d9; /* danger-0 · danger-light */
|
|
84
|
-
--warning: #c25400; /* warning-900 · warning-dark */
|
|
85
|
-
--warning-soft: #fff5d6; /* warning-0 · warning-light */
|
|
86
|
-
--success: #007922; /* success-700 */
|
|
87
|
-
--success-soft: #d7fae1; /* success-0 */
|
|
88
|
-
--info: #0349fe; /* info-500 */
|
|
89
|
-
--info-soft: #d3dffe; /* info-0 */
|
|
90
|
-
--neutral: #666a73; /* neutral-700 */
|
|
91
|
-
--neutral-soft: #e3e8f3; /* neutral-200 */
|
|
92
|
-
|
|
93
|
-
--link: #0349fe; /* accent-default */
|
|
94
|
-
--link-hover: #012b98; /* accent-hover */
|
|
95
|
-
--inset: #ecf1f8;
|
|
96
|
-
--inset-foreground: #34383f;
|
|
97
|
-
--brand: #242b5a;
|
|
98
|
-
--brand-bright: #2a8bb8; /* primary-hover */
|
|
99
|
-
|
|
100
|
-
/* Formas: rampa primitives/radius (4 · 8 · 12 · 16 · 24) */
|
|
101
|
-
--ds-radius-sm: 4px; /* radius-xxs · Radius Imputs */
|
|
102
|
-
--ds-radius-md: 8px; /* radius-xs · Radius Notifications */
|
|
103
|
-
--ds-radius-lg: 12px; /* radius-s */
|
|
104
|
-
--ds-radius-xl: 16px; /* radius-sm */
|
|
105
|
-
--ds-radius-2xl: 24px; /* radius-md · Radius Circle M */
|
|
106
|
-
--ds-radius-control: 4px; /* inputs, dropdown, textarea */
|
|
107
|
-
--ds-radius-overlay: 16px; /* radius-sm (pendiente de confirmar en modales) */
|
|
108
|
-
|
|
109
|
-
/* Sombras: SOLO los 4 Effect Styles oficiales */
|
|
110
|
-
--ds-shadow-card: 0 1px 3px 0 rgba(52, 56, 63, 0.08), 0 4px 8px 1px rgba(52, 56, 63, 0.04); /* elevation-test */
|
|
111
|
-
--ds-shadow-card-hover: 0 4px 4px 0 rgba(188, 196, 212, 0.75); /* drop-shadow */
|
|
112
|
-
--ds-shadow-control: 0 0 #0000;
|
|
113
|
-
--ds-shadow-raised: 0 1px 3px 0 rgba(52, 56, 63, 0.08), 0 4px 8px 1px rgba(52, 56, 63, 0.04); /* elevation-test */
|
|
114
|
-
--ds-shadow-overlay: 0 4px 4px 0 rgba(188, 196, 212, 0.75); /* drop-shadow */
|
|
115
|
-
--ds-shadow-popover: 0 3px 5px 0 rgba(0, 0, 0, 0.1); /* menu-shadow */
|
|
116
|
-
|
|
117
|
-
/* Medidas: botón 12+16+12 = 40px; inputs y filas de menú 44px */
|
|
118
|
-
--ds-control-h-sm: 2rem;
|
|
119
|
-
--ds-control-h-md: 2.5rem;
|
|
120
|
-
--ds-control-h-lg: 2.75rem;
|
|
121
|
-
--ds-button-px-sm: 1rem; /* spacing-sm 16 */
|
|
122
|
-
--ds-button-px-md: 2rem; /* spacing-l 32 */
|
|
123
|
-
--ds-button-px-lg: 2.5rem; /* spacing-xl 40 */
|
|
124
|
-
--ds-field-px: 0.75rem; /* spacing-s 12 */
|
|
125
|
-
--ds-card-spacing: 1rem; /* spacing-sm 16 */
|
|
126
|
-
--ds-card-spacing-sm: 0.75rem; /* spacing-s 12 */
|
|
127
|
-
|
|
128
|
-
/* Sin cristal: material plano */
|
|
129
|
-
--ds-card-backdrop: none;
|
|
130
|
-
--ds-overlay-backdrop: none;
|
|
131
|
-
--ds-field-backdrop: none;
|
|
132
|
-
--ds-sidebar-backdrop: none;
|
|
133
|
-
--ds-page-backdrop: none;
|
|
134
|
-
|
|
135
|
-
/* Sidebar blanca a ras de borde sobre el lienzo neutral-bg */
|
|
136
|
-
--ds-sidebar-pad: 0px;
|
|
137
|
-
--ds-sidebar-radius: 0px;
|
|
138
|
-
--ds-sidebar-shadow: 0 0 #0000;
|
|
139
|
-
--ds-sidebar-ring: 0px;
|
|
140
|
-
--ds-sidebar-edge: 1px solid var(--sidebar-border);
|
|
141
|
-
--ds-sidebar-item-radius: 8px; /* item-menu selected */
|
|
142
|
-
--ds-sidebar-item-h: 2.75rem; /* 44px */
|
|
143
|
-
|
|
144
|
-
/* Traducción de las fichas del DS a los huecos del núcleo (ADR 0002) */
|
|
145
|
-
--ds-radius-button: 32px; /* Radius Label: botones en píldora */
|
|
146
|
-
--ds-radius-badge: 32px; /* tag */
|
|
147
|
-
--ds-radius-tab: 32px; /* button-tab-rounded */
|
|
148
|
-
--ds-radius-tabs-list: 32px; /* tab-box-rounded */
|
|
149
|
-
--ds-radius-track: 4px; /* progress-bar: radio 4 */
|
|
150
|
-
--ds-track-h: 12px; /* progress-bar: alto 12 */
|
|
151
|
-
--ds-field-bg: #ecf1f8; /* inputs y dropdown: relleno neutral-bg */
|
|
152
|
-
--ds-field-bg-hover: #ecf1f8; /* el DS no cambia el relleno al pasar */
|
|
153
|
-
--ds-switch-track-off: #c8cdd8; /* switch OFF · grey-light */
|
|
154
|
-
--ds-button-primary-hover: #2a8bb8; /* primary-hover */
|
|
155
|
-
--ds-button-primary-hover-fg: #ffffff;
|
|
156
|
-
--ds-button-outline-bg: #ffffff; /* botón White */
|
|
157
|
-
--ds-button-outline-fg: var(--primary);
|
|
158
|
-
--ds-button-outline-border: var(--primary);
|
|
159
|
-
--ds-button-secondary-border: var(--primary); /* botón Secondary: borde navy */
|
|
160
|
-
--ds-ring-width: 2px; /* foco: 2px */
|
|
161
|
-
--ds-step-size: 34px; /* empresa-item-step (desktop) */
|
|
162
|
-
--ds-status-dot-sm: 12px; /* status-ball: sm 12 · md 16 · lg 24 */
|
|
163
|
-
--ds-status-dot-md: 16px;
|
|
164
|
-
--ds-status-dot-lg: 24px;
|
|
165
|
-
--ds-legend-swatch: 8px; /* bolita de leyenda de las gráficas */
|
|
166
|
-
--ds-badge-px: 8px; /* tag: padding 2/8 */
|
|
167
|
-
--ds-badge-py: 2px;
|
|
168
|
-
/* Pesos: el tema carga Roboto 400/700 y Montserrat 700; ningún peso intermedio */
|
|
169
|
-
--ds-button-weight: 700;
|
|
170
|
-
--ds-title-weight: 700;
|
|
171
|
-
--ds-overlay-title-weight: 700;
|
|
172
|
-
--ds-heading-weight: 700;
|
|
173
|
-
--ds-strong-weight: 700;
|
|
174
|
-
--ds-stat-value-weight: 700;
|
|
175
|
-
--ds-nav-weight: 700; /* item-menu: Roboto Bold */
|
|
176
|
-
--ds-tab-weight: 400;
|
|
177
|
-
--ds-tab-active-weight: 700;
|
|
178
|
-
--ds-table-head-weight: 700;
|
|
179
|
-
--ds-badge-weight: 400; /* tag: Roboto Regular 12 */
|
|
180
|
-
/* Texto sobre los fondos suaves de estado en tinta: los tonos del DS no llegan a AA sobre ellos
|
|
181
|
-
(warning 4,23 · danger 4,19 · neutral 4,41); el estado sigue en el icono y el borde. */
|
|
182
|
-
--ds-on-soft: var(--foreground);
|
|
183
|
-
--ds-medium-weight: 400; /* Roboto no carga 500: el «medio» es Regular */
|
|
184
|
-
/* Botón desactivado con color, sin opacidad (button.md · Disabled) */
|
|
185
|
-
--ds-button-disabled-bg: #c8cdd8; /* secondary-disabled */
|
|
186
|
-
--ds-button-disabled-fg: #666a73; /* grey-medium */
|
|
187
|
-
--ds-button-disabled-border: transparent;
|
|
188
|
-
--ds-button-disabled-opacity: 1;
|
|
189
|
-
|
|
190
|
-
/* Piezas de estado y progreso: valores de fractalia.components (fichas 01–03 del DS) */
|
|
191
|
-
--ds-track-bg: #c8cdd8; /* neutrals-grey-light: pistas e inactivos */
|
|
192
|
-
--ds-gauge-size: 140px; /* grafica-grafc: marco 140 */
|
|
193
|
-
--ds-gauge-stroke: 12px; /* PROPUESTA: la ficha no da grosor */
|
|
194
|
-
--ds-gauge-value-size: 32px; /* desktop-h4-l */
|
|
195
|
-
--ds-gauge-suffix-size: 18px;
|
|
196
|
-
--ds-shield-w: 124px; /* shield S/M/S2/S3 */
|
|
197
|
-
--ds-shield-h: 150px;
|
|
198
|
-
--ds-shield-w-sm: 85px; /* corporate */
|
|
199
|
-
--ds-shield-h-sm: 103px;
|
|
200
|
-
--ds-shield-stroke: 10px;
|
|
201
|
-
/* alert-notification: tarjeta blanca de radio 12 con sombra, padding 16, texto 16 en tinta e
|
|
202
|
-
icono blanco en un disco de 32 del tono del estado */
|
|
203
|
-
--ds-radius-alert: 12px; /* radius-s */
|
|
204
|
-
--ds-alert-border-w: 0px;
|
|
205
|
-
--ds-shadow-alert: 0 4px 2px 0 rgba(0, 0, 0, 0.25); /* shadow-focus */
|
|
206
|
-
--ds-alert-bg: var(--card);
|
|
207
|
-
--ds-alert-px: 16px;
|
|
208
|
-
--ds-alert-py: 16px;
|
|
209
|
-
--ds-alert-text: 1rem;
|
|
210
|
-
--ds-alert-leading: 1.5rem;
|
|
211
|
-
--ds-alert-icon: 32px;
|
|
212
|
-
--ds-alert-icon-pad: 8px;
|
|
213
|
-
--ds-alert-icon-fill: 1;
|
|
214
|
-
--ds-alert-icon-on: var(--card); /* blanco en claro; en oscuro, el fondo de la tarjeta */
|
|
215
|
-
/* progress-bar: en curso warning-900, completado success-700 */
|
|
216
|
-
--ds-progress-fill: var(--warning);
|
|
217
|
-
--ds-progress-fill-complete: var(--success);
|
|
218
|
-
/* avatar-letras: Montserrat Bold */
|
|
219
|
-
--ds-avatar-font: var(--ds-font-display);
|
|
220
|
-
--ds-avatar-weight: 700;
|
|
221
|
-
/* menu-mobile-icons: barra flotante 56 de alto, radio 24, solo iconos en cajas de 32 (radio 8);
|
|
222
|
-
activa navy con icono blanco, inactiva neutral-bg con icono navy */
|
|
223
|
-
--ds-bottom-nav-h: 56px;
|
|
224
|
-
--ds-bottom-nav-inset: 20px; /* 335 de ancho en una pantalla de 375 */
|
|
225
|
-
--ds-bottom-nav-px: 16px;
|
|
226
|
-
--ds-bottom-nav-border-w: 0px;
|
|
227
|
-
--ds-radius-bottom-nav: 24px; /* Radius Circle M */
|
|
228
|
-
--ds-shadow-bottom-nav: 0 0 2px 0 rgba(0, 0, 0, 0.25);
|
|
229
|
-
--ds-bottom-nav-icon-box-w: 32px;
|
|
230
|
-
--ds-bottom-nav-icon-box-h: 32px;
|
|
231
|
-
--ds-bottom-nav-icon: 24px;
|
|
232
|
-
--ds-radius-bottom-nav-item: 8px; /* Radius Notifications */
|
|
233
|
-
--ds-bottom-nav-item-bg: var(--background);
|
|
234
|
-
--ds-bottom-nav-item-fg: var(--primary);
|
|
235
|
-
--ds-bottom-nav-item-active-bg: var(--primary);
|
|
236
|
-
--ds-bottom-nav-item-active-fg: var(--primary);
|
|
237
|
-
--ds-bottom-nav-icon-active-fg: var(--primary-foreground);
|
|
238
|
-
/* option-button: borde grey-light, radio 8, padding 16/12, icono 40; seleccionado con fondo
|
|
239
|
-
neutral-bg, borde y texto info en Bold; desactivado grey-light con texto blanco */
|
|
240
|
-
--ds-choice-card-border: #c8cdd8;
|
|
241
|
-
--ds-radius-choice-card: 8px;
|
|
242
|
-
--ds-choice-card-px: 12px;
|
|
243
|
-
--ds-choice-card-py: 16px;
|
|
244
|
-
--ds-choice-card-gap: 12px;
|
|
245
|
-
--ds-choice-card-icon: 40px;
|
|
246
|
-
--ds-choice-card-icon-fg: #666a73; /* grey-medium */
|
|
247
|
-
--ds-choice-card-selected-bg: var(--background);
|
|
248
|
-
--ds-choice-card-selected-border: var(--info);
|
|
249
|
-
--ds-choice-card-selected-fg: var(--info);
|
|
250
|
-
--ds-choice-card-selected-accent: var(--info);
|
|
251
|
-
--ds-choice-card-selected-weight: 700;
|
|
252
|
-
--ds-choice-card-disabled-bg: #c8cdd8;
|
|
253
|
-
--ds-choice-card-disabled-fg: #ffffff;
|
|
254
|
-
--ds-choice-card-disabled-opacity: 1;
|
|
255
|
-
/* item-copy: borde grey-light, radio 8, padding 8/16, separación 24, texto 16; hover primary-hover */
|
|
256
|
-
--ds-copy-field-border: #c8cdd8;
|
|
257
|
-
--ds-copy-field-hover: #2a8bb8;
|
|
258
|
-
--ds-radius-copy-field: 8px;
|
|
259
|
-
--ds-copy-field-px: 16px;
|
|
260
|
-
--ds-copy-field-py: 8px;
|
|
261
|
-
--ds-copy-field-gap: 24px;
|
|
262
|
-
--ds-copy-field-text: 1rem;
|
|
263
|
-
--ds-copy-field-icon-fg: #666a73;
|
|
264
|
-
/* tag-IA: borde accent-disabled, degradado purple-300 → info-300 al 12 %, texto info-600 */
|
|
265
|
-
--ds-badge-ai-border: #99b6ff;
|
|
266
|
-
--ds-badge-ai-bg: linear-gradient(90deg, color-mix(in srgb, #b37cf0 12%, transparent), color-mix(in srgb, #7497fb 12%, transparent));
|
|
267
|
-
--ds-badge-ai-fg: #0237c0;
|
|
268
|
-
--ds-shield-filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25)); /* sombra de Figma */
|
|
269
|
-
--ds-shield-value-size: 24px;
|
|
270
|
-
--ds-shield-value-weight: 700; /* Figma: ExtraBold 800, no cargado (decisión pendiente) */
|
|
271
|
-
--ds-shield-badge: 40px;
|
|
272
|
-
--ds-shield-radar-size: 240px;
|
|
273
|
-
--ds-shield-radar-circle: 182px;
|
|
274
|
-
--ds-shield-radar-glow: 12px; /* aproximado sobre el render */
|
|
275
|
-
--ds-strength-segment-w: 24px;
|
|
276
|
-
--ds-strength-segment-h: 5px;
|
|
277
|
-
--ds-strength-gap: 2px;
|
|
278
|
-
--ds-strength-radius: 8px;
|
|
279
|
-
--ds-step-dot: 12px;
|
|
280
|
-
--ds-step-dot-active-w: 32px;
|
|
281
|
-
--ds-step-dot-gap: 12px;
|
|
282
|
-
--ds-step-dot-bg: var(--muted); /* neutral-bg (el DS: no se ve sobre el lienzo, solo sobre blanco) */
|
|
283
|
-
--ds-step-ring-size: 24px;
|
|
284
|
-
--ds-level-value-size: 18px; /* desktop-h4 */
|
|
285
|
-
--ds-level-range-size: 26px; /* desktop-h4-m */
|
|
286
|
-
--ds-status-hero: 88px; /* alerta-estado: 12 + 64 + 12 */
|
|
287
|
-
--ds-status-hero-p: 12px;
|
|
288
|
-
--ds-status-hero-radius: 24px; /* Radius Circle M */
|
|
289
|
-
--ds-status-hero-badge: 28px;
|
|
290
|
-
--ds-status-halo-blur: 10px;
|
|
291
|
-
--ds-status-halo-inset: 3px; /* ficha: inset de 3px */
|
|
292
|
-
--ds-status-halo-success: rgba(138, 197, 142, 0.5);
|
|
293
|
-
--ds-status-halo-warning: rgba(255, 230, 148, 0.5);
|
|
294
|
-
--ds-status-halo-danger: rgba(255, 110, 110, 0.75);
|
|
295
|
-
--ds-loader-size: 88px; /* loader-analisis */
|
|
296
|
-
--ds-loader-p: 12px;
|
|
297
|
-
--ds-loader-radius: 24px;
|
|
298
|
-
--ds-loader-icon: 64px;
|
|
299
|
-
--ds-loader-bar-h: 2px;
|
|
300
|
-
--ds-loader-done-glow: 0 0 16px rgba(3, 73, 254, 0.25); /* PROPUESTA: glow «celeste» */
|
|
301
|
-
|
|
302
|
-
/* Privadas de fractalia (solo lo que ningún hueco público cubre) */
|
|
303
|
-
--zf-fill-hover: rgba(52, 56, 63, 0.08); /* state layer hover 0.08 */
|
|
304
|
-
--zf-fill-press: rgba(52, 56, 63, 0.12); /* state layer pressed 0.12 */
|
|
305
|
-
--zf-border-thick: 2px; /* checkbox y foco */
|
|
306
|
-
--zf-focus-offset: 2px;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
/* ── VARIABLES · PIEL OSCURA (DERIVADA — no publicada en el DS) ────────────
|
|
310
|
-
* Fractalia no tiene tema oscuro en Figma ni en Supernova. Se parte de la capa
|
|
311
|
-
* oscura derivada de fractalia-ds/tokens.css. No llevar a Figma sin validar con diseño.
|
|
312
|
-
*/
|
|
313
|
-
.dark {
|
|
314
|
-
--background: #10122a;
|
|
315
|
-
--foreground: #e4e9f6;
|
|
316
|
-
|
|
317
|
-
--card: #151833;
|
|
318
|
-
--card-foreground: #e4e9f6;
|
|
319
|
-
--popover: #1e2246;
|
|
320
|
-
--popover-foreground: #e4e9f6;
|
|
321
|
-
|
|
322
|
-
--primary: #c6d2f5; /* = text-heading oscuro; navy ilegible sobre fondo oscuro */
|
|
323
|
-
--primary-foreground: #242b5a;
|
|
324
|
-
--secondary: #1e2246;
|
|
325
|
-
--secondary-foreground: #e4e9f6;
|
|
326
|
-
--muted: #1e2246;
|
|
327
|
-
--muted-foreground: #9aa3bc;
|
|
328
|
-
--accent: #1e2246;
|
|
329
|
-
--accent-foreground: #e4e9f6;
|
|
330
|
-
--destructive: #ff7a7a; /* danger-300 */
|
|
331
|
-
--destructive-foreground: #10122a;
|
|
332
|
-
|
|
333
|
-
--border: #2c3157;
|
|
334
|
-
--input: #9aa3bc;
|
|
335
|
-
--ring: #7497fb; /* info-300 */
|
|
336
|
-
|
|
337
|
-
--chart-1: #7497fb; /* info-300 */
|
|
338
|
-
--chart-2: #c6d2f5;
|
|
339
|
-
--chart-3: #51ca6f; /* success-400 */
|
|
340
|
-
--chart-4: #ffb313; /* warning-400 */
|
|
341
|
-
--chart-5: #ff7a7a; /* danger-300 */
|
|
342
|
-
|
|
343
|
-
--sidebar: #151833;
|
|
344
|
-
--sidebar-foreground: #e4e9f6;
|
|
345
|
-
--sidebar-primary: #c6d2f5;
|
|
346
|
-
--sidebar-primary-foreground: #242b5a;
|
|
347
|
-
--sidebar-accent: #1e2246;
|
|
348
|
-
--sidebar-accent-foreground: #e4e9f6;
|
|
349
|
-
--sidebar-border: #2c3157;
|
|
350
|
-
--sidebar-ring: #7497fb;
|
|
351
|
-
|
|
352
|
-
--danger: #ff7a7a;
|
|
353
|
-
--danger-soft: rgba(214, 0, 0, 0.2);
|
|
354
|
-
--warning: #ffb313;
|
|
355
|
-
--warning-soft: rgba(255, 179, 19, 0.16);
|
|
356
|
-
--success: #51ca6f;
|
|
357
|
-
--success-soft: rgba(45, 177, 79, 0.18);
|
|
358
|
-
--info: #7497fb;
|
|
359
|
-
--info-soft: rgba(3, 73, 254, 0.22);
|
|
360
|
-
--neutral: #9aa3bc;
|
|
361
|
-
--neutral-soft: rgba(255, 255, 255, 0.08);
|
|
362
|
-
|
|
363
|
-
--link: #7497fb; /* info-300 */
|
|
364
|
-
--link-hover: #98b4fc; /* info-200 */
|
|
365
|
-
--inset: #1e2246;
|
|
366
|
-
--inset-foreground: #e4e9f6;
|
|
367
|
-
--brand: #c6d2f5;
|
|
368
|
-
--brand-bright: #7497fb;
|
|
369
|
-
|
|
370
|
-
--ds-shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.32), 0 4px 8px 1px rgba(0, 0, 0, 0.2);
|
|
371
|
-
--ds-shadow-card-hover: 0 4px 4px 0 rgba(0, 0, 0, 0.45);
|
|
372
|
-
--ds-shadow-raised: 0 1px 3px 0 rgba(0, 0, 0, 0.32), 0 4px 8px 1px rgba(0, 0, 0, 0.2);
|
|
373
|
-
--ds-shadow-overlay: 0 4px 4px 0 rgba(0, 0, 0, 0.5);
|
|
374
|
-
--ds-shadow-popover: 0 3px 5px 0 rgba(0, 0, 0, 0.4);
|
|
375
|
-
|
|
376
|
-
--ds-button-primary-hover: #98b4fc;
|
|
377
|
-
--ds-button-primary-hover-fg: #242b5a;
|
|
378
|
-
--ds-button-outline-bg: transparent;
|
|
379
|
-
--ds-button-disabled-bg: #2c3157;
|
|
380
|
-
--ds-track-bg: #3c4270;
|
|
381
|
-
--ds-shield-filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
|
|
382
|
-
--ds-status-halo-success: rgba(81, 202, 111, 0.35);
|
|
383
|
-
--ds-status-halo-warning: rgba(255, 179, 19, 0.35);
|
|
384
|
-
--ds-status-halo-danger: rgba(255, 122, 122, 0.45);
|
|
385
|
-
--ds-loader-done-glow: 0 0 16px rgba(116, 151, 251, 0.35);
|
|
386
|
-
--ds-button-disabled-fg: #9aa3bc;
|
|
387
|
-
--ds-field-bg: #1e2246;
|
|
388
|
-
--ds-field-bg-hover: #1e2246;
|
|
389
|
-
--ds-switch-track-off: #3c4270;
|
|
390
|
-
--ds-choice-card-border: #3c4270;
|
|
391
|
-
--ds-choice-card-icon-fg: #9aa3bc;
|
|
392
|
-
--ds-choice-card-disabled-bg: #2c3157;
|
|
393
|
-
--ds-choice-card-disabled-fg: #9aa3bc;
|
|
394
|
-
--ds-copy-field-border: #3c4270;
|
|
395
|
-
--ds-copy-field-hover: #98b4fc;
|
|
396
|
-
--ds-copy-field-icon-fg: #9aa3bc;
|
|
397
|
-
--ds-badge-ai-border: #3c4f8f;
|
|
398
|
-
--ds-badge-ai-fg: #98b4fc;
|
|
399
|
-
--zf-fill-hover: rgba(255, 255, 255, 0.08);
|
|
400
|
-
--zf-fill-press: rgba(255, 255, 255, 0.12);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
/* ── VARIABLES DE LA PERSONALIDAD ────────────────────────────────────────────
|
|
404
|
-
* Lo que las reglas de abajo piden: cámbialo aquí (o en el brand.css de la app),
|
|
405
|
-
* nunca en las reglas. Movimiento: tokens de 00-foundations/tokens-motion.md.
|
|
406
|
-
*/
|
|
407
|
-
:root {
|
|
408
|
-
/* Movimiento: sobrio y funcional, sin rebote */
|
|
409
|
-
--ds-motion-fast: 120ms; /* duration-hover */
|
|
410
|
-
--ds-motion-base: 220ms; /* duration-transition */
|
|
411
|
-
--ds-motion-slow: 360ms; /* duration-overlay */
|
|
412
|
-
--ds-ease-standard: cubic-bezier(0.2, 0, 0, 1); /* easing-default */
|
|
413
|
-
--ds-ease-enter: cubic-bezier(0, 0, 0, 1); /* easing-enter (decelerate) */
|
|
414
|
-
--ds-ease-exit: cubic-bezier(0.3, 0, 1, 1); /* easing-exit (accelerate) */
|
|
415
|
-
--ds-motion-distance: 8px; /* spacing-xs — diseñado, no publicado */
|
|
416
|
-
--ds-motion-scale: 0.98; /* diseñado, no publicado */
|
|
417
|
-
--ds-motion-blur: 0px;
|
|
418
|
-
--ds-spring-bounce: 0;
|
|
419
|
-
--ds-motion-stagger: 0ms;
|
|
420
|
-
--ds-motion-press-scale: 1; /* el DS no encoge al pulsar */
|
|
421
|
-
--ds-motion-pulse: 1500ms; /* motion-duration.pulse (radar, latidos) */
|
|
422
|
-
--ds-ease-pulse: cubic-bezier(0.4, 0, 0.6, 1); /* easing-pulse */
|
|
423
|
-
--ds-key-weight: 700; /* Roboto Bold en botones */
|
|
424
|
-
--ds-button-case: uppercase;
|
|
425
|
-
--ds-button-tracking: 0;
|
|
426
|
-
--ds-button-outline-w: 1px; /* sin decimales: solo 0/1/2/4/6 */
|
|
427
|
-
--ds-shadow-button: 0 0 #0000;
|
|
428
|
-
--ds-shadow-button-hover: 0 4px 2px 0 rgba(0, 0, 0, 0.25); /* shadow-focus: hover y foco del botón */
|
|
429
|
-
--ds-hover-lift: 0px;
|
|
430
|
-
--ds-label-tracking: 0;
|
|
431
|
-
--ds-label-weight: 700;
|
|
432
|
-
--ds-nav-active-weight: 700;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
.dark {
|
|
436
|
-
--ds-shadow-button-hover: 0 4px 4px 0 rgba(0, 0, 0, 0.45);
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
@media (prefers-reduced-motion: reduce) {
|
|
440
|
-
:root {
|
|
441
|
-
--ds-motion-fast: 0ms; /* a11y.reduced-motion-duration */
|
|
442
|
-
--ds-motion-base: 0ms;
|
|
443
|
-
--ds-motion-slow: 0ms;
|
|
444
|
-
--ds-motion-distance: 0px;
|
|
445
|
-
--ds-motion-scale: 1;
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
/* ── PERSONALIDAD ────────────────────────────────────────────────────────────
|
|
450
|
-
* Sin capa: gana a las utilidades de los componentes. Solo variables
|
|
451
|
-
* (`conformance: strict`). Familias completas.
|
|
452
|
-
*/
|
|
453
|
-
:root {
|
|
454
|
-
/* Botones: píldora de 32px, Roboto Bold en MAYÚSCULAS, sin elevación */
|
|
455
|
-
[data-slot='button'] {
|
|
456
|
-
text-transform: var(--ds-button-case);
|
|
457
|
-
letter-spacing: var(--ds-button-tracking);
|
|
458
|
-
font-family: var(--ds-font-sans);
|
|
459
|
-
font-weight: var(--ds-key-weight);
|
|
460
|
-
transition:
|
|
461
|
-
background-color var(--ds-motion-fast) var(--ds-ease-standard),
|
|
462
|
-
box-shadow var(--ds-motion-fast) var(--ds-ease-standard);
|
|
463
|
-
}
|
|
464
|
-
[data-slot='button'][data-variant='link'] {
|
|
465
|
-
text-transform: none;
|
|
466
|
-
letter-spacing: normal;
|
|
467
|
-
}
|
|
468
|
-
/* Primary: hover azul primary-hover + drop-shadow */
|
|
469
|
-
[data-slot='button'][data-variant='default'] {
|
|
470
|
-
box-shadow: var(--ds-shadow-button);
|
|
471
|
-
}
|
|
472
|
-
[data-slot='button'][data-variant='default']:hover:not(:disabled) {
|
|
473
|
-
box-shadow: var(--ds-shadow-button-hover);
|
|
474
|
-
}
|
|
475
|
-
/* Focus: mantiene el fondo, anillo primary-hover a 2px + drop-shadow.
|
|
476
|
-
Con outline (no box-shadow) para que la sombra no anule el foco. */
|
|
477
|
-
[data-slot='button']:focus-visible {
|
|
478
|
-
outline: var(--ds-ring-width) solid var(--ds-button-primary-hover);
|
|
479
|
-
outline-offset: var(--zf-focus-offset);
|
|
480
|
-
box-shadow: var(--ds-shadow-button-hover);
|
|
481
|
-
}
|
|
482
|
-
/* Secondary y outline: texto navy también en oscuro (secondary-foreground es otro tono) */
|
|
483
|
-
[data-slot='button'][data-variant='secondary']:not(:disabled) {
|
|
484
|
-
color: var(--primary);
|
|
485
|
-
}
|
|
486
|
-
[data-slot='button'][data-variant='secondary']:hover:not(:disabled),
|
|
487
|
-
[data-slot='button'][data-variant='outline']:hover:not(:disabled),
|
|
488
|
-
[data-slot='button'][data-variant='ghost']:hover:not(:disabled) {
|
|
489
|
-
background: var(--zf-fill-hover);
|
|
490
|
-
}
|
|
491
|
-
[data-slot='button'][data-variant='secondary']:active:not(:disabled),
|
|
492
|
-
[data-slot='button'][data-variant='outline']:active:not(:disabled),
|
|
493
|
-
[data-slot='button'][data-variant='ghost']:active:not(:disabled) {
|
|
494
|
-
background: var(--zf-fill-press);
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
/* Tarjetas: blancas sobre neutral-bg, sin borde, sombra elevation-test */
|
|
498
|
-
[data-slot='card'],
|
|
499
|
-
[data-slot='panel'][data-variant='default'],
|
|
500
|
-
[data-slot='stat'][data-variant='card'],
|
|
501
|
-
[data-slot='item'][data-variant='card'] {
|
|
502
|
-
border-color: transparent;
|
|
503
|
-
}
|
|
504
|
-
/* Checkbox y radio (familia «choice»): borde de 2px neutral-black; marcado, navy */
|
|
505
|
-
[data-slot='checkbox'],
|
|
506
|
-
[data-slot='radio-group-item'] {
|
|
507
|
-
border-width: var(--zf-border-thick);
|
|
508
|
-
border-color: var(--input);
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
/* Tags: píldora de 32px, Roboto Regular 12, sin borde; la secundaria es info */
|
|
512
|
-
[data-slot='badge'][data-variant='secondary'] {
|
|
513
|
-
background: var(--info-soft);
|
|
514
|
-
color: var(--foreground);
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
/* Tablas: cabecera en Roboto Bold, sin mayúsculas; separadores grey */
|
|
518
|
-
[data-slot='table-head'] {
|
|
519
|
-
font-weight: var(--ds-label-weight);
|
|
520
|
-
letter-spacing: var(--ds-label-tracking);
|
|
521
|
-
color: var(--foreground);
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
/* Sidebar (item-menu): fila activa neutral-bg, Roboto Bold */
|
|
525
|
-
[data-sidebar='menu-button'] {
|
|
526
|
-
font-weight: var(--ds-nav-active-weight);
|
|
527
|
-
}
|
|
528
|
-
[data-sidebar='menu-button']:hover:not([data-active='true']) {
|
|
529
|
-
background: var(--zf-fill-hover);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
/* Pestañas y toggles (button-tab-rounded / tab-box-rounded):
|
|
533
|
-
contenedor y pestaña en píldora; la activa, rellena de navy con texto blanco */
|
|
534
|
-
[data-slot='tabs-trigger'],
|
|
535
|
-
[data-slot='toggle'],
|
|
536
|
-
[data-slot='toggle-group-item'] {
|
|
537
|
-
border-radius: var(--ds-radius-tab);
|
|
538
|
-
color: var(--primary);
|
|
539
|
-
}
|
|
540
|
-
[data-slot='tabs-trigger'][data-active],
|
|
541
|
-
[data-slot='tabs-trigger'][data-state='active'],
|
|
542
|
-
[data-slot='toggle'][aria-pressed='true'],
|
|
543
|
-
[data-slot='toggle-group-item'][aria-pressed='true'] {
|
|
544
|
-
background: var(--primary);
|
|
545
|
-
color: var(--primary-foreground);
|
|
546
|
-
font-weight: var(--ds-key-weight);
|
|
547
|
-
box-shadow: var(--ds-shadow-control);
|
|
548
|
-
}
|
|
549
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* Fuentes del tema fractalia: Montserrat (encabezados, solo Bold 700) + Roboto (cuerpo, 400/700).
|
|
2
|
-
Importar la PRIMERA del CSS de la app. Montserrat no tiene Regular en el sistema. */
|
|
3
|
-
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;700&display=swap');
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# Tema `fractalia` — guía de diseño
|
|
2
|
-
|
|
3
|
-
## Esencia
|
|
4
|
-
La plataforma Fractalia: lienzo gris azulado muy claro (`neutral-bg`), tinta casi negra, primario navy institucional y acento azul eléctrico. Interfaz clara, plana y sin adornos.
|
|
5
|
-
|
|
6
|
-
## Gesto firma
|
|
7
|
-
**Botón en píldora (32px) con Roboto Bold en MAYÚSCULAS**: en hover y foco pasa a azul `primary-hover` con `shadow-focus` (`0 4px 2px rgba(0,0,0,.25)`), sin elevarse. Las pestañas siguen la misma forma, con la activa rellena de navy.
|
|
8
|
-
|
|
9
|
-
## Principios
|
|
10
|
-
- Montserrat Bold **solo** en encabezados; Roboto para todo lo demás. No existe Montserrat Regular.
|
|
11
|
-
- Mayúsculas de botón **por CSS**; el texto se escribe en sentence-case (lectores de pantalla).
|
|
12
|
-
- Cero degradados (única excepción: rampa de datos de un choropleth).
|
|
13
|
-
- Solo las sombras oficiales (`drop-shadow`, `elevation-test`, `menu-shadow`, `shadow-menu-mobile-cx` y `shadow-focus` de botones y avisos). Nunca combinar dos.
|
|
14
|
-
- El color nunca comunica solo: todo estado lleva texto o icono.
|
|
15
|
-
- Bordes sin decimales: solo 0 / 1 / 2 / 4 / 6px.
|
|
16
|
-
|
|
17
|
-
## Referencias y qué se tomó de cada una
|
|
18
|
-
- **FractaliaDS** (repositorio GitLab `design-system`, `fractalia-ds/tokens.css` + `00-foundations/`), reflejo de las Variables de Figma y de Supernova (DS 821888): paleta, tipografía, spacing, radios, sombras, motion y las fichas de botón, tag, inputs, dropdown, tabs, item-menu, switch, checkbox y gráficas.
|
|
19
|
-
|
|
20
|
-
## Paleta
|
|
21
|
-
- Claro: fondo `#ECF1F8`, tinta `#34383F`, tarjeta `#FFFFFF`, primario `#242B5A` (hover `#2A8BB8`), acento/foco/enlace `#0349FE`, borde `#E3E8F3`, borde de input `#34383F`.
|
|
22
|
-
- Estados: danger `#D60000` / `#FFD9D9` · warning `#C25400` / `#FFF5D6` · success `#007922` / `#D7FAE1` · info `#0349FE` / `#D3DFFE`.
|
|
23
|
-
- Oscuro (derivado): fondo `#10122A`, tarjeta `#151833`, texto `#E4E9F6`, primario `#C6D2F5`.
|
|
24
|
-
|
|
25
|
-
## Tipografía
|
|
26
|
-
**Montserrat Bold 700** para encabezados y **Roboto 400/700** para cuerpo, botones y metadatos (`fractalia.fonts.css`, lo primero del CSS de la app). Letter-spacing 0 en todos los estilos.
|
|
27
|
-
|
|
28
|
-
## Formas y profundidad
|
|
29
|
-
Radio base 8px (`Radius Notifications`); inputs y dropdown 4px; botones, tags y pestañas 32px (`Radius Label`). Tarjetas blancas sin borde sobre el lienzo, con `elevation-test`; menús con `menu-shadow`.
|
|
30
|
-
|
|
31
|
-
## Componentes traducidos
|
|
32
|
-
| Slot | Qué hace el tema | Ficha del DS |
|
|
33
|
-
|---|---|---|
|
|
34
|
-
| `button` default | navy → hover `#2A8BB8` + `shadow-focus`; foco con anillo 2px | `01-atoms/button.md` |
|
|
35
|
-
| `button` secondary | fondo neutral-bg, borde 1px y texto navy | `button.md` · Secondary |
|
|
36
|
-
| `button` outline | fondo blanco, borde 1px y texto navy | `button.md` · White |
|
|
37
|
-
| `button` disabled | `#C8CDD8` + texto `#666A73`, sin opacidad | `button.md` · Disabled |
|
|
38
|
-
| `input`, `select`… | relleno neutral-bg, borde 1px neutral-black, radio 4 | `text-fields-inputs.md`, `dropdown.md` |
|
|
39
|
-
| `badge` | píldora, Roboto Regular; secundaria = tag info | `01-atoms/tag.md` |
|
|
40
|
-
| `tabs`, `toggle` | píldora; activa navy con texto blanco | `button-tab-rounded.md`, `tab-box-rounded.md` |
|
|
41
|
-
| sidebar | blanca, filas de 44px, activa neutral-bg, radio 8 | `03-organisms/item-menu.md` |
|
|
42
|
-
| `switch` | ON navy, OFF grey-light | `02-molecules/switch.md` |
|
|
43
|
-
| `checkbox` | borde 2px neutral-black | `01-atoms/checkbox.md` |
|
|
44
|
-
| `alert` | tarjeta blanca, radio 12, sin borde, `shadow-focus`, padding 16, texto 16 en tinta; icono blanco en disco de 32 del tono | `alert-notification` |
|
|
45
|
-
| `progress` | en curso warning-900, completado success-700 (`data-complete`); `tone` para otros casos | `progress-bar` |
|
|
46
|
-
| `avatar` (iniciales) | Montserrat Bold; `tone` info / warning / success | `avatar-letras` |
|
|
47
|
-
| `bottom-nav` | flotante, 56 de alto, radio 24; solo iconos en cajas de 32: activa navy con icono blanco | `menu-mobile-icons` |
|
|
48
|
-
| `choice-card` | borde grey-light, radio 8, icono 40; elegida con fondo neutral-bg, borde y texto info en Bold | `option-button` |
|
|
49
|
-
| `copy-field` | borde grey-light, radio 8, padding 8/16, texto 16; hover primary-hover | `item-copy` |
|
|
50
|
-
| `ai-tag` | píldora con borde accent-disabled, degradado morado→azul al 12 % | `tag-IA` |
|
|
51
|
-
|
|
52
|
-
## Piezas que vienen de su DS (del núcleo: sirven en TODOS los temas)
|
|
53
|
-
Las fichas de `fractalia.components` (gauge, escudo, estado, progreso, fuerza, stepper, loader) están traducidas a
|
|
54
|
-
componentes genéricos de orbital-ds: cualquier tema los usa con sus valores (o los neutros de la estructura). Este
|
|
55
|
-
tema solo les da los de Fractalia (sección «Piezas de estado y progreso»):
|
|
56
|
-
|
|
57
|
-
| Ficha del DS | Componente | Valores del tema |
|
|
58
|
-
|---|---|---|
|
|
59
|
-
| grafica-grafc*, grafsemic* | `Gauge` (+ `GaugeValue`, `GaugeTag`, `GaugeScale`) | 140px, trazo 12 (PROPUESTA), cifra 32 |
|
|
60
|
-
| shield, escudo-radar | `Shield`, `ShieldRadar` | 124×150 (85×103 sm), contorno 10, sombra de Figma, latido 1500ms |
|
|
61
|
-
| status-ball / alerta-estado | `StatusDot size` / `StatusHero` | 12·16·24 / disco 88, halos del DS |
|
|
62
|
-
| empresa-user-status | `AvatarGroup` (+N) | — |
|
|
63
|
-
| progress-bar / -estado / -nivel | `Progress` / `TaskProgress` / `LevelMeter` | pista #C8CDD8, alto 12, radio 4 |
|
|
64
|
-
| strength | `PasswordStrength` | 24×5, separación 2, radio 8 |
|
|
65
|
-
| stepper / steps-consultoria / empresa-item-step | `StepDots` / `StepRing` / `StepperIndicator` | 12→32 / 24 / 34 |
|
|
66
|
-
| loader-* | `TaskLoader` (la ilustración la pone la app) | 88, icono 64, barra 2, brillo «celeste» (PROPUESTA) |
|
|
67
|
-
|
|
68
|
-
`fractalia.components.css` **no se importa**: choca con `Progress`, `Stepper` y `StatusBadge`. Pendiente de diseño:
|
|
69
|
-
Montserrat 800 en el escudo (hoy 700, el peso cargado), umbrales del gauge, tonos pink/orange/purple.
|
|
70
|
-
|
|
71
|
-
## Qué evita
|
|
72
|
-
Degradados, sombras inventadas, rebotes, Montserrat en cuerpo de texto, mayúsculas escritas a mano, bordes con decimales.
|
|
73
|
-
|
|
74
|
-
## Accesibilidad
|
|
75
|
-
- Tinta sobre lienzo 10.4:1 · navy con blanco 13.4:1 · texto atenuado `#666A73` sobre lienzo 4.78:1 · danger con blanco 5.44:1 · acento sobre blanco 6.2:1.
|
|
76
|
-
- Foco visible en todos los interactivos: anillo 2px con 2px de separación (con `outline`, para que la sombra del botón no lo anule).
|
|
77
|
-
- `prefers-reduced-motion`: todas las duraciones pasan a 0.
|
|
78
|
-
|
|
79
|
-
## Estado de los valores
|
|
80
|
-
- **Verificados en el DS**: paleta clara, tipografía, radios, sombras, motion, specs de componentes.
|
|
81
|
-
- **Aproximados**: radio de overlays (16px), alturas de control sm/lg, orden de series de gráficas.
|
|
82
|
-
- **Diseñados**: piel oscura (derivada, **no publicada** en el DS: no llevar a Figma sin validar) y coreografía de movimiento.
|
|
83
|
-
- **Limitaciones conocidas del propio DS** (se respetan, no se corrigen aquí):
|
|
84
|
-
- Hover primario `#2A8BB8` con texto blanco = 3.83:1 → no llega a AA en 16px.
|
|
85
|
-
- Texto de estado sobre su fondo suave (warning 4.23:1, danger 4.19:1, neutral 4.41:1): el tema lo resuelve sin
|
|
86
|
-
cambiar colores con `--ds-on-soft: var(--foreground)`: el texto va en tinta y el estado queda en el icono y el borde.
|