@mpf-sde/design-system 0.1.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 +30 -0
- package/assets/manifest.json +6 -0
- package/brand/isologotipo-color.svg +102 -0
- package/brand/isologotipo-dark.svg +102 -0
- package/brand/isologotipo-light.svg +102 -0
- package/brand/isotipo-color.svg +99 -0
- package/brand/isotipo-dark.svg +100 -0
- package/brand/isotipo-light.svg +100 -0
- package/brand/logotipo-dark.svg +5 -0
- package/brand/logotipo-light.svg +5 -0
- package/contract/design-system.json +601 -0
- package/contract/design-system.md +30 -0
- package/css/fonts.css +80 -0
- package/css/index.css +77 -0
- package/css/tokens.css +119 -0
- package/fonts/dm-sans/OFL-1.1.txt +93 -0
- package/fonts/dm-sans/dm-sans-latin-400-normal.woff2 +0 -0
- package/fonts/dm-sans/dm-sans-latin-500-normal.woff2 +0 -0
- package/fonts/dm-sans/dm-sans-latin-600-normal.woff2 +0 -0
- package/fonts/dm-sans/dm-sans-latin-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono/OFL-1.1.txt +93 -0
- package/fonts/jetbrains-mono/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono/jetbrains-mono-latin-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono/jetbrains-mono-latin-700-normal.woff2 +0 -0
- package/fonts/source-sans-pro/OFL-1.1.txt +93 -0
- package/fonts/source-sans-pro/source-sans-pro-latin-400-normal.woff2 +0 -0
- package/fonts/source-sans-pro/source-sans-pro-latin-600-normal.woff2 +0 -0
- package/fonts/source-sans-pro/source-sans-pro-latin-700-normal.woff2 +0 -0
- package/icons/react-icons/lu/LuArrowRight.svg +1 -0
- package/icons/react-icons/lu/LuArrowUpRight.svg +1 -0
- package/icons/react-icons/lu/LuBuilding2.svg +1 -0
- package/icons/react-icons/lu/LuCalendarDays.svg +1 -0
- package/icons/react-icons/lu/LuDownload.svg +1 -0
- package/icons/react-icons/lu/LuFileText.svg +1 -0
- package/icons/react-icons/lu/LuGavel.svg +1 -0
- package/icons/react-icons/lu/LuMapPinned.svg +1 -0
- package/icons/react-icons/lu/LuMessageSquare.svg +1 -0
- package/icons/react-icons/lu/LuNewspaper.svg +1 -0
- package/icons/react-icons/lu/LuScale.svg +1 -0
- package/icons/react-icons/lu/LuSearch.svg +1 -0
- package/icons/react-icons/lu/LuTriangleAlert.svg +1 -0
- package/icons/react-icons/pi/PiBaby.svg +1 -0
- package/icons/react-icons/pi/PiFacebookLogo.svg +1 -0
- package/icons/react-icons/pi/PiInstagramLogo.svg +1 -0
- package/icons/react-icons/pi/PiPill.svg +1 -0
- package/icons/react-icons/pi/PiRobot.svg +1 -0
- package/icons/react-icons/pi/PiUsersThree.svg +1 -0
- package/icons/react-icons/pi/PiWhatsappLogo.svg +1 -0
- package/images/bgs/bg-sections.png +0 -0
- package/index.js +5 -0
- package/package.json +36 -0
- package/tokens/index.json +580 -0
- package/tokens/source/README.md +30 -0
- package/tokens/source/borders.json +8 -0
- package/tokens/source/breakpoints.json +8 -0
- package/tokens/source/colors.json +62 -0
- package/tokens/source/components.json +55 -0
- package/tokens/source/elevation.json +6 -0
- package/tokens/source/images.json +55 -0
- package/tokens/source/motion.json +9 -0
- package/tokens/source/opacity.json +7 -0
- package/tokens/source/radii.json +7 -0
- package/tokens/source/sizing.json +12 -0
- package/tokens/source/spacing.json +13 -0
- package/tokens/source/typography.json +13 -0
- package/wordpress/theme.json +137 -0
|
@@ -0,0 +1,601 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"id": "mpf-sde-design-system",
|
|
4
|
+
"name": "Design System MPF",
|
|
5
|
+
"package": "@mpf-sde/design-system",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"sourceOfTruth": "code",
|
|
8
|
+
"tokens": {
|
|
9
|
+
"borders": [
|
|
10
|
+
[
|
|
11
|
+
"border-width-hairline",
|
|
12
|
+
"1px",
|
|
13
|
+
"Lineas divisorias, contornos de cards y separadores sutiles"
|
|
14
|
+
],
|
|
15
|
+
[
|
|
16
|
+
"border-width-focus",
|
|
17
|
+
"2px",
|
|
18
|
+
"Anillo de foco visible y estados de teclado"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"border-style-default",
|
|
22
|
+
"solid",
|
|
23
|
+
"Bordes institucionales sin ornamentacion"
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"border-color-subtle",
|
|
27
|
+
"rgba(0, 6, 46, 0.12)",
|
|
28
|
+
"Contornos en superficies claras"
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
"border-color-strong",
|
|
32
|
+
"rgba(28, 32, 36, 0.24)",
|
|
33
|
+
"Bordes con mayor contraste en controles o tablas"
|
|
34
|
+
],
|
|
35
|
+
[
|
|
36
|
+
"border-color-inverse",
|
|
37
|
+
"rgba(255, 255, 255, 0.16)",
|
|
38
|
+
"Contornos sobre superficies oscuras"
|
|
39
|
+
]
|
|
40
|
+
],
|
|
41
|
+
"breakpoints": [
|
|
42
|
+
[
|
|
43
|
+
"breakpoint-xs",
|
|
44
|
+
"360px",
|
|
45
|
+
"Telefonos angostos"
|
|
46
|
+
],
|
|
47
|
+
[
|
|
48
|
+
"breakpoint-sm",
|
|
49
|
+
"640px",
|
|
50
|
+
"Telefonos grandes y layouts compactos"
|
|
51
|
+
],
|
|
52
|
+
[
|
|
53
|
+
"breakpoint-md",
|
|
54
|
+
"768px",
|
|
55
|
+
"Tablets y cambios de una a dos columnas"
|
|
56
|
+
],
|
|
57
|
+
[
|
|
58
|
+
"breakpoint-lg",
|
|
59
|
+
"1024px",
|
|
60
|
+
"Desktop inicial y navegacion completa"
|
|
61
|
+
],
|
|
62
|
+
[
|
|
63
|
+
"breakpoint-xl",
|
|
64
|
+
"1280px",
|
|
65
|
+
"Desktop amplio"
|
|
66
|
+
],
|
|
67
|
+
[
|
|
68
|
+
"breakpoint-2xl",
|
|
69
|
+
"1536px",
|
|
70
|
+
"Pantallas institucionales o monitores grandes"
|
|
71
|
+
]
|
|
72
|
+
],
|
|
73
|
+
"colors": [
|
|
74
|
+
{
|
|
75
|
+
"name": "Azul Noche",
|
|
76
|
+
"token": "--mpf-blue-950",
|
|
77
|
+
"value": "#101821",
|
|
78
|
+
"usage": "Bloques oscuros, asistente virtual, footer y superficies de alto contraste."
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "Azul Institucional",
|
|
82
|
+
"token": "--mpf-blue-700",
|
|
83
|
+
"value": "#155a8f",
|
|
84
|
+
"usage": "Estructura de marca, enlaces importantes y estados activos."
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "Celeste",
|
|
88
|
+
"token": "--mpf-blue-400",
|
|
89
|
+
"value": "#76AADC",
|
|
90
|
+
"usage": "Iconos, micro-accentos y senales informativas digitales."
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "Azul Suave",
|
|
94
|
+
"token": "--mpf-blue-100",
|
|
95
|
+
"value": "#e6f4fe",
|
|
96
|
+
"usage": "Fondos informativos, chips y estados de seleccion suaves."
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "Rojo MPF",
|
|
100
|
+
"token": "--mpf-red-600",
|
|
101
|
+
"value": "#D3100E",
|
|
102
|
+
"usage": "Acento editorial, palabras destacadas, alertas suaves y llamadas sensibles."
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "Rojo Profundo",
|
|
106
|
+
"token": "--mpf-red-800",
|
|
107
|
+
"value": "#a52a32",
|
|
108
|
+
"usage": "Hover, estados criticos y contraste rojo sobre fondos claros."
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "Marfil",
|
|
112
|
+
"token": "--mpf-ivory",
|
|
113
|
+
"value": "#faf8f3",
|
|
114
|
+
"usage": "Fondo principal del sitio y textura institucional."
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "Papel",
|
|
118
|
+
"token": "--mpf-paper",
|
|
119
|
+
"value": "#faf8f5",
|
|
120
|
+
"usage": "Tarjetas, paneles y areas de lectura."
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "Tinta",
|
|
124
|
+
"token": "--mpf-ink",
|
|
125
|
+
"value": "#1c2024",
|
|
126
|
+
"usage": "Texto principal, encabezados UI y lineas fuertes."
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "Texto Medio",
|
|
130
|
+
"token": "--mpf-muted",
|
|
131
|
+
"value": "#60646c",
|
|
132
|
+
"usage": "Bajadas, metadatos, notas y contenido secundario."
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"components": [
|
|
136
|
+
{
|
|
137
|
+
"id": "button",
|
|
138
|
+
"name": "Button",
|
|
139
|
+
"category": "actions",
|
|
140
|
+
"variants": {
|
|
141
|
+
"appearance": [
|
|
142
|
+
"solid",
|
|
143
|
+
"soft",
|
|
144
|
+
"outline",
|
|
145
|
+
"ghost"
|
|
146
|
+
],
|
|
147
|
+
"color": [
|
|
148
|
+
"neutral",
|
|
149
|
+
"blue",
|
|
150
|
+
"red",
|
|
151
|
+
"green"
|
|
152
|
+
],
|
|
153
|
+
"size": [
|
|
154
|
+
"sm",
|
|
155
|
+
"md",
|
|
156
|
+
"lg"
|
|
157
|
+
],
|
|
158
|
+
"icon": [
|
|
159
|
+
"none",
|
|
160
|
+
"leading",
|
|
161
|
+
"trailing",
|
|
162
|
+
"both"
|
|
163
|
+
],
|
|
164
|
+
"state": [
|
|
165
|
+
"default",
|
|
166
|
+
"hover",
|
|
167
|
+
"pressed",
|
|
168
|
+
"disabled",
|
|
169
|
+
"loading"
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
"rules": [
|
|
173
|
+
"La variante default usa fondo oscuro en light mode y fondo claro en dark mode.",
|
|
174
|
+
"Los botones pueden recibir icono inicial, final, ambos o ninguno.",
|
|
175
|
+
"Los botones icon-only requieren aria-label.",
|
|
176
|
+
"El foco visible es obligatorio."
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"id": "card",
|
|
181
|
+
"name": "Card",
|
|
182
|
+
"category": "surface",
|
|
183
|
+
"variants": [
|
|
184
|
+
"simple",
|
|
185
|
+
"informative",
|
|
186
|
+
"dark",
|
|
187
|
+
"action",
|
|
188
|
+
"news",
|
|
189
|
+
"compact-media"
|
|
190
|
+
],
|
|
191
|
+
"rules": [
|
|
192
|
+
"Radio maximo recomendado: 8px.",
|
|
193
|
+
"No anidar cards como estructura visual.",
|
|
194
|
+
"Las cards oscuras se reservan para herramientas o acciones prioritarias.",
|
|
195
|
+
"En dark mode, las action cards usan superficies grises oscuras y la primera puede ser inversa."
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"id": "list",
|
|
200
|
+
"name": "List",
|
|
201
|
+
"category": "data-display",
|
|
202
|
+
"variants": [
|
|
203
|
+
"action-list",
|
|
204
|
+
"data-list",
|
|
205
|
+
"editorial-list"
|
|
206
|
+
],
|
|
207
|
+
"rules": [
|
|
208
|
+
"Las listas tabulares mantienen columnas estables.",
|
|
209
|
+
"Cuando el contenido excede el ancho disponible, el cuerpo funciona como carril horizontal.",
|
|
210
|
+
"No comprimir texto hasta romper palabras o columnas.",
|
|
211
|
+
"Las acciones de fila deben ser accesibles por teclado."
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"id": "icon",
|
|
216
|
+
"name": "Icon",
|
|
217
|
+
"category": "asset",
|
|
218
|
+
"variants": [
|
|
219
|
+
"ui-lineal",
|
|
220
|
+
"editorial-pictogram",
|
|
221
|
+
"brand-social",
|
|
222
|
+
"svg-asset"
|
|
223
|
+
],
|
|
224
|
+
"rules": [
|
|
225
|
+
"La decision canonica es el uso, estilo visual, nombre semantico y SVG aprobado.",
|
|
226
|
+
"Las librerias de iconos son herramientas de seleccion o adaptadores por plataforma, no fuente de verdad.",
|
|
227
|
+
"Todo icono aprobado se suma al set inicial y queda disponible como SVG portable."
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"elevation": [
|
|
232
|
+
[
|
|
233
|
+
"Hairline",
|
|
234
|
+
"1px solid rgba(0, 6, 46, 0.14)",
|
|
235
|
+
"Bordes sutiles con lectura clara"
|
|
236
|
+
],
|
|
237
|
+
[
|
|
238
|
+
"Card",
|
|
239
|
+
"0 10px 30px rgba(16, 24, 33, 0.08)",
|
|
240
|
+
"Tarjetas y paneles claros"
|
|
241
|
+
],
|
|
242
|
+
[
|
|
243
|
+
"Float",
|
|
244
|
+
"0 24px 70px rgba(16, 24, 33, 0.14)",
|
|
245
|
+
"Mapa, asistente, overlays y bloques destacados"
|
|
246
|
+
],
|
|
247
|
+
[
|
|
248
|
+
"Dark inset",
|
|
249
|
+
"inset 0 1px rgba(255,255,255,0.08)",
|
|
250
|
+
"Paneles azul noche"
|
|
251
|
+
]
|
|
252
|
+
],
|
|
253
|
+
"images": [
|
|
254
|
+
{
|
|
255
|
+
"id": "institutional-hero",
|
|
256
|
+
"name": "Imagen hero institucional",
|
|
257
|
+
"aspectRatio": "16 / 9",
|
|
258
|
+
"radius": "var(--radius-5)",
|
|
259
|
+
"fit": "cover",
|
|
260
|
+
"usage": "Imagen principal de edificios, autoridades o escenas institucionales con alta jerarquia.",
|
|
261
|
+
"rules": [
|
|
262
|
+
"Usar imagen real o institucional aprobada.",
|
|
263
|
+
"Evitar recortes que oculten informacion importante.",
|
|
264
|
+
"Mantener contraste suficiente si hay texto superpuesto.",
|
|
265
|
+
"No aplicar blur decorativo ni gradientes."
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"id": "editorial-card",
|
|
270
|
+
"name": "Imagen editorial de card",
|
|
271
|
+
"aspectRatio": "4 / 3",
|
|
272
|
+
"radius": "var(--radius-4)",
|
|
273
|
+
"fit": "cover",
|
|
274
|
+
"usage": "Noticias, publicaciones, novedades y contenido editorial.",
|
|
275
|
+
"rules": [
|
|
276
|
+
"Mantener encuadre reconocible.",
|
|
277
|
+
"No oscurecer por defecto.",
|
|
278
|
+
"Usar radios bajos y borde sutil cuando conviva con cards."
|
|
279
|
+
]
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"id": "avatar-authority",
|
|
283
|
+
"name": "Retrato institucional",
|
|
284
|
+
"aspectRatio": "3 / 4",
|
|
285
|
+
"radius": "var(--radius-4)",
|
|
286
|
+
"fit": "cover",
|
|
287
|
+
"usage": "Autoridades, perfiles institucionales y responsables de area.",
|
|
288
|
+
"rules": [
|
|
289
|
+
"Priorizar fondos sobrios y buena iluminacion.",
|
|
290
|
+
"No usar recortes circulares salvo necesidad funcional.",
|
|
291
|
+
"Mantener consistencia de altura en grillas."
|
|
292
|
+
]
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"id": "map-panel",
|
|
296
|
+
"name": "Imagen o mapa territorial",
|
|
297
|
+
"aspectRatio": "1 / 1",
|
|
298
|
+
"radius": "var(--radius-4)",
|
|
299
|
+
"fit": "contain",
|
|
300
|
+
"usage": "Mapas, diagramas territoriales, organigramas o piezas informativas.",
|
|
301
|
+
"rules": [
|
|
302
|
+
"No deformar la pieza.",
|
|
303
|
+
"Usar fondo claro o marfil para lectura.",
|
|
304
|
+
"Permitir scroll o zoom cuando el contenido supere el contenedor."
|
|
305
|
+
]
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
"motion": [
|
|
309
|
+
[
|
|
310
|
+
"duration-instant",
|
|
311
|
+
"80ms",
|
|
312
|
+
"Feedback minimo en controles simples"
|
|
313
|
+
],
|
|
314
|
+
[
|
|
315
|
+
"duration-fast",
|
|
316
|
+
"140ms",
|
|
317
|
+
"Hover, focus y pequenos cambios de estado"
|
|
318
|
+
],
|
|
319
|
+
[
|
|
320
|
+
"duration-base",
|
|
321
|
+
"220ms",
|
|
322
|
+
"Transiciones de paneles, menus y superficies"
|
|
323
|
+
],
|
|
324
|
+
[
|
|
325
|
+
"duration-slow",
|
|
326
|
+
"320ms",
|
|
327
|
+
"Entradas o cambios de contexto con mayor presencia"
|
|
328
|
+
],
|
|
329
|
+
[
|
|
330
|
+
"easing-standard",
|
|
331
|
+
"cubic-bezier(0.2, 0, 0, 1)",
|
|
332
|
+
"Movimiento funcional por defecto"
|
|
333
|
+
],
|
|
334
|
+
[
|
|
335
|
+
"easing-exit",
|
|
336
|
+
"cubic-bezier(0.4, 0, 1, 1)",
|
|
337
|
+
"Salida o cierre de elementos"
|
|
338
|
+
],
|
|
339
|
+
[
|
|
340
|
+
"easing-emphasis",
|
|
341
|
+
"cubic-bezier(0.16, 1, 0.3, 1)",
|
|
342
|
+
"Transiciones editoriales puntuales"
|
|
343
|
+
]
|
|
344
|
+
],
|
|
345
|
+
"opacity": [
|
|
346
|
+
[
|
|
347
|
+
"opacity-disabled",
|
|
348
|
+
"0.44",
|
|
349
|
+
"Controles deshabilitados conservando legibilidad"
|
|
350
|
+
],
|
|
351
|
+
[
|
|
352
|
+
"opacity-muted",
|
|
353
|
+
"0.68",
|
|
354
|
+
"Texto secundario sobre superficies oscuras"
|
|
355
|
+
],
|
|
356
|
+
[
|
|
357
|
+
"opacity-overlay-light",
|
|
358
|
+
"0.72",
|
|
359
|
+
"Capas claras sobre textura institucional"
|
|
360
|
+
],
|
|
361
|
+
[
|
|
362
|
+
"opacity-overlay-dark",
|
|
363
|
+
"0.82",
|
|
364
|
+
"Capas oscuras para preservar contraste"
|
|
365
|
+
],
|
|
366
|
+
[
|
|
367
|
+
"opacity-scrim",
|
|
368
|
+
"0.56",
|
|
369
|
+
"Fondos de modales o overlays"
|
|
370
|
+
]
|
|
371
|
+
],
|
|
372
|
+
"radii": [
|
|
373
|
+
[
|
|
374
|
+
"1",
|
|
375
|
+
"3px",
|
|
376
|
+
"Badges y detalles pequenos"
|
|
377
|
+
],
|
|
378
|
+
[
|
|
379
|
+
"2",
|
|
380
|
+
"4px",
|
|
381
|
+
"Inputs densos y mini-controles"
|
|
382
|
+
],
|
|
383
|
+
[
|
|
384
|
+
"3",
|
|
385
|
+
"6px",
|
|
386
|
+
"Botones y controles base"
|
|
387
|
+
],
|
|
388
|
+
[
|
|
389
|
+
"4",
|
|
390
|
+
"8px",
|
|
391
|
+
"Cards, paneles y superficies"
|
|
392
|
+
],
|
|
393
|
+
[
|
|
394
|
+
"5",
|
|
395
|
+
"16px",
|
|
396
|
+
"Elementos destacados o imagenes cuando lo pidan"
|
|
397
|
+
]
|
|
398
|
+
],
|
|
399
|
+
"sizing": [
|
|
400
|
+
[
|
|
401
|
+
"size-icon-xs",
|
|
402
|
+
"16px",
|
|
403
|
+
"Iconos pequenos en metadata y controles densos"
|
|
404
|
+
],
|
|
405
|
+
[
|
|
406
|
+
"size-icon-sm",
|
|
407
|
+
"20px",
|
|
408
|
+
"Iconos de botones, inputs y navegacion compacta"
|
|
409
|
+
],
|
|
410
|
+
[
|
|
411
|
+
"size-icon-md",
|
|
412
|
+
"24px",
|
|
413
|
+
"Iconos base de UI y acciones recurrentes"
|
|
414
|
+
],
|
|
415
|
+
[
|
|
416
|
+
"size-icon-lg",
|
|
417
|
+
"32px",
|
|
418
|
+
"Iconos destacados en cards o accesos"
|
|
419
|
+
],
|
|
420
|
+
[
|
|
421
|
+
"size-control-sm",
|
|
422
|
+
"32px",
|
|
423
|
+
"Altura minima de controles compactos"
|
|
424
|
+
],
|
|
425
|
+
[
|
|
426
|
+
"size-control-md",
|
|
427
|
+
"40px",
|
|
428
|
+
"Altura base de botones, inputs y selects"
|
|
429
|
+
],
|
|
430
|
+
[
|
|
431
|
+
"size-control-lg",
|
|
432
|
+
"48px",
|
|
433
|
+
"Controles destacados o tactiles"
|
|
434
|
+
],
|
|
435
|
+
[
|
|
436
|
+
"size-container-readable",
|
|
437
|
+
"720px",
|
|
438
|
+
"Ancho maximo para lectura editorial"
|
|
439
|
+
],
|
|
440
|
+
[
|
|
441
|
+
"size-container-page",
|
|
442
|
+
"1180px",
|
|
443
|
+
"Ancho maximo de grillas y contenido principal"
|
|
444
|
+
],
|
|
445
|
+
[
|
|
446
|
+
"size-container-wide",
|
|
447
|
+
"1440px",
|
|
448
|
+
"Ancho maximo para composiciones institucionales amplias"
|
|
449
|
+
]
|
|
450
|
+
],
|
|
451
|
+
"spacing": [
|
|
452
|
+
[
|
|
453
|
+
"1",
|
|
454
|
+
"4px",
|
|
455
|
+
"Detalles, hairline offsets"
|
|
456
|
+
],
|
|
457
|
+
[
|
|
458
|
+
"2",
|
|
459
|
+
"8px",
|
|
460
|
+
"Icono/texto, separaciones densas"
|
|
461
|
+
],
|
|
462
|
+
[
|
|
463
|
+
"3",
|
|
464
|
+
"12px",
|
|
465
|
+
"Controles compactos"
|
|
466
|
+
],
|
|
467
|
+
[
|
|
468
|
+
"4",
|
|
469
|
+
"16px",
|
|
470
|
+
"Padding base y gaps de formularios"
|
|
471
|
+
],
|
|
472
|
+
[
|
|
473
|
+
"5",
|
|
474
|
+
"24px",
|
|
475
|
+
"Grupos de contenido"
|
|
476
|
+
],
|
|
477
|
+
[
|
|
478
|
+
"6",
|
|
479
|
+
"32px",
|
|
480
|
+
"Cards amplias y bloques internos"
|
|
481
|
+
],
|
|
482
|
+
[
|
|
483
|
+
"7",
|
|
484
|
+
"40px",
|
|
485
|
+
"Separacion entre modulos pequenos"
|
|
486
|
+
],
|
|
487
|
+
[
|
|
488
|
+
"8",
|
|
489
|
+
"48px",
|
|
490
|
+
"Bandas compactas"
|
|
491
|
+
],
|
|
492
|
+
[
|
|
493
|
+
"9",
|
|
494
|
+
"64px",
|
|
495
|
+
"Secciones principales"
|
|
496
|
+
],
|
|
497
|
+
[
|
|
498
|
+
"10",
|
|
499
|
+
"80px",
|
|
500
|
+
"Respiracion editorial"
|
|
501
|
+
],
|
|
502
|
+
[
|
|
503
|
+
"11",
|
|
504
|
+
"96px",
|
|
505
|
+
"Separacion mayor entre bloques"
|
|
506
|
+
]
|
|
507
|
+
],
|
|
508
|
+
"typography": [
|
|
509
|
+
[
|
|
510
|
+
"Display",
|
|
511
|
+
"clamp(4.75rem, 8vw, 7.5rem)",
|
|
512
|
+
"0.93",
|
|
513
|
+
"-0.04em",
|
|
514
|
+
"DM Sans SemiBold"
|
|
515
|
+
],
|
|
516
|
+
[
|
|
517
|
+
"H1",
|
|
518
|
+
"clamp(3.5rem, 6vw, 5.5rem)",
|
|
519
|
+
"0.95",
|
|
520
|
+
"-0.04em",
|
|
521
|
+
"DM Sans SemiBold"
|
|
522
|
+
],
|
|
523
|
+
[
|
|
524
|
+
"H2",
|
|
525
|
+
"clamp(2.5rem, 4vw, 4rem)",
|
|
526
|
+
"1.00",
|
|
527
|
+
"-0.04em",
|
|
528
|
+
"DM Sans SemiBold"
|
|
529
|
+
],
|
|
530
|
+
[
|
|
531
|
+
"H3",
|
|
532
|
+
"2rem",
|
|
533
|
+
"1.08",
|
|
534
|
+
"-0.04em",
|
|
535
|
+
"DM Sans SemiBold"
|
|
536
|
+
],
|
|
537
|
+
[
|
|
538
|
+
"H4",
|
|
539
|
+
"1.5rem",
|
|
540
|
+
"1.12",
|
|
541
|
+
"-0.04em",
|
|
542
|
+
"DM Sans SemiBold"
|
|
543
|
+
],
|
|
544
|
+
[
|
|
545
|
+
"H5",
|
|
546
|
+
"1.25rem",
|
|
547
|
+
"1.16",
|
|
548
|
+
"-0.04em",
|
|
549
|
+
"DM Sans SemiBold"
|
|
550
|
+
],
|
|
551
|
+
[
|
|
552
|
+
"H6",
|
|
553
|
+
"1rem",
|
|
554
|
+
"1.20",
|
|
555
|
+
"-0.04em",
|
|
556
|
+
"DM Sans SemiBold"
|
|
557
|
+
],
|
|
558
|
+
[
|
|
559
|
+
"Lead",
|
|
560
|
+
"1.5rem",
|
|
561
|
+
"1.45",
|
|
562
|
+
"0",
|
|
563
|
+
"Source Sans Pro Regular"
|
|
564
|
+
],
|
|
565
|
+
[
|
|
566
|
+
"Body",
|
|
567
|
+
"1rem",
|
|
568
|
+
"1.65",
|
|
569
|
+
"-0.01em",
|
|
570
|
+
"Source Sans Pro Regular"
|
|
571
|
+
],
|
|
572
|
+
[
|
|
573
|
+
"UI",
|
|
574
|
+
"0.9375rem",
|
|
575
|
+
"1.45",
|
|
576
|
+
"0",
|
|
577
|
+
"DM Sans SemiBold"
|
|
578
|
+
],
|
|
579
|
+
[
|
|
580
|
+
"Data label",
|
|
581
|
+
"0.75rem",
|
|
582
|
+
"1.35",
|
|
583
|
+
"0.14em",
|
|
584
|
+
"JetBrains Mono"
|
|
585
|
+
]
|
|
586
|
+
]
|
|
587
|
+
},
|
|
588
|
+
"assets": {
|
|
589
|
+
"brand": "brand/",
|
|
590
|
+
"fonts": "fonts/",
|
|
591
|
+
"icons": "icons/",
|
|
592
|
+
"images": "images/"
|
|
593
|
+
},
|
|
594
|
+
"exports": {
|
|
595
|
+
"css": "./css/index.css",
|
|
596
|
+
"tokens": "./tokens/index.json",
|
|
597
|
+
"contract": "./contract/design-system.json",
|
|
598
|
+
"markdown": "./contract/design-system.md",
|
|
599
|
+
"wordpressThemeJson": "./wordpress/theme.json"
|
|
600
|
+
}
|
|
601
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Design System MPF
|
|
2
|
+
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
|
|
5
|
+
## Instalacion
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @mpf-sde/design-system
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## CSS
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import "@mpf-sde/design-system/css";
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Tokens De Color
|
|
18
|
+
|
|
19
|
+
| Token |Valor |Uso |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| --mpf-blue-950 | #101821 | Bloques oscuros, asistente virtual, footer y superficies de alto contraste. |
|
|
22
|
+
| --mpf-blue-700 | #155a8f | Estructura de marca, enlaces importantes y estados activos. |
|
|
23
|
+
| --mpf-blue-400 | #76AADC | Iconos, micro-accentos y senales informativas digitales. |
|
|
24
|
+
| --mpf-blue-100 | #e6f4fe | Fondos informativos, chips y estados de seleccion suaves. |
|
|
25
|
+
| --mpf-red-600 | #D3100E | Acento editorial, palabras destacadas, alertas suaves y llamadas sensibles. |
|
|
26
|
+
| --mpf-red-800 | #a52a32 | Hover, estados criticos y contraste rojo sobre fondos claros. |
|
|
27
|
+
| --mpf-ivory | #faf8f3 | Fondo principal del sitio y textura institucional. |
|
|
28
|
+
| --mpf-paper | #faf8f5 | Tarjetas, paneles y areas de lectura. |
|
|
29
|
+
| --mpf-ink | #1c2024 | Texto principal, encabezados UI y lineas fuertes. |
|
|
30
|
+
| --mpf-muted | #60646c | Bajadas, metadatos, notas y contenido secundario. |
|
package/css/fonts.css
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "DM Sans";
|
|
3
|
+
src: url("../fonts/dm-sans/dm-sans-latin-400-normal.woff2") format("woff2");
|
|
4
|
+
font-display: swap;
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-weight: 400;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: "DM Sans";
|
|
11
|
+
src: url("../fonts/dm-sans/dm-sans-latin-500-normal.woff2") format("woff2");
|
|
12
|
+
font-display: swap;
|
|
13
|
+
font-style: normal;
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: "DM Sans";
|
|
19
|
+
src: url("../fonts/dm-sans/dm-sans-latin-600-normal.woff2") format("woff2");
|
|
20
|
+
font-display: swap;
|
|
21
|
+
font-style: normal;
|
|
22
|
+
font-weight: 600;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@font-face {
|
|
26
|
+
font-family: "DM Sans";
|
|
27
|
+
src: url("../fonts/dm-sans/dm-sans-latin-700-normal.woff2") format("woff2");
|
|
28
|
+
font-display: swap;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@font-face {
|
|
34
|
+
font-family: "Source Sans Pro";
|
|
35
|
+
src: url("../fonts/source-sans-pro/source-sans-pro-latin-400-normal.woff2") format("woff2");
|
|
36
|
+
font-display: swap;
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@font-face {
|
|
42
|
+
font-family: "Source Sans Pro";
|
|
43
|
+
src: url("../fonts/source-sans-pro/source-sans-pro-latin-600-normal.woff2") format("woff2");
|
|
44
|
+
font-display: swap;
|
|
45
|
+
font-style: normal;
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@font-face {
|
|
50
|
+
font-family: "Source Sans Pro";
|
|
51
|
+
src: url("../fonts/source-sans-pro/source-sans-pro-latin-700-normal.woff2") format("woff2");
|
|
52
|
+
font-display: swap;
|
|
53
|
+
font-style: normal;
|
|
54
|
+
font-weight: 700;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@font-face {
|
|
58
|
+
font-family: "JetBrains Mono";
|
|
59
|
+
src: url("../fonts/jetbrains-mono/jetbrains-mono-latin-400-normal.woff2") format("woff2");
|
|
60
|
+
font-display: swap;
|
|
61
|
+
font-style: normal;
|
|
62
|
+
font-weight: 400;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@font-face {
|
|
66
|
+
font-family: "JetBrains Mono";
|
|
67
|
+
src: url("../fonts/jetbrains-mono/jetbrains-mono-latin-600-normal.woff2") format("woff2");
|
|
68
|
+
font-display: swap;
|
|
69
|
+
font-style: normal;
|
|
70
|
+
font-weight: 600;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@font-face {
|
|
74
|
+
font-family: "JetBrains Mono";
|
|
75
|
+
src: url("../fonts/jetbrains-mono/jetbrains-mono-latin-700-normal.woff2") format("woff2");
|
|
76
|
+
font-display: swap;
|
|
77
|
+
font-style: normal;
|
|
78
|
+
font-weight: 700;
|
|
79
|
+
}
|
|
80
|
+
|