@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,55 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "button",
|
|
4
|
+
"name": "Button",
|
|
5
|
+
"category": "actions",
|
|
6
|
+
"variants": {
|
|
7
|
+
"appearance": ["solid", "soft", "outline", "ghost"],
|
|
8
|
+
"color": ["neutral", "blue", "red", "green"],
|
|
9
|
+
"size": ["sm", "md", "lg"],
|
|
10
|
+
"icon": ["none", "leading", "trailing", "both"],
|
|
11
|
+
"state": ["default", "hover", "pressed", "disabled", "loading"]
|
|
12
|
+
},
|
|
13
|
+
"rules": [
|
|
14
|
+
"La variante default usa fondo oscuro en light mode y fondo claro en dark mode.",
|
|
15
|
+
"Los botones pueden recibir icono inicial, final, ambos o ninguno.",
|
|
16
|
+
"Los botones icon-only requieren aria-label.",
|
|
17
|
+
"El foco visible es obligatorio."
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "card",
|
|
22
|
+
"name": "Card",
|
|
23
|
+
"category": "surface",
|
|
24
|
+
"variants": ["simple", "informative", "dark", "action", "news", "compact-media"],
|
|
25
|
+
"rules": [
|
|
26
|
+
"Radio maximo recomendado: 8px.",
|
|
27
|
+
"No anidar cards como estructura visual.",
|
|
28
|
+
"Las cards oscuras se reservan para herramientas o acciones prioritarias.",
|
|
29
|
+
"En dark mode, las action cards usan superficies grises oscuras y la primera puede ser inversa."
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "list",
|
|
34
|
+
"name": "List",
|
|
35
|
+
"category": "data-display",
|
|
36
|
+
"variants": ["action-list", "data-list", "editorial-list"],
|
|
37
|
+
"rules": [
|
|
38
|
+
"Las listas tabulares mantienen columnas estables.",
|
|
39
|
+
"Cuando el contenido excede el ancho disponible, el cuerpo funciona como carril horizontal.",
|
|
40
|
+
"No comprimir texto hasta romper palabras o columnas.",
|
|
41
|
+
"Las acciones de fila deben ser accesibles por teclado."
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "icon",
|
|
46
|
+
"name": "Icon",
|
|
47
|
+
"category": "asset",
|
|
48
|
+
"variants": ["ui-lineal", "editorial-pictogram", "brand-social", "svg-asset"],
|
|
49
|
+
"rules": [
|
|
50
|
+
"La decision canonica es el uso, estilo visual, nombre semantico y SVG aprobado.",
|
|
51
|
+
"Las librerias de iconos son herramientas de seleccion o adaptadores por plataforma, no fuente de verdad.",
|
|
52
|
+
"Todo icono aprobado se suma al set inicial y queda disponible como SVG portable."
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
]
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
[
|
|
2
|
+
["Hairline", "1px solid rgba(0, 6, 46, 0.14)", "Bordes sutiles con lectura clara"],
|
|
3
|
+
["Card", "0 10px 30px rgba(16, 24, 33, 0.08)", "Tarjetas y paneles claros"],
|
|
4
|
+
["Float", "0 24px 70px rgba(16, 24, 33, 0.14)", "Mapa, asistente, overlays y bloques destacados"],
|
|
5
|
+
["Dark inset", "inset 0 1px rgba(255,255,255,0.08)", "Paneles azul noche"]
|
|
6
|
+
]
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "institutional-hero",
|
|
4
|
+
"name": "Imagen hero institucional",
|
|
5
|
+
"aspectRatio": "16 / 9",
|
|
6
|
+
"radius": "var(--radius-5)",
|
|
7
|
+
"fit": "cover",
|
|
8
|
+
"usage": "Imagen principal de edificios, autoridades o escenas institucionales con alta jerarquia.",
|
|
9
|
+
"rules": [
|
|
10
|
+
"Usar imagen real o institucional aprobada.",
|
|
11
|
+
"Evitar recortes que oculten informacion importante.",
|
|
12
|
+
"Mantener contraste suficiente si hay texto superpuesto.",
|
|
13
|
+
"No aplicar blur decorativo ni gradientes."
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "editorial-card",
|
|
18
|
+
"name": "Imagen editorial de card",
|
|
19
|
+
"aspectRatio": "4 / 3",
|
|
20
|
+
"radius": "var(--radius-4)",
|
|
21
|
+
"fit": "cover",
|
|
22
|
+
"usage": "Noticias, publicaciones, novedades y contenido editorial.",
|
|
23
|
+
"rules": [
|
|
24
|
+
"Mantener encuadre reconocible.",
|
|
25
|
+
"No oscurecer por defecto.",
|
|
26
|
+
"Usar radios bajos y borde sutil cuando conviva con cards."
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "avatar-authority",
|
|
31
|
+
"name": "Retrato institucional",
|
|
32
|
+
"aspectRatio": "3 / 4",
|
|
33
|
+
"radius": "var(--radius-4)",
|
|
34
|
+
"fit": "cover",
|
|
35
|
+
"usage": "Autoridades, perfiles institucionales y responsables de area.",
|
|
36
|
+
"rules": [
|
|
37
|
+
"Priorizar fondos sobrios y buena iluminacion.",
|
|
38
|
+
"No usar recortes circulares salvo necesidad funcional.",
|
|
39
|
+
"Mantener consistencia de altura en grillas."
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "map-panel",
|
|
44
|
+
"name": "Imagen o mapa territorial",
|
|
45
|
+
"aspectRatio": "1 / 1",
|
|
46
|
+
"radius": "var(--radius-4)",
|
|
47
|
+
"fit": "contain",
|
|
48
|
+
"usage": "Mapas, diagramas territoriales, organigramas o piezas informativas.",
|
|
49
|
+
"rules": [
|
|
50
|
+
"No deformar la pieza.",
|
|
51
|
+
"Usar fondo claro o marfil para lectura.",
|
|
52
|
+
"Permitir scroll o zoom cuando el contenido supere el contenedor."
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[
|
|
2
|
+
["duration-instant", "80ms", "Feedback minimo en controles simples"],
|
|
3
|
+
["duration-fast", "140ms", "Hover, focus y pequenos cambios de estado"],
|
|
4
|
+
["duration-base", "220ms", "Transiciones de paneles, menus y superficies"],
|
|
5
|
+
["duration-slow", "320ms", "Entradas o cambios de contexto con mayor presencia"],
|
|
6
|
+
["easing-standard", "cubic-bezier(0.2, 0, 0, 1)", "Movimiento funcional por defecto"],
|
|
7
|
+
["easing-exit", "cubic-bezier(0.4, 0, 1, 1)", "Salida o cierre de elementos"],
|
|
8
|
+
["easing-emphasis", "cubic-bezier(0.16, 1, 0.3, 1)", "Transiciones editoriales puntuales"]
|
|
9
|
+
]
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
[
|
|
2
|
+
["opacity-disabled", "0.44", "Controles deshabilitados conservando legibilidad"],
|
|
3
|
+
["opacity-muted", "0.68", "Texto secundario sobre superficies oscuras"],
|
|
4
|
+
["opacity-overlay-light", "0.72", "Capas claras sobre textura institucional"],
|
|
5
|
+
["opacity-overlay-dark", "0.82", "Capas oscuras para preservar contraste"],
|
|
6
|
+
["opacity-scrim", "0.56", "Fondos de modales o overlays"]
|
|
7
|
+
]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
[
|
|
2
|
+
["size-icon-xs", "16px", "Iconos pequenos en metadata y controles densos"],
|
|
3
|
+
["size-icon-sm", "20px", "Iconos de botones, inputs y navegacion compacta"],
|
|
4
|
+
["size-icon-md", "24px", "Iconos base de UI y acciones recurrentes"],
|
|
5
|
+
["size-icon-lg", "32px", "Iconos destacados en cards o accesos"],
|
|
6
|
+
["size-control-sm", "32px", "Altura minima de controles compactos"],
|
|
7
|
+
["size-control-md", "40px", "Altura base de botones, inputs y selects"],
|
|
8
|
+
["size-control-lg", "48px", "Controles destacados o tactiles"],
|
|
9
|
+
["size-container-readable", "720px", "Ancho maximo para lectura editorial"],
|
|
10
|
+
["size-container-page", "1180px", "Ancho maximo de grillas y contenido principal"],
|
|
11
|
+
["size-container-wide", "1440px", "Ancho maximo para composiciones institucionales amplias"]
|
|
12
|
+
]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[
|
|
2
|
+
["1", "4px", "Detalles, hairline offsets"],
|
|
3
|
+
["2", "8px", "Icono/texto, separaciones densas"],
|
|
4
|
+
["3", "12px", "Controles compactos"],
|
|
5
|
+
["4", "16px", "Padding base y gaps de formularios"],
|
|
6
|
+
["5", "24px", "Grupos de contenido"],
|
|
7
|
+
["6", "32px", "Cards amplias y bloques internos"],
|
|
8
|
+
["7", "40px", "Separacion entre modulos pequenos"],
|
|
9
|
+
["8", "48px", "Bandas compactas"],
|
|
10
|
+
["9", "64px", "Secciones principales"],
|
|
11
|
+
["10", "80px", "Respiracion editorial"],
|
|
12
|
+
["11", "96px", "Separacion mayor entre bloques"]
|
|
13
|
+
]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[
|
|
2
|
+
["Display", "clamp(4.75rem, 8vw, 7.5rem)", "0.93", "-0.04em", "DM Sans SemiBold"],
|
|
3
|
+
["H1", "clamp(3.5rem, 6vw, 5.5rem)", "0.95", "-0.04em", "DM Sans SemiBold"],
|
|
4
|
+
["H2", "clamp(2.5rem, 4vw, 4rem)", "1.00", "-0.04em", "DM Sans SemiBold"],
|
|
5
|
+
["H3", "2rem", "1.08", "-0.04em", "DM Sans SemiBold"],
|
|
6
|
+
["H4", "1.5rem", "1.12", "-0.04em", "DM Sans SemiBold"],
|
|
7
|
+
["H5", "1.25rem", "1.16", "-0.04em", "DM Sans SemiBold"],
|
|
8
|
+
["H6", "1rem", "1.20", "-0.04em", "DM Sans SemiBold"],
|
|
9
|
+
["Lead", "1.5rem", "1.45", "0", "Source Sans Pro Regular"],
|
|
10
|
+
["Body", "1rem", "1.65", "-0.01em", "Source Sans Pro Regular"],
|
|
11
|
+
["UI", "0.9375rem", "1.45", "0", "DM Sans SemiBold"],
|
|
12
|
+
["Data label", "0.75rem", "1.35", "0.14em", "JetBrains Mono"]
|
|
13
|
+
]
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"settings": {
|
|
4
|
+
"color": {
|
|
5
|
+
"palette": [
|
|
6
|
+
{
|
|
7
|
+
"name": "Azul Noche",
|
|
8
|
+
"slug": "blue-950",
|
|
9
|
+
"color": "#101821"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "Azul Institucional",
|
|
13
|
+
"slug": "blue-700",
|
|
14
|
+
"color": "#155a8f"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "Celeste",
|
|
18
|
+
"slug": "blue-400",
|
|
19
|
+
"color": "#76AADC"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "Azul Suave",
|
|
23
|
+
"slug": "blue-100",
|
|
24
|
+
"color": "#e6f4fe"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "Rojo MPF",
|
|
28
|
+
"slug": "red-600",
|
|
29
|
+
"color": "#D3100E"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "Rojo Profundo",
|
|
33
|
+
"slug": "red-800",
|
|
34
|
+
"color": "#a52a32"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "Marfil",
|
|
38
|
+
"slug": "ivory",
|
|
39
|
+
"color": "#faf8f3"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "Papel",
|
|
43
|
+
"slug": "paper",
|
|
44
|
+
"color": "#faf8f5"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "Tinta",
|
|
48
|
+
"slug": "ink",
|
|
49
|
+
"color": "#1c2024"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "Texto Medio",
|
|
53
|
+
"slug": "muted",
|
|
54
|
+
"color": "#60646c"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"typography": {
|
|
59
|
+
"fontFamilies": [
|
|
60
|
+
{
|
|
61
|
+
"name": "DM Sans",
|
|
62
|
+
"slug": "dm-sans",
|
|
63
|
+
"fontFamily": "DM Sans"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "Source Sans Pro",
|
|
67
|
+
"slug": "source-sans-pro",
|
|
68
|
+
"fontFamily": "Source Sans Pro"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "JetBrains Mono",
|
|
72
|
+
"slug": "jetbrains-mono",
|
|
73
|
+
"fontFamily": "JetBrains Mono"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"spacing": {
|
|
78
|
+
"spacingSizes": [
|
|
79
|
+
{
|
|
80
|
+
"name": "Detalles, hairline offsets",
|
|
81
|
+
"slug": "1",
|
|
82
|
+
"size": "4px"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "Icono/texto, separaciones densas",
|
|
86
|
+
"slug": "2",
|
|
87
|
+
"size": "8px"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "Controles compactos",
|
|
91
|
+
"slug": "3",
|
|
92
|
+
"size": "12px"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "Padding base y gaps de formularios",
|
|
96
|
+
"slug": "4",
|
|
97
|
+
"size": "16px"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "Grupos de contenido",
|
|
101
|
+
"slug": "5",
|
|
102
|
+
"size": "24px"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "Cards amplias y bloques internos",
|
|
106
|
+
"slug": "6",
|
|
107
|
+
"size": "32px"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "Separacion entre modulos pequenos",
|
|
111
|
+
"slug": "7",
|
|
112
|
+
"size": "40px"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "Bandas compactas",
|
|
116
|
+
"slug": "8",
|
|
117
|
+
"size": "48px"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "Secciones principales",
|
|
121
|
+
"slug": "9",
|
|
122
|
+
"size": "64px"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "Respiracion editorial",
|
|
126
|
+
"slug": "10",
|
|
127
|
+
"size": "80px"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "Separacion mayor entre bloques",
|
|
131
|
+
"slug": "11",
|
|
132
|
+
"size": "96px"
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|