orbital-ds 0.16.0 → 0.18.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/README.md +97 -97
- package/components.manifest.json +2067 -1984
- package/dist/hooks/use-ds-messages.d.ts +4 -0
- package/dist/lib/i18n.d.ts +4 -0
- package/dist/lib/i18n.js +15 -3
- package/dist/styles.css +37 -2
- package/dist/themes/lagoon.css +348 -0
- package/dist/themes/lagoon.fonts.css +2 -0
- package/dist/themes/lagoon.guide.md +46 -0
- package/dist/themes/lagoon.meta.json +84 -0
- package/dist/themes/lagoon.scoped.css +348 -0
- package/dist/themes/lagoon.tokens.json +49 -0
- package/dist/ui/animated-number.d.ts +9 -0
- package/dist/ui/animated-number.js +46 -0
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/button.js +1 -0
- package/dist/ui/card-stack.d.ts +9 -0
- package/dist/ui/card-stack.js +47 -0
- package/dist/ui/dock.d.ts +13 -0
- package/dist/ui/dock.js +103 -0
- package/dist/ui/media-card.d.ts +13 -0
- package/dist/ui/media-card.js +44 -0
- package/dist/ui/week-strip.d.ts +12 -0
- package/dist/ui/week-strip.js +82 -0
- package/docs/GRAFICOS.md +11 -4
- package/package.json +6 -1
- package/scripts/brand-core.d.mts +48 -0
- package/scripts/brand-core.mjs +29 -1
- package/scripts/cli.mjs +452 -452
|
@@ -105,6 +105,10 @@ declare const DsMessagesContext: React.Context<{
|
|
|
105
105
|
copyValue: string;
|
|
106
106
|
aiGenerated: string;
|
|
107
107
|
bottomNav: string;
|
|
108
|
+
dockLabel: string;
|
|
109
|
+
weekLabel: string;
|
|
110
|
+
weekPrevious: string;
|
|
111
|
+
weekNext: string;
|
|
108
112
|
}>;
|
|
109
113
|
/** Textos de los componentes en el idioma activo. */
|
|
110
114
|
declare function useDsMessages(): DsMessages;
|
package/dist/lib/i18n.d.ts
CHANGED
|
@@ -104,6 +104,10 @@ declare const en: {
|
|
|
104
104
|
copyValue: string;
|
|
105
105
|
aiGenerated: string;
|
|
106
106
|
bottomNav: string;
|
|
107
|
+
dockLabel: string;
|
|
108
|
+
weekLabel: string;
|
|
109
|
+
weekPrevious: string;
|
|
110
|
+
weekNext: string;
|
|
107
111
|
};
|
|
108
112
|
type DsMessages = typeof en;
|
|
109
113
|
type DsMessageKey = keyof DsMessages;
|
package/dist/lib/i18n.js
CHANGED
|
@@ -102,7 +102,11 @@ const en = {
|
|
|
102
102
|
copied: "Copied",
|
|
103
103
|
copyValue: "Copy {value}",
|
|
104
104
|
aiGenerated: "AI-generated",
|
|
105
|
-
bottomNav: "Main navigation"
|
|
105
|
+
bottomNav: "Main navigation",
|
|
106
|
+
dockLabel: "Main navigation",
|
|
107
|
+
weekLabel: "Week",
|
|
108
|
+
weekPrevious: "Previous week",
|
|
109
|
+
weekNext: "Next week"
|
|
106
110
|
};
|
|
107
111
|
const es = {
|
|
108
112
|
close: "Cerrar",
|
|
@@ -206,7 +210,11 @@ const es = {
|
|
|
206
210
|
copied: "Copiado",
|
|
207
211
|
copyValue: "Copiar {value}",
|
|
208
212
|
aiGenerated: "Generado con IA",
|
|
209
|
-
bottomNav: "Navegaci\xF3n principal"
|
|
213
|
+
bottomNav: "Navegaci\xF3n principal",
|
|
214
|
+
dockLabel: "Navegaci\xF3n principal",
|
|
215
|
+
weekLabel: "Semana",
|
|
216
|
+
weekPrevious: "Semana anterior",
|
|
217
|
+
weekNext: "Semana siguiente"
|
|
210
218
|
};
|
|
211
219
|
const ptBR = {
|
|
212
220
|
close: "Fechar",
|
|
@@ -310,7 +318,11 @@ const ptBR = {
|
|
|
310
318
|
copied: "Copiado",
|
|
311
319
|
copyValue: "Copiar {value}",
|
|
312
320
|
aiGenerated: "Gerado por IA",
|
|
313
|
-
bottomNav: "Navega\xE7\xE3o principal"
|
|
321
|
+
bottomNav: "Navega\xE7\xE3o principal",
|
|
322
|
+
dockLabel: "Navega\xE7\xE3o principal",
|
|
323
|
+
weekLabel: "Semana",
|
|
324
|
+
weekPrevious: "Semana anterior",
|
|
325
|
+
weekNext: "Pr\xF3xima semana"
|
|
314
326
|
};
|
|
315
327
|
const dsCatalogs = { en, es, "pt-BR": ptBR };
|
|
316
328
|
function resolveDsLocale(tag) {
|
package/dist/styles.css
CHANGED
|
@@ -295,6 +295,8 @@
|
|
|
295
295
|
/* --ds-on-soft (OPCIONAL): texto sobre el fondo suave de un estado (Alert, Banner, Badge y StatusBadge suaves).
|
|
296
296
|
* Sin definir, cada tono usa su color. Un tema cuyos tonos no llegan a AA sobre su fondo suave la pone en
|
|
297
297
|
* tinta (var(--foreground)); el color del estado queda en el icono y el borde. El doctor la mide. */
|
|
298
|
+
/* Variante `cta` del botón (OPCIONAL): sin definir, igual que el primario.
|
|
299
|
+
* --ds-cta-bg · --ds-cta-fg · --ds-cta-hover (fondo al pasar) */
|
|
298
300
|
--ds-button-disabled-opacity: var(--ds-disabled-opacity); /* botón desactivado: 1 si el tema lo pinta con color */
|
|
299
301
|
/* Desactivado CON COLOR (opcional): sin definir, cada variante conserva su color y se atenúa con la
|
|
300
302
|
* opacidad. Un tema que lo quiera define las tres y pone --ds-button-disabled-opacity: 1.
|
|
@@ -564,6 +566,28 @@
|
|
|
564
566
|
--ds-strength-segment-h: 0.3125rem;
|
|
565
567
|
--ds-strength-gap: 2px;
|
|
566
568
|
--ds-strength-radius: var(--ds-radius-track);
|
|
569
|
+
/* Dock (lupa), AnimatedNumber, WeekStrip, MediaCard, CardStack */
|
|
570
|
+
--ds-dock-bg: var(--sidebar);
|
|
571
|
+
--ds-dock-fg: var(--sidebar-foreground);
|
|
572
|
+
--ds-dock-radius: var(--ds-radius-2xl);
|
|
573
|
+
--ds-dock-pad: 0.5rem;
|
|
574
|
+
--ds-dock-gap: 0.25rem;
|
|
575
|
+
--ds-dock-item: 2.75rem; /* lado del botón en reposo */
|
|
576
|
+
--ds-dock-item-radius: var(--ds-radius-lg);
|
|
577
|
+
--ds-dock-active-bg: var(--sidebar-primary);
|
|
578
|
+
--ds-dock-active-fg: var(--sidebar-primary-foreground);
|
|
579
|
+
--ds-dock-max-scale: 1.35; /* crecimiento bajo el cursor (1 = sin lupa) */
|
|
580
|
+
--ds-dock-reach: 2.3; /* alcance de la lupa, en botones */
|
|
581
|
+
--ds-dock-shadow: 0 0 #0000;
|
|
582
|
+
--ds-odometer-duration: var(--ds-motion-slow);
|
|
583
|
+
--ds-odometer-ease: var(--ds-ease-enter);
|
|
584
|
+
--ds-odometer-stagger: 40ms; /* retraso entre ruedas, de derecha a izquierda */
|
|
585
|
+
--ds-week-gap: 0.375rem;
|
|
586
|
+
--ds-week-day-radius: var(--ds-radius-lg);
|
|
587
|
+
--ds-media-aspect: 16 / 10;
|
|
588
|
+
--ds-media-zoom: 1.04; /* ampliación de la imagen al pasar (1 = ninguna) */
|
|
589
|
+
--ds-stack-offset: 0.75rem; /* cuánto asoma cada tarjeta de detrás */
|
|
590
|
+
--ds-stack-scale-step: 0.05; /* cuánto más pequeña es cada una */
|
|
567
591
|
--ds-step-dot: 0.75rem; /* StepDots */
|
|
568
592
|
--ds-step-dot-active-w: 2rem;
|
|
569
593
|
--ds-step-dot-gap: 0.75rem;
|
|
@@ -605,6 +629,9 @@
|
|
|
605
629
|
--ds-field-backdrop: none;
|
|
606
630
|
--ds-sidebar-backdrop: none;
|
|
607
631
|
--ds-page-backdrop: none;
|
|
632
|
+
/* OPCIONALES (sin definir = sin efecto): --ds-page-grain (background-image encima del fondo, p. ej. ruido SVG),
|
|
633
|
+
* --ds-page-grain-size (tamaño del mosaico), --ds-card-bg-image (background-image de tarjetas y paneles),
|
|
634
|
+
* --ds-accent-font · --ds-accent-style · --ds-accent-color (palabra de énfasis <em> dentro de un título). */
|
|
608
635
|
|
|
609
636
|
/* ── SIDEBAR: ANATOMÍA ──────────────────────────────────────────────────
|
|
610
637
|
* pad: hueco entre la barra y el borde de la ventana (0 = pegada al borde).
|
|
@@ -838,9 +865,9 @@
|
|
|
838
865
|
|
|
839
866
|
body {
|
|
840
867
|
@apply bg-background text-foreground font-sans m-0 antialiased;
|
|
841
|
-
background-image: var(--ds-page-backdrop);
|
|
868
|
+
background-image: var(--ds-page-grain, none), var(--ds-page-backdrop);
|
|
842
869
|
background-attachment: fixed;
|
|
843
|
-
background-size: cover;
|
|
870
|
+
background-size: var(--ds-page-grain-size, cover), cover;
|
|
844
871
|
}
|
|
845
872
|
|
|
846
873
|
a {
|
|
@@ -922,10 +949,18 @@
|
|
|
922
949
|
[data-slot='stat'][data-variant='card'] {
|
|
923
950
|
@apply rounded-card shadow-card ring-0;
|
|
924
951
|
border: var(--ds-rule-w) solid var(--border);
|
|
952
|
+
background-image: var(--ds-card-bg-image, none);
|
|
925
953
|
-webkit-backdrop-filter: var(--ds-card-backdrop);
|
|
926
954
|
backdrop-filter: var(--ds-card-backdrop);
|
|
927
955
|
}
|
|
928
956
|
|
|
957
|
+
/* Palabra de énfasis en un título: <h1>Hola, <em>Ana</em></h1>. Sin variables, la cursiva de siempre. */
|
|
958
|
+
:is(h1, h2, h3, [data-slot='page-header-title']) em {
|
|
959
|
+
font-family: var(--ds-accent-font, inherit);
|
|
960
|
+
font-style: var(--ds-accent-style, italic);
|
|
961
|
+
color: var(--ds-accent-color, inherit);
|
|
962
|
+
}
|
|
963
|
+
|
|
929
964
|
/*
|
|
930
965
|
* Estados de interacción, resueltos UNA vez para toda la aplicación. La lista
|
|
931
966
|
* de roles cubre lo que Base UI renderiza sin <button>: opciones de menú y
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* TEMA lagoon — pino profundo, jade vivo y un único acento cálido (albaricoque).
|
|
3
|
+
*
|
|
4
|
+
* Personalidad: lienzo verde muy claro (día) / casi negro verdoso (noche), tarjetas
|
|
5
|
+
* grandes y redondeadas con sombra larga y suave, y un LATERAL («dock») de pino oscuro
|
|
6
|
+
* que lo es en las dos pieles. Aurora de fondo en tres manchas. Movimiento con muelle:
|
|
7
|
+
* las superficies llegan primero y su contenido sube después.
|
|
8
|
+
*
|
|
9
|
+
* Estructura del fichero:
|
|
10
|
+
* 1. Variables claras (:root) y oscuras (.dark) — el CONTRATO del tema.
|
|
11
|
+
* 2. Variables de la personalidad (movimiento, sombras compuestas).
|
|
12
|
+
* 3. Capa de PERSONALIDAD — reglas sobre `data-slot`/`data-variant`… escritas solo
|
|
13
|
+
* con variables. Va SIN capa para ganar a las utilidades de los componentes.
|
|
14
|
+
*
|
|
15
|
+
* Variables `--lg-*`: privadas de este tema (no son contrato).
|
|
16
|
+
* Importar DESPUÉS de la estructura. Fuentes: `lagoon.fonts.css`, lo primero del CSS.
|
|
17
|
+
*
|
|
18
|
+
* Pendiente (necesita añadir huecos al núcleo; ver la guía del tema): grano, palabra
|
|
19
|
+
* en serif cursiva, entrada con perspectiva, borde luminoso y variante `cta` del botón.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/* ── 1. VARIABLES · PIEL CLARA ───────────────────────────────────────────── */
|
|
23
|
+
:root {
|
|
24
|
+
/* Movimiento automático (orbital-ds/motion.css): tipo de entrada por grupo; lo describe la ficha (motion.auto) */
|
|
25
|
+
--ds-enter-surfaces: ds-auto-enter;
|
|
26
|
+
--ds-enter-notices: ds-auto-pop;
|
|
27
|
+
--ds-enter-headers: ds-auto-enter;
|
|
28
|
+
--ds-enter-rows: ds-auto-enter;
|
|
29
|
+
--radius: 18px;
|
|
30
|
+
|
|
31
|
+
/* Tipografía: Geist en todo */
|
|
32
|
+
--ds-font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
33
|
+
--ds-font-display: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
34
|
+
--ds-font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
|
|
35
|
+
--ds-title-weight: 600;
|
|
36
|
+
--ds-button-weight: 600;
|
|
37
|
+
--ds-heading-tracking: -0.02em;
|
|
38
|
+
|
|
39
|
+
/* Lateral: raíl de iconos, flotante */
|
|
40
|
+
--ds-sidebar-icon: 1.25rem;
|
|
41
|
+
--ds-sidebar-icon-stroke: 1.75;
|
|
42
|
+
--ds-sidebar-rail-w: 5rem;
|
|
43
|
+
--ds-sidebar-rail-item: 3rem;
|
|
44
|
+
--ds-sidebar-logo: 2.5rem;
|
|
45
|
+
--ds-sidebar-sep-inset: 0.75rem;
|
|
46
|
+
|
|
47
|
+
/* Color */
|
|
48
|
+
--background: #f3f6f4;
|
|
49
|
+
--foreground: #0b211c;
|
|
50
|
+
|
|
51
|
+
--card: #fdfefd;
|
|
52
|
+
--card-foreground: #0b211c;
|
|
53
|
+
--popover: #fdfefd;
|
|
54
|
+
--popover-foreground: #0b211c;
|
|
55
|
+
|
|
56
|
+
--primary: #0d2f28;
|
|
57
|
+
--primary-foreground: #f1fff9;
|
|
58
|
+
--secondary: #eef3f0;
|
|
59
|
+
--secondary-foreground: #0b211c;
|
|
60
|
+
--muted: #eef3f0;
|
|
61
|
+
--muted-foreground: #526860;
|
|
62
|
+
--accent: #dbf6ec;
|
|
63
|
+
--accent-foreground: #0a6a57;
|
|
64
|
+
--destructive: #b52a2f;
|
|
65
|
+
--destructive-foreground: #ffffff;
|
|
66
|
+
|
|
67
|
+
--border: #d7e1dc;
|
|
68
|
+
--input: #c3d2ca;
|
|
69
|
+
--ring: #0b8a70;
|
|
70
|
+
|
|
71
|
+
--chart-1: #00846f;
|
|
72
|
+
--chart-2: #34c29b;
|
|
73
|
+
--chart-3: #ee7f45;
|
|
74
|
+
--chart-4: #b6c6bf;
|
|
75
|
+
--chart-5: #3d78c4;
|
|
76
|
+
|
|
77
|
+
/* Lateral: pino oscuro también en la piel clara */
|
|
78
|
+
--sidebar: #0b2b24;
|
|
79
|
+
--sidebar-foreground: #d9f5ea;
|
|
80
|
+
--sidebar-primary: #8fe3c8;
|
|
81
|
+
--sidebar-primary-foreground: #06201a;
|
|
82
|
+
--sidebar-accent: rgba(143, 227, 200, 0.14);
|
|
83
|
+
--sidebar-accent-foreground: #eafff6;
|
|
84
|
+
--sidebar-border: rgba(190, 255, 230, 0.13);
|
|
85
|
+
--sidebar-ring: #8fe3c8;
|
|
86
|
+
|
|
87
|
+
--danger: #b52a2f;
|
|
88
|
+
--danger-soft: #fde8e8;
|
|
89
|
+
--warning: #8f6900;
|
|
90
|
+
--warning-soft: #fdf3d8;
|
|
91
|
+
--success: #0f6e41;
|
|
92
|
+
--success-soft: #dcf4e6;
|
|
93
|
+
--info: #1d6a9f;
|
|
94
|
+
--info-soft: #e1eff8;
|
|
95
|
+
--neutral: #4a625a;
|
|
96
|
+
--neutral-soft: #e6eeea;
|
|
97
|
+
|
|
98
|
+
--link: #0a6a57;
|
|
99
|
+
--link-hover: #07463a;
|
|
100
|
+
--inset: #e3ebe7;
|
|
101
|
+
--inset-foreground: #0b211c;
|
|
102
|
+
--brand: #0b8a70;
|
|
103
|
+
--brand-bright: #34c29b;
|
|
104
|
+
|
|
105
|
+
/* Formas: tarjetas de 24, contenedores de 36, controles en píldora */
|
|
106
|
+
--ds-radius-sm: 10px;
|
|
107
|
+
--ds-radius-md: 14px;
|
|
108
|
+
--ds-radius-lg: 18px;
|
|
109
|
+
--ds-radius-xl: 24px;
|
|
110
|
+
--ds-radius-2xl: 36px;
|
|
111
|
+
--ds-radius-control: 18px;
|
|
112
|
+
--ds-radius-overlay: 28px;
|
|
113
|
+
--ds-radius-button: var(--ds-radius-pill);
|
|
114
|
+
--ds-radius-button-icon: var(--ds-radius-pill);
|
|
115
|
+
--ds-radius-badge: var(--ds-radius-pill);
|
|
116
|
+
--ds-radius-tabs-list: var(--ds-radius-pill);
|
|
117
|
+
--ds-radius-tab: var(--ds-radius-pill);
|
|
118
|
+
|
|
119
|
+
/* Sombras largas y suaves */
|
|
120
|
+
--ds-shadow-card: 0 22px 44px -36px rgba(8, 42, 35, 0.45);
|
|
121
|
+
--ds-shadow-card-hover: 0 28px 50px -34px rgba(8, 42, 35, 0.55);
|
|
122
|
+
--ds-shadow-raised: 0 16px 34px -26px rgba(8, 42, 35, 0.5);
|
|
123
|
+
--ds-shadow-overlay: 0 30px 70px -30px rgba(8, 42, 35, 0.55);
|
|
124
|
+
--ds-shadow-popover: 0 24px 56px -28px rgba(8, 42, 35, 0.55);
|
|
125
|
+
|
|
126
|
+
/* Medidas: controles holgados */
|
|
127
|
+
--ds-control-h-sm: 2.25rem;
|
|
128
|
+
--ds-control-h-md: 2.75rem;
|
|
129
|
+
--ds-control-h-lg: 3rem;
|
|
130
|
+
--ds-button-px-sm: 1rem;
|
|
131
|
+
--ds-button-px-md: 1.375rem;
|
|
132
|
+
--ds-button-px-lg: 1.75rem;
|
|
133
|
+
--ds-field-px: 1.125rem;
|
|
134
|
+
|
|
135
|
+
/* Materiales: sin cristal en las tarjetas; aurora de fondo */
|
|
136
|
+
--ds-card-backdrop: none;
|
|
137
|
+
--ds-page-backdrop:
|
|
138
|
+
radial-gradient(48% 42% at 12% 4%, rgba(47, 207, 164, 0.3), transparent 72%),
|
|
139
|
+
radial-gradient(44% 40% at 96% 30%, rgba(255, 176, 124, 0.26), transparent 72%),
|
|
140
|
+
radial-gradient(52% 46% at 52% 108%, rgba(43, 143, 196, 0.14), transparent 72%);
|
|
141
|
+
|
|
142
|
+
/* Variante cta del botón, palabra de énfasis, grano de fondo */
|
|
143
|
+
--ds-cta-bg: var(--lg-cta);
|
|
144
|
+
--ds-cta-fg: var(--lg-on-cta);
|
|
145
|
+
--ds-cta-hover: color-mix(in oklch, var(--lg-cta) 88%, white);
|
|
146
|
+
--ds-accent-font: 'Instrument Serif', Georgia, serif;
|
|
147
|
+
--ds-accent-style: italic;
|
|
148
|
+
--ds-page-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
|
149
|
+
--ds-page-grain-size: 160px;
|
|
150
|
+
|
|
151
|
+
/* Lateral flotante (dock) */
|
|
152
|
+
--ds-sidebar-pad: 0.75rem;
|
|
153
|
+
--ds-sidebar-radius: var(--ds-radius-2xl);
|
|
154
|
+
--ds-sidebar-shadow: var(--lg-dock-shadow);
|
|
155
|
+
--ds-sidebar-ring: 0px;
|
|
156
|
+
--ds-sidebar-edge: 1px solid var(--sidebar-border);
|
|
157
|
+
--ds-sidebar-item-radius: var(--ds-radius-pill);
|
|
158
|
+
|
|
159
|
+
/* Privadas de lagoon */
|
|
160
|
+
--lg-dock-g: linear-gradient(170deg, color-mix(in oklch, var(--sidebar) 88%, white) 0%, var(--sidebar) 55%, color-mix(in oklch, var(--sidebar) 72%, black) 100%);
|
|
161
|
+
--lg-dock-shadow: 0 24px 48px -28px rgba(3, 26, 20, 0.7), inset 0 1px 0 rgba(190, 255, 230, 0.16);
|
|
162
|
+
--lg-cta: #ffb07c;
|
|
163
|
+
--lg-on-cta: #2b1305;
|
|
164
|
+
--lg-accent-word: #ffc39b;
|
|
165
|
+
--lg-hover-lift: -2px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* ── 1b. VARIABLES · PIEL OSCURA ─────────────────────────────────────────── */
|
|
169
|
+
.dark {
|
|
170
|
+
--background: #040b09;
|
|
171
|
+
--foreground: #e6f5ef;
|
|
172
|
+
|
|
173
|
+
--card: #111e1a;
|
|
174
|
+
--card-foreground: #e6f5ef;
|
|
175
|
+
--popover: #111e1a;
|
|
176
|
+
--popover-foreground: #e6f5ef;
|
|
177
|
+
|
|
178
|
+
--primary: #b5f2dc;
|
|
179
|
+
--primary-foreground: #06201a;
|
|
180
|
+
--secondary: #192924;
|
|
181
|
+
--secondary-foreground: #e6f5ef;
|
|
182
|
+
--muted: #192924;
|
|
183
|
+
--muted-foreground: #96aba2;
|
|
184
|
+
--accent: #173b32;
|
|
185
|
+
--accent-foreground: #7deac9;
|
|
186
|
+
--destructive: #ff7a7f;
|
|
187
|
+
--destructive-foreground: #2a0a0b;
|
|
188
|
+
|
|
189
|
+
--border: #263c35;
|
|
190
|
+
--input: #2d463e;
|
|
191
|
+
--ring: #4fdcb6;
|
|
192
|
+
|
|
193
|
+
--chart-1: #5b96e6;
|
|
194
|
+
--chart-2: #14a688;
|
|
195
|
+
--chart-3: #dc7240;
|
|
196
|
+
--chart-4: #4b615a;
|
|
197
|
+
--chart-5: #5fdcb9;
|
|
198
|
+
|
|
199
|
+
--sidebar: #0b2b24;
|
|
200
|
+
--sidebar-foreground: #d9f5ea;
|
|
201
|
+
--sidebar-primary: #8fe3c8;
|
|
202
|
+
--sidebar-primary-foreground: #06201a;
|
|
203
|
+
--sidebar-accent: rgba(143, 227, 200, 0.14);
|
|
204
|
+
--sidebar-accent-foreground: #eafff6;
|
|
205
|
+
--sidebar-border: rgba(190, 255, 230, 0.13);
|
|
206
|
+
--sidebar-ring: #8fe3c8;
|
|
207
|
+
|
|
208
|
+
--danger: #ff7a7f;
|
|
209
|
+
--danger-soft: #3a1618;
|
|
210
|
+
--warning: #f3c44f;
|
|
211
|
+
--warning-soft: #352a0e;
|
|
212
|
+
--success: #55d795;
|
|
213
|
+
--success-soft: #12301f;
|
|
214
|
+
--info: #7db8e8;
|
|
215
|
+
--info-soft: #14283a;
|
|
216
|
+
--neutral: #a3b8af;
|
|
217
|
+
--neutral-soft: #1f302a;
|
|
218
|
+
|
|
219
|
+
--link: #7deac9;
|
|
220
|
+
--link-hover: #b5f2dc;
|
|
221
|
+
--inset: #0a1512;
|
|
222
|
+
--inset-foreground: #e6f5ef;
|
|
223
|
+
--brand: #4fdcb6;
|
|
224
|
+
--brand-bright: #8fe9cf;
|
|
225
|
+
|
|
226
|
+
--ds-shadow-card: 0 26px 44px -34px #000000;
|
|
227
|
+
--ds-shadow-card-hover: 0 30px 52px -32px #000000;
|
|
228
|
+
--ds-shadow-raised: 0 18px 36px -26px #000000;
|
|
229
|
+
--ds-shadow-overlay: 0 34px 72px -28px #000000;
|
|
230
|
+
--ds-shadow-popover: 0 28px 58px -26px #000000;
|
|
231
|
+
|
|
232
|
+
--ds-page-backdrop:
|
|
233
|
+
radial-gradient(48% 42% at 12% 4%, rgba(47, 207, 164, 0.17), transparent 72%),
|
|
234
|
+
radial-gradient(44% 40% at 96% 30%, rgba(255, 154, 99, 0.1), transparent 72%),
|
|
235
|
+
radial-gradient(52% 46% at 52% 108%, rgba(91, 150, 230, 0.1), transparent 72%);
|
|
236
|
+
|
|
237
|
+
--lg-dock-shadow: 0 26px 48px -28px #000000, inset 0 1px 0 rgba(190, 255, 230, 0.12);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* ── 2. VARIABLES DE LA PERSONALIDAD ─────────────────────────────────────────
|
|
241
|
+
* Lo que las reglas de abajo piden: cámbialo aquí (o en el brand.css de la app),
|
|
242
|
+
* nunca en las reglas. Las `--lg-*` son privadas del tema.
|
|
243
|
+
*/
|
|
244
|
+
:root {
|
|
245
|
+
/* Movimiento: muelle con rebote; las superficies tardan, el resto responde rápido */
|
|
246
|
+
--ds-motion-fast: 160ms;
|
|
247
|
+
--ds-motion-base: 320ms;
|
|
248
|
+
--ds-motion-slow: 700ms;
|
|
249
|
+
--ds-ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
|
|
250
|
+
--ds-ease-enter: cubic-bezier(0.22, 1.12, 0.36, 1);
|
|
251
|
+
--ds-ease-exit: cubic-bezier(0.62, 0, 0.18, 1);
|
|
252
|
+
--ds-ease-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
253
|
+
--ds-motion-distance: 24px;
|
|
254
|
+
--ds-motion-scale: 0.96;
|
|
255
|
+
--ds-motion-blur: 0px;
|
|
256
|
+
--ds-spring-bounce: 0.3;
|
|
257
|
+
--ds-motion-stagger: 75ms;
|
|
258
|
+
--ds-motion-press-scale: 0.96;
|
|
259
|
+
--ds-rule-w: 1px;
|
|
260
|
+
|
|
261
|
+
--ds-shadow-button: 0 0 #0000;
|
|
262
|
+
--ds-shadow-button-hover: 0 14px 28px -18px var(--lg-button-glow);
|
|
263
|
+
--lg-button-glow: rgba(8, 42, 35, 0.75);
|
|
264
|
+
--lg-press-scale: 0.96;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.dark {
|
|
268
|
+
--lg-button-glow: rgba(95, 220, 185, 0.6);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/* Muelles reales (curvas `linear()`) donde el navegador las dibuja; si no, quedan las de arriba */
|
|
272
|
+
@supports (animation-timing-function: linear(0, 1)) {
|
|
273
|
+
:root {
|
|
274
|
+
--ds-ease-enter: linear(0, 0.052, 0.173, 0.326, 0.482, 0.626, 0.749, 0.847, 0.92, 0.972, 1.007, 1.027, 1.036, 1.038, 1.036, 1.031, 1.025, 1.019, 1.014, 1.009, 1.006, 1.003, 1.001, 1, 0.999, 0.999, 1);
|
|
275
|
+
--ds-ease-overshoot: linear(0, 0.046, 0.164, 0.321, 0.493, 0.661, 0.81, 0.934, 1.028, 1.093, 1.131, 1.147, 1.145, 1.131, 1.109, 1.084, 1.059, 1.036, 1.016, 1.001, 0.989, 0.982, 0.979, 0.978, 0.98, 0.983, 0.986, 0.99, 0.993, 0.997, 0.999, 1.001, 1.002, 1.003, 1);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/* ── 3. 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 {
|
|
284
|
+
/* Botones: píldora que se eleva al pasar y se aplasta al pulsar */
|
|
285
|
+
[data-slot='button'] {
|
|
286
|
+
transition: all var(--ds-motion-base) var(--ds-ease-overshoot);
|
|
287
|
+
}
|
|
288
|
+
[data-slot='button']:hover:not(:disabled) {
|
|
289
|
+
transform: translateY(var(--lg-hover-lift));
|
|
290
|
+
}
|
|
291
|
+
[data-slot='button']:active:not(:disabled) {
|
|
292
|
+
transform: scale(var(--lg-press-scale));
|
|
293
|
+
}
|
|
294
|
+
[data-slot='button'][data-variant='default']:hover:not(:disabled) {
|
|
295
|
+
box-shadow: var(--ds-shadow-button-hover);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* Tarjetas: filete fino; se elevan con el muelle */
|
|
299
|
+
[data-slot='card'],
|
|
300
|
+
[data-slot='panel'][data-variant='default'],
|
|
301
|
+
[data-slot='stat'][data-variant='card'],
|
|
302
|
+
[data-slot='item'][data-variant='card'] {
|
|
303
|
+
border: var(--ds-rule-w) solid var(--border);
|
|
304
|
+
transition:
|
|
305
|
+
transform var(--ds-motion-slow) var(--ds-ease-enter),
|
|
306
|
+
box-shadow var(--ds-motion-slow) var(--ds-ease-enter);
|
|
307
|
+
}
|
|
308
|
+
[data-slot='card']:hover,
|
|
309
|
+
[data-slot='panel'][data-variant='default']:hover,
|
|
310
|
+
[data-slot='stat'][data-variant='card']:hover,
|
|
311
|
+
[data-slot='item'][data-variant='card']:hover {
|
|
312
|
+
transform: translateY(var(--lg-hover-lift));
|
|
313
|
+
box-shadow: var(--ds-shadow-card-hover);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/* Lateral (dock): degradado de pino oscuro en las dos pieles */
|
|
317
|
+
[data-slot='sidebar-inner'] {
|
|
318
|
+
background-image: var(--lg-dock-g);
|
|
319
|
+
color: var(--sidebar-foreground);
|
|
320
|
+
}
|
|
321
|
+
[data-sidebar='menu-button'][data-active='true'] {
|
|
322
|
+
background: var(--sidebar-primary);
|
|
323
|
+
color: var(--sidebar-primary-foreground);
|
|
324
|
+
}
|
|
325
|
+
[data-sidebar='menu-button']:hover:not([data-active='true']) {
|
|
326
|
+
background: var(--sidebar-accent);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/* Conmutadores (familia «toggle»): píldora con el activo relleno */
|
|
330
|
+
[data-slot='toggle'],
|
|
331
|
+
[data-slot='toggle-group-item'] {
|
|
332
|
+
border-radius: var(--ds-radius-pill);
|
|
333
|
+
}
|
|
334
|
+
[data-slot='tabs-list'] {
|
|
335
|
+
border: var(--ds-rule-w) solid var(--border);
|
|
336
|
+
}
|
|
337
|
+
[data-slot='tabs-trigger'][data-active],
|
|
338
|
+
[data-slot='toggle'][aria-pressed='true'],
|
|
339
|
+
[data-slot='toggle-group-item'][aria-pressed='true'] {
|
|
340
|
+
background: var(--primary);
|
|
341
|
+
color: var(--primary-foreground);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/* Esqueletos: visibles sobre la tarjeta casi blanca */
|
|
345
|
+
[data-slot='skeleton'] {
|
|
346
|
+
background: color-mix(in oklch, var(--foreground) 9%, transparent);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Tema `lagoon` — guía de diseño
|
|
2
|
+
|
|
3
|
+
## Esencia
|
|
4
|
+
Un tablero sereno y moderno: **verde pino, jade y menta** con un único acento cálido (albaricoque), mucho aire,
|
|
5
|
+
tarjetas grandes y un **lateral oscuro flotante** que lo es en las dos pieles. El movimiento es de muelle: las
|
|
6
|
+
superficies llegan primero y su contenido sube después.
|
|
7
|
+
|
|
8
|
+
## Gesto firma
|
|
9
|
+
- **Dock de pino oscuro** (claro y oscuro): degradado vertical de pino, esquinas de 36 px, destino activo en menta.
|
|
10
|
+
- **Tarjetas de 24 px** con filete fino y sombra larga y suave; al pasar el cursor se elevan con muelle.
|
|
11
|
+
- **Aurora de fondo**: tres manchas (menta, albaricoque, azul) por `--ds-page-backdrop`.
|
|
12
|
+
- **Jerarquía en dos tonos**: pino y jade como base; el albaricoque es el único acento cálido (hoy `--lg-cta`).
|
|
13
|
+
- **Píldoras**: botones, etiquetas, pestañas y conmutadores; el botón se eleva al pasar y se aplasta al pulsar.
|
|
14
|
+
|
|
15
|
+
## Movimiento
|
|
16
|
+
- Importa `orbital-ds/motion.css` después del tema; sin ese import no anima nada.
|
|
17
|
+
- Entradas (`motion.auto`): superficies `ds-auto-enter`, avisos `ds-auto-pop`, cabeceras y filas `ds-auto-enter`.
|
|
18
|
+
- Muelles reales con `linear()` donde el navegador los dibuja; si no, curvas con rebote equivalentes.
|
|
19
|
+
- Para animar a mano, `DsMotionProvider` + `useDsMotion()` (Motion); heredan ritmo y curvas de este tema.
|
|
20
|
+
- Movimiento reducido: lo detiene la estructura, no el tema.
|
|
21
|
+
|
|
22
|
+
## Paleta
|
|
23
|
+
- Claro: lienzo `#F3F6F4`, tarjeta `#FDFEFD`, tinta `#0B211C`, primario `#0D2F28`, acento `#DBF6EC`, jade `#0B8A70`.
|
|
24
|
+
- Oscuro: lienzo `#040B09`, tarjeta `#111E1A`, tinta `#E6F5EF`, primario `#B5F2DC`, jade `#4FDCB6`.
|
|
25
|
+
- Dock (ambas pieles): `#0B2B24`, menta `#8FE3C8` para lo activo.
|
|
26
|
+
- Gráficos: jade, menta, albaricoque, gris verdoso y azul; en oscuro el azul pasa a la serie 1.
|
|
27
|
+
|
|
28
|
+
## Evita
|
|
29
|
+
- Colores escritos a mano fuera de `brand.css`; el tema ya trae su paleta.
|
|
30
|
+
- Más de un acento cálido por vista.
|
|
31
|
+
- Texto blanco sobre albaricoque (usa `--lg-on-cta`).
|
|
32
|
+
|
|
33
|
+
## Accesibilidad
|
|
34
|
+
AA en los pares principales (lo mide `pnpm check:ds`). `muted-foreground` está ajustado para llegar a 4,5:1 sobre el
|
|
35
|
+
lienzo y las tarjetas.
|
|
36
|
+
|
|
37
|
+
## Estado de los valores
|
|
38
|
+
- Tomados del diseño de referencia: paleta, radios, sombras, aurora, dock y coreografía.
|
|
39
|
+
- Aproximados: el degradado del dock y las manchas de la aurora (se expresan con las variables del núcleo).
|
|
40
|
+
- Resueltos con huecos del núcleo: grano (`--ds-page-grain`), palabra en serif cursiva (`<em>` en un título) y
|
|
41
|
+
variante `cta` del botón (albaricoque).
|
|
42
|
+
- Pendientes: entrada con perspectiva y borde luminoso que sigue al cursor (necesitan JS o una entrada nueva).
|
|
43
|
+
|
|
44
|
+
## Tu marca sobre lagoon
|
|
45
|
+
- Modo recomendado: **solo primario** (`--mode primary`): el primario, el foco, el enlace, el destino activo y la
|
|
46
|
+
serie 1 toman tu color sobre la paleta verde del tema.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "lagoon",
|
|
3
|
+
"label": "Lagoon",
|
|
4
|
+
"essence": "Pino profundo, jade vivo y un único acento cálido: tarjetas grandes, lateral oscuro flotante y movimiento con muelle.",
|
|
5
|
+
"conformance": "strict",
|
|
6
|
+
"branding": "primary",
|
|
7
|
+
"signature": [
|
|
8
|
+
"lateral (dock) de pino oscuro en claro y en oscuro",
|
|
9
|
+
"tarjetas de 24 px con sombra larga y suave que se elevan con muelle",
|
|
10
|
+
"aurora de fondo en tres manchas (menta, albaricoque, azul)",
|
|
11
|
+
"entrada en cascada: la superficie llega primero y su contenido sube después"
|
|
12
|
+
],
|
|
13
|
+
"fonts": {
|
|
14
|
+
"display": "Geist",
|
|
15
|
+
"body": "Geist",
|
|
16
|
+
"file": "lagoon.fonts.css",
|
|
17
|
+
"distributable": true
|
|
18
|
+
},
|
|
19
|
+
"palette": {
|
|
20
|
+
"light": {
|
|
21
|
+
"background": "#F3F6F4",
|
|
22
|
+
"foreground": "#0B211C",
|
|
23
|
+
"primary": "#0D2F28"
|
|
24
|
+
},
|
|
25
|
+
"dark": {
|
|
26
|
+
"background": "#040B09",
|
|
27
|
+
"primary": "#B5F2DC"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"radii": [
|
|
31
|
+
10,
|
|
32
|
+
14,
|
|
33
|
+
18,
|
|
34
|
+
24,
|
|
35
|
+
36
|
|
36
|
+
],
|
|
37
|
+
"references": [
|
|
38
|
+
{
|
|
39
|
+
"name": "Dashboard v22 (Lagoon)",
|
|
40
|
+
"tookFromIt": "paleta día y noche, radios, sombras, aurora, dock oscuro y coreografía de entrada",
|
|
41
|
+
"source": "diseño de referencia interno"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"status": {
|
|
45
|
+
"verified": [],
|
|
46
|
+
"approximate": [
|
|
47
|
+
"el degradado del dock y la aurora se reproducen con las variables del núcleo"
|
|
48
|
+
],
|
|
49
|
+
"designed": [],
|
|
50
|
+
"pending": [
|
|
51
|
+
"entrada con perspectiva (rotateX)",
|
|
52
|
+
"borde luminoso que sigue al cursor"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"guide": "lagoon.guide.md",
|
|
56
|
+
"motion": {
|
|
57
|
+
"about": "muelle con rebote; las superficies tardan en asentarse y el resto responde rápido",
|
|
58
|
+
"durations": {
|
|
59
|
+
"fast": "160ms",
|
|
60
|
+
"base": "320ms",
|
|
61
|
+
"slow": "700ms"
|
|
62
|
+
},
|
|
63
|
+
"ease": {
|
|
64
|
+
"standard": "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
65
|
+
"enter": "cubic-bezier(0.22, 1.12, 0.36, 1)",
|
|
66
|
+
"exit": "cubic-bezier(0.62, 0, 0.18, 1)"
|
|
67
|
+
},
|
|
68
|
+
"choreography": {
|
|
69
|
+
"motion-distance": "24px",
|
|
70
|
+
"motion-scale": "0.96",
|
|
71
|
+
"motion-blur": "0px",
|
|
72
|
+
"spring-bounce": "0.3",
|
|
73
|
+
"motion-stagger": "75ms",
|
|
74
|
+
"motion-press-scale": "0.96"
|
|
75
|
+
},
|
|
76
|
+
"auto": {
|
|
77
|
+
"about": "las tarjetas suben, los avisos crecen, las cabeceras y las filas suben en cascada",
|
|
78
|
+
"surfaces": "ds-auto-enter",
|
|
79
|
+
"notices": "ds-auto-pop",
|
|
80
|
+
"headers": "ds-auto-enter",
|
|
81
|
+
"rows": "ds-auto-enter"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|