orbital-ds 0.3.0 → 0.5.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 +3 -0
- package/README.md +6 -0
- package/contract.json +82 -2
- package/dist/themes/friendly.css +310 -0
- package/dist/themes/friendly.fonts.css +2 -0
- package/dist/themes/friendly.scoped.css +310 -0
- package/dist/themes/twitter.css +290 -0
- package/dist/themes/twitter.fonts.css +6 -0
- package/dist/themes/twitter.scoped.css +290 -0
- package/dist/themes/zyro.css +38 -0
- package/dist/themes/zyro.scoped.css +38 -0
- package/dist/ui/attachment.d.ts +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/input-group.d.ts +1 -1
- package/dist/ui/item.d.ts +1 -1
- package/dist/ui/marker.d.ts +1 -1
- package/docs/CONTRACT.md +29 -0
- package/package.json +6 -4
- package/scripts/doctor.mjs +22 -0
- package/scripts/init.mjs +55 -0
package/AGENTS.md
CHANGED
|
@@ -22,6 +22,9 @@ adivinar. Lee antes: `README.md`, `docs/CONTRACT.md`, `contract.json` y
|
|
|
22
22
|
foco incluido).
|
|
23
23
|
6. **Un tema cumple el contrato completo** (`contract.json`) y define en `:root` todo
|
|
24
24
|
`--ds-*` que defina el tema base.
|
|
25
|
+
7. **La marca de una app vive en SU `brand.css`**, no en el tema del paquete. Para
|
|
26
|
+
personalizar una app (color, radio, fuentes) edita ese fichero; nunca `node_modules` ni
|
|
27
|
+
los temas. `pnpm exec orbital-ds-init` lo crea sin sobrescribir.
|
|
25
28
|
|
|
26
29
|
## Cómo cambiar el aspecto
|
|
27
30
|
|
package/README.md
CHANGED
|
@@ -32,6 +32,12 @@ import { Button } from 'orbital-ds/ui/button';
|
|
|
32
32
|
Cambiar de identidad = cambiar `qratia` por `zyro` en esas dos líneas de tema/fuentes.
|
|
33
33
|
Detalle del contrato, tokens y reglas de nombres en [`docs/CONTRACT.md`](docs/CONTRACT.md).
|
|
34
34
|
|
|
35
|
+
## Marca de una app
|
|
36
|
+
|
|
37
|
+
Lo propio de cada app (color principal, acento, radio, fuentes) va en **su** `src/brand.css`,
|
|
38
|
+
importado después del tema. Ninguna actualización de orbital-ds lo toca. `pnpm exec orbital-ds-init`
|
|
39
|
+
lo crea la primera vez. Detalle en [`docs/CONTRACT.md`](docs/CONTRACT.md).
|
|
40
|
+
|
|
35
41
|
## Regla
|
|
36
42
|
|
|
37
43
|
Ningún componente lleva valores propios (colores, medidas, sombras, z-index, duraciones):
|
package/contract.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version":
|
|
2
|
+
"version": 3,
|
|
3
3
|
"descripcion": "Contrato de tema de orbital-ds: todo tema (themes/*.css) debe definir estos tokens en :root. Nombres en inglés estándar; los de shadcn sin prefijo; los propios con --ds-. baseTheme es el tema aplicado siempre (los demás se aplican encima, con ámbito).",
|
|
4
4
|
"root": [
|
|
5
5
|
"radius",
|
|
@@ -78,5 +78,85 @@
|
|
|
78
78
|
"link"
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
|
-
"baseTheme": "qratia"
|
|
81
|
+
"baseTheme": "qratia",
|
|
82
|
+
"brand": {
|
|
83
|
+
"descripcion": "Grupo ESTABLE de variables que una app suele personalizar en su fichero de marca (brand.css). Renombrar o quitar una es versión MAYOR. Todas están también en `root` salvo las --ds-*.",
|
|
84
|
+
"tokens": [
|
|
85
|
+
{
|
|
86
|
+
"name": "primary",
|
|
87
|
+
"example": "oklch(0.55 0.2 260)",
|
|
88
|
+
"about": "color de acción principal (botones, foco)"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "primary-foreground",
|
|
92
|
+
"example": "#ffffff",
|
|
93
|
+
"about": "texto sobre el color principal (comprueba el contraste)"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "ring",
|
|
97
|
+
"example": "oklch(0.55 0.2 260)",
|
|
98
|
+
"about": "anillo de foco; suele ir igual que primary"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "link",
|
|
102
|
+
"example": "oklch(0.5 0.15 260)",
|
|
103
|
+
"about": "texto de enlace: más oscuro que primary para tener contraste"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "link-hover",
|
|
107
|
+
"example": "oklch(0.42 0.13 260)",
|
|
108
|
+
"about": "enlace al pasar el ratón"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "brand",
|
|
112
|
+
"example": "oklch(0.7 0.13 220)",
|
|
113
|
+
"about": "acento de marca (detalles, selección)"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "brand-bright",
|
|
117
|
+
"example": "oklch(0.8 0.13 220)",
|
|
118
|
+
"about": "acento de marca sobre fondos oscuros"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "sidebar-primary",
|
|
122
|
+
"example": "oklch(0.8 0.13 220)",
|
|
123
|
+
"about": "acento dentro del sidebar"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "sidebar-primary-foreground",
|
|
127
|
+
"example": "#04121c",
|
|
128
|
+
"about": "texto sobre el acento del sidebar"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "sidebar-accent-foreground",
|
|
132
|
+
"example": "oklch(0.85 0.1 220)",
|
|
133
|
+
"about": "texto del destino activo del sidebar"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "accent-foreground",
|
|
137
|
+
"example": "oklch(0.5 0.15 260)",
|
|
138
|
+
"about": "texto sobre superficies de acento suave"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "chart-1",
|
|
142
|
+
"example": "oklch(0.55 0.2 260)",
|
|
143
|
+
"about": "primera serie de las gráficas: la marca"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "radius",
|
|
147
|
+
"example": "12px",
|
|
148
|
+
"about": "redondez base (en temas cuya rampa deriva de ella)"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "ds-font-sans",
|
|
152
|
+
"example": "'Inter', system-ui, sans-serif",
|
|
153
|
+
"about": "fuente del cuerpo (carga la fuente en tu app)"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "ds-font-display",
|
|
157
|
+
"example": "'Sora', system-ui, sans-serif",
|
|
158
|
+
"about": "fuente de los titulares"
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
82
162
|
}
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* TEMA friendly — «SaaS amable con personalidad».
|
|
3
|
+
*
|
|
4
|
+
* Referencia: la interfaz de SerpWatch (v2). Se conserva lo que le da carácter y se
|
|
5
|
+
* corrigen sus defectos. Valores LEÍDOS de la referencia: lienzo #F5F6FC, tinta índigo
|
|
6
|
+
* #232450, fuente Rubik, sombras teñidas de índigo, botón en píldora en mayúsculas con
|
|
7
|
+
* brillo de color debajo, naranja #FBB232 como segundo acento, tarjetas de esquina
|
|
8
|
+
* pequeña frente a botones del todo redondos.
|
|
9
|
+
*
|
|
10
|
+
* Mejoras respecto a la referencia:
|
|
11
|
+
* - El botón primario usa un periwinkle algo más oscuro (#5F6EC9) para que el texto
|
|
12
|
+
* blanco alcance contraste AA (el original, #7987CE, queda en torno a 3:1); el
|
|
13
|
+
* original se conserva como brillo (`--brand-bright`).
|
|
14
|
+
* - Texto atenuado y de estado con contraste AA.
|
|
15
|
+
*
|
|
16
|
+
* Importar DESPUÉS de la estructura. Variables `--zf-*`: privadas de este tema.
|
|
17
|
+
* Fuentes: `friendly.fonts.css` (Rubik), lo primero del CSS de la app.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/* ── VARIABLES · PIEL CLARA ──────────────────────────────────────────────── */
|
|
21
|
+
:root {
|
|
22
|
+
--radius: 8px;
|
|
23
|
+
|
|
24
|
+
--ds-font-sans: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
25
|
+
--ds-font-display: var(--ds-font-sans);
|
|
26
|
+
--ds-font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
|
|
27
|
+
--ds-heading-tracking: normal;
|
|
28
|
+
|
|
29
|
+
/* Color: lienzo azulado, tinta índigo, acento periwinkle + naranja cálido */
|
|
30
|
+
--background: #f5f6fc;
|
|
31
|
+
--foreground: #232450;
|
|
32
|
+
|
|
33
|
+
--card: #ffffff;
|
|
34
|
+
--card-foreground: #232450;
|
|
35
|
+
--popover: #ffffff;
|
|
36
|
+
--popover-foreground: #232450;
|
|
37
|
+
|
|
38
|
+
--primary: #5f6ec9;
|
|
39
|
+
--primary-foreground: #ffffff;
|
|
40
|
+
--secondary: #e8eaf8;
|
|
41
|
+
--secondary-foreground: #232450;
|
|
42
|
+
--muted: #eef0fa;
|
|
43
|
+
--muted-foreground: #6b6d96;
|
|
44
|
+
--accent: rgba(55, 132, 247, 0.14);
|
|
45
|
+
--accent-foreground: #2a64c4;
|
|
46
|
+
--destructive: #e5484d;
|
|
47
|
+
--destructive-foreground: #ffffff;
|
|
48
|
+
|
|
49
|
+
--border: rgba(35, 36, 80, 0.08);
|
|
50
|
+
--input: rgba(35, 36, 80, 0.18);
|
|
51
|
+
--ring: #5f6ec9;
|
|
52
|
+
|
|
53
|
+
--chart-1: #5f6ec9;
|
|
54
|
+
--chart-2: #fbb232;
|
|
55
|
+
--chart-3: #1db87a;
|
|
56
|
+
--chart-4: #e5484d;
|
|
57
|
+
--chart-5: #3784f7;
|
|
58
|
+
|
|
59
|
+
--sidebar: #ffffff;
|
|
60
|
+
--sidebar-foreground: #3a3b6b;
|
|
61
|
+
--sidebar-primary: #5f6ec9;
|
|
62
|
+
--sidebar-primary-foreground: #ffffff;
|
|
63
|
+
--sidebar-accent: rgba(55, 132, 247, 0.16);
|
|
64
|
+
--sidebar-accent-foreground: #2a64c4;
|
|
65
|
+
--sidebar-border: rgba(35, 36, 80, 0.07);
|
|
66
|
+
--sidebar-ring: #5f6ec9;
|
|
67
|
+
|
|
68
|
+
--danger: #c7343a;
|
|
69
|
+
--danger-soft: rgba(229, 72, 77, 0.12);
|
|
70
|
+
--warning: #9a5b00;
|
|
71
|
+
--warning-soft: rgba(251, 178, 50, 0.24);
|
|
72
|
+
--success: #0a7d55;
|
|
73
|
+
--success-soft: rgba(29, 184, 122, 0.14);
|
|
74
|
+
--info: #2a64c4;
|
|
75
|
+
--info-soft: rgba(55, 132, 247, 0.14);
|
|
76
|
+
--neutral: #6b6d96;
|
|
77
|
+
--neutral-soft: rgba(35, 36, 80, 0.07);
|
|
78
|
+
|
|
79
|
+
--link: #2a64c4;
|
|
80
|
+
--link-hover: #1f4f9e;
|
|
81
|
+
--inset: #eef0fa;
|
|
82
|
+
--inset-foreground: #232450;
|
|
83
|
+
--brand: #5f6ec9;
|
|
84
|
+
--brand-bright: #7987ce;
|
|
85
|
+
|
|
86
|
+
/* Formas: superficies de esquina pequeña; las acciones, del todo redondas */
|
|
87
|
+
--ds-radius-sm: 4px;
|
|
88
|
+
--ds-radius-md: 6px;
|
|
89
|
+
--ds-radius-lg: 8px;
|
|
90
|
+
--ds-radius-xl: 10px;
|
|
91
|
+
--ds-radius-2xl: 14px;
|
|
92
|
+
--ds-radius-control: 10px;
|
|
93
|
+
--ds-radius-overlay: 14px;
|
|
94
|
+
|
|
95
|
+
/* Sombras suaves TEÑIDAS de índigo (nunca negras) */
|
|
96
|
+
--ds-shadow-card: 0 8px 20px rgba(0, 4, 131, 0.04);
|
|
97
|
+
--ds-shadow-card-hover: 0 10px 26px rgba(0, 4, 131, 0.09);
|
|
98
|
+
--ds-shadow-control: 0 0 #0000;
|
|
99
|
+
--ds-shadow-raised: 0 8px 20px rgba(0, 4, 131, 0.06);
|
|
100
|
+
--ds-shadow-overlay: 0 16px 40px rgba(35, 36, 80, 0.16);
|
|
101
|
+
--ds-shadow-popover: 0 16px 40px rgba(35, 36, 80, 0.16);
|
|
102
|
+
|
|
103
|
+
/* Medidas: controles de 38px, botones generosos */
|
|
104
|
+
--ds-control-h-sm: 2rem;
|
|
105
|
+
--ds-control-h-md: 2.375rem;
|
|
106
|
+
--ds-control-h-lg: 2.75rem;
|
|
107
|
+
--ds-button-px-sm: 1rem;
|
|
108
|
+
--ds-button-px-md: 1.5rem;
|
|
109
|
+
--ds-button-px-lg: 2rem;
|
|
110
|
+
--ds-field-px: 0.875rem;
|
|
111
|
+
--ds-card-spacing: 1.25rem;
|
|
112
|
+
--ds-card-spacing-sm: 1rem;
|
|
113
|
+
|
|
114
|
+
/* Sin cristal: material plano y luminoso */
|
|
115
|
+
--ds-card-backdrop: none;
|
|
116
|
+
--ds-overlay-backdrop: none;
|
|
117
|
+
--ds-field-backdrop: none;
|
|
118
|
+
--ds-sidebar-backdrop: none;
|
|
119
|
+
--ds-page-backdrop: none;
|
|
120
|
+
|
|
121
|
+
/* Sidebar a ras de borde, blanco sobre el lienzo, filas con tinte azul */
|
|
122
|
+
--ds-sidebar-pad: 0px;
|
|
123
|
+
--ds-sidebar-radius: 0px;
|
|
124
|
+
--ds-sidebar-shadow: 0 0 #0000;
|
|
125
|
+
--ds-sidebar-ring: 0px;
|
|
126
|
+
--ds-sidebar-edge: 1px solid var(--sidebar-border);
|
|
127
|
+
--ds-sidebar-item-radius: 6px;
|
|
128
|
+
--ds-sidebar-item-h: 2.75rem;
|
|
129
|
+
|
|
130
|
+
/* Privadas de friendly */
|
|
131
|
+
--zf-orange: #fbb232;
|
|
132
|
+
--zf-orange-ink: #232450;
|
|
133
|
+
--zf-glow: rgba(95, 110, 201, 0.42);
|
|
134
|
+
--zf-glow-hover: rgba(95, 110, 201, 0.55);
|
|
135
|
+
--zf-fill: rgba(35, 36, 80, 0.05);
|
|
136
|
+
--zf-fill-hover: rgba(35, 36, 80, 0.08);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* ── VARIABLES · PIEL OSCURA («noche índigo») ────────────────────────────── */
|
|
140
|
+
.dark {
|
|
141
|
+
--background: #16173b;
|
|
142
|
+
--foreground: #ecedfa;
|
|
143
|
+
|
|
144
|
+
--card: #1f2150;
|
|
145
|
+
--card-foreground: #ecedfa;
|
|
146
|
+
--popover: #25275c;
|
|
147
|
+
--popover-foreground: #ecedfa;
|
|
148
|
+
|
|
149
|
+
--primary: #8a98f0;
|
|
150
|
+
--primary-foreground: #14153a;
|
|
151
|
+
--secondary: #2a2c63;
|
|
152
|
+
--secondary-foreground: #ecedfa;
|
|
153
|
+
--muted: #232557;
|
|
154
|
+
--muted-foreground: #a3a6d4;
|
|
155
|
+
--accent: rgba(86, 156, 255, 0.18);
|
|
156
|
+
--accent-foreground: #8dbbff;
|
|
157
|
+
--destructive: #ef5d62;
|
|
158
|
+
--destructive-foreground: #14153a;
|
|
159
|
+
|
|
160
|
+
--border: rgba(255, 255, 255, 0.09);
|
|
161
|
+
--input: rgba(255, 255, 255, 0.2);
|
|
162
|
+
--ring: #8a98f0;
|
|
163
|
+
|
|
164
|
+
--chart-1: #8a98f0;
|
|
165
|
+
--chart-2: #fbb232;
|
|
166
|
+
--chart-3: #3fd397;
|
|
167
|
+
--chart-4: #ef5d62;
|
|
168
|
+
--chart-5: #569cff;
|
|
169
|
+
|
|
170
|
+
--sidebar: #1b1d47;
|
|
171
|
+
--sidebar-foreground: #c4c6ec;
|
|
172
|
+
--sidebar-primary: #8a98f0;
|
|
173
|
+
--sidebar-primary-foreground: #14153a;
|
|
174
|
+
--sidebar-accent: rgba(86, 156, 255, 0.2);
|
|
175
|
+
--sidebar-accent-foreground: #8dbbff;
|
|
176
|
+
--sidebar-border: rgba(255, 255, 255, 0.07);
|
|
177
|
+
--sidebar-ring: #8a98f0;
|
|
178
|
+
|
|
179
|
+
--danger: #ff7a7f;
|
|
180
|
+
--danger-soft: rgba(239, 93, 98, 0.2);
|
|
181
|
+
--warning: #fbb232;
|
|
182
|
+
--warning-soft: rgba(251, 178, 50, 0.18);
|
|
183
|
+
--success: #3fd397;
|
|
184
|
+
--success-soft: rgba(63, 211, 151, 0.16);
|
|
185
|
+
--info: #8dbbff;
|
|
186
|
+
--info-soft: rgba(86, 156, 255, 0.2);
|
|
187
|
+
--neutral: #a3a6d4;
|
|
188
|
+
--neutral-soft: rgba(255, 255, 255, 0.08);
|
|
189
|
+
|
|
190
|
+
--link: #8dbbff;
|
|
191
|
+
--link-hover: #b4d1ff;
|
|
192
|
+
--inset: #232557;
|
|
193
|
+
--inset-foreground: #ecedfa;
|
|
194
|
+
--brand: #8a98f0;
|
|
195
|
+
--brand-bright: #aab4f6;
|
|
196
|
+
|
|
197
|
+
--ds-shadow-card: 0 8px 20px rgba(0, 0, 20, 0.28);
|
|
198
|
+
--ds-shadow-card-hover: 0 10px 26px rgba(0, 0, 20, 0.4);
|
|
199
|
+
--ds-shadow-raised: 0 8px 20px rgba(0, 0, 20, 0.3);
|
|
200
|
+
--ds-shadow-overlay: 0 16px 40px rgba(0, 0, 20, 0.5);
|
|
201
|
+
--ds-shadow-popover: 0 16px 40px rgba(0, 0, 20, 0.5);
|
|
202
|
+
|
|
203
|
+
--zf-orange-ink: #232450;
|
|
204
|
+
--zf-glow: rgba(138, 152, 240, 0.4);
|
|
205
|
+
--zf-glow-hover: rgba(138, 152, 240, 0.55);
|
|
206
|
+
--zf-fill: rgba(255, 255, 255, 0.07);
|
|
207
|
+
--zf-fill-hover: rgba(255, 255, 255, 0.11);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* ── PERSONALIDAD ────────────────────────────────────────────────────────────
|
|
211
|
+
* Sin capa: gana a las utilidades de los componentes. Solo variables.
|
|
212
|
+
*/
|
|
213
|
+
:root {
|
|
214
|
+
/* Botones: píldora en mayúsculas con espaciado, y brillo de color debajo */
|
|
215
|
+
[data-slot='button'] {
|
|
216
|
+
border-radius: 9999px;
|
|
217
|
+
text-transform: uppercase;
|
|
218
|
+
letter-spacing: 0.05em;
|
|
219
|
+
font-weight: 500;
|
|
220
|
+
transition:
|
|
221
|
+
transform var(--ds-motion-base) ease,
|
|
222
|
+
box-shadow var(--ds-motion-base) ease,
|
|
223
|
+
background-color var(--ds-motion-base) ease;
|
|
224
|
+
}
|
|
225
|
+
[data-slot='button'][data-variant='link'] {
|
|
226
|
+
text-transform: none;
|
|
227
|
+
letter-spacing: normal;
|
|
228
|
+
}
|
|
229
|
+
[data-slot='button'][data-size^='icon'] {
|
|
230
|
+
border-radius: var(--ds-radius-xl);
|
|
231
|
+
}
|
|
232
|
+
[data-slot='button'][data-variant='default'] {
|
|
233
|
+
box-shadow: 0 8px 8px -3px var(--zf-glow);
|
|
234
|
+
}
|
|
235
|
+
[data-slot='button'][data-variant='default']:hover:not(:disabled) {
|
|
236
|
+
transform: translateY(-1px);
|
|
237
|
+
box-shadow: 0 10px 12px -3px var(--zf-glow-hover);
|
|
238
|
+
}
|
|
239
|
+
[data-slot='button'][data-variant='default']:active:not(:disabled) {
|
|
240
|
+
transform: translateY(0);
|
|
241
|
+
}
|
|
242
|
+
[data-slot='button'][data-variant='secondary'] {
|
|
243
|
+
background: var(--zf-fill);
|
|
244
|
+
color: var(--foreground);
|
|
245
|
+
}
|
|
246
|
+
[data-slot='button'][data-variant='secondary']:hover:not(:disabled),
|
|
247
|
+
[data-slot='button'][data-variant='ghost']:hover:not(:disabled) {
|
|
248
|
+
background: var(--zf-fill-hover);
|
|
249
|
+
}
|
|
250
|
+
[data-slot='button'][data-variant='outline'] {
|
|
251
|
+
background: transparent;
|
|
252
|
+
border: 1.5px solid color-mix(in oklch, var(--primary) 55%, transparent);
|
|
253
|
+
color: var(--primary);
|
|
254
|
+
}
|
|
255
|
+
[data-slot='button'][data-variant='outline']:hover:not(:disabled) {
|
|
256
|
+
background: color-mix(in oklch, var(--primary) 10%, transparent);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/* Tarjetas: blancas, sin borde, solo la sombra teñida */
|
|
260
|
+
[data-slot='card'] {
|
|
261
|
+
border-color: transparent;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* Campos rellenos (sin borde), como el buscador de la referencia */
|
|
265
|
+
[data-slot='input'],
|
|
266
|
+
[data-slot='textarea'],
|
|
267
|
+
[data-slot='select-trigger'] {
|
|
268
|
+
background: var(--zf-fill);
|
|
269
|
+
border-color: transparent;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* Etiquetas en píldora; la secundaria es el naranja de la marca */
|
|
273
|
+
[data-slot='badge'] {
|
|
274
|
+
border-radius: 9999px;
|
|
275
|
+
}
|
|
276
|
+
[data-slot='badge'][data-variant='secondary'] {
|
|
277
|
+
background: var(--zf-orange);
|
|
278
|
+
color: var(--zf-orange-ink);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/* Tablas: cabeceras en mayúsculas pequeñas */
|
|
282
|
+
[data-slot='table-head'] {
|
|
283
|
+
text-transform: uppercase;
|
|
284
|
+
font-size: 0.75rem;
|
|
285
|
+
letter-spacing: 0.05em;
|
|
286
|
+
font-weight: 600;
|
|
287
|
+
color: var(--foreground);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/* Sidebar: la fila activa con tinte azul y peso medio */
|
|
291
|
+
[data-sidebar='menu-button'][data-active='true'] {
|
|
292
|
+
font-weight: 500;
|
|
293
|
+
}
|
|
294
|
+
[data-sidebar='menu-button']:hover:not([data-active='true']) {
|
|
295
|
+
background: var(--zf-fill);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* Pestañas: píldora tintada */
|
|
299
|
+
[data-slot='tabs-list'] {
|
|
300
|
+
background: var(--zf-fill);
|
|
301
|
+
border-radius: 9999px;
|
|
302
|
+
}
|
|
303
|
+
[data-slot='tabs-trigger'] {
|
|
304
|
+
border-radius: 9999px;
|
|
305
|
+
}
|
|
306
|
+
[data-slot='tabs-trigger'][data-active] {
|
|
307
|
+
background: var(--card);
|
|
308
|
+
box-shadow: var(--ds-shadow-raised);
|
|
309
|
+
}
|
|
310
|
+
}
|