holygrail5 1.0.20 → 1.0.22
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 +72 -0
- package/config.json +89 -1
- package/dist/assets/fonts/SuisseIntlMono-Bold-WebS.woff +0 -0
- package/dist/assets/fonts/SuisseIntlMono-Bold-WebS.woff2 +0 -0
- package/dist/assets/fonts/SuisseIntlMono-Regular-WebS.woff +0 -0
- package/dist/assets/fonts/SuisseIntlMono-Regular-WebS.woff2 +0 -0
- package/dist/developer-guide.md +4 -0
- package/dist/guide-styles.css +16 -0
- package/dist/index.html +104 -21
- package/dist/output.css +93 -0
- package/dist/skills.html +5 -1
- package/dist/themes/dutti-demo.html +55 -0
- package/dist/themes/dutti.css +2 -0
- package/dist/themes/limited-demo.html +55 -0
- package/package.json +2 -2
- package/src/.data/.previous-values.json +76 -1
- package/src/assets/fonts/SuisseIntlMono-Bold-WebS.woff +0 -0
- package/src/assets/fonts/SuisseIntlMono-Bold-WebS.woff2 +0 -0
- package/src/assets/fonts/SuisseIntlMono-Regular-WebS.woff +0 -0
- package/src/assets/fonts/SuisseIntlMono-Regular-WebS.woff2 +0 -0
- package/src/build/theme-transformer.js +10 -3
- package/src/dev-server.js +28 -13
- package/src/docs-generator/guide-styles.css +16 -0
- package/src/docs-generator/html-generator.js +76 -66
- package/src/docs-generator/sections/colors-section.js +15 -5
- package/src/generators/utils.js +15 -0
- package/themes/dutti/README.md +17 -0
- package/themes/dutti/_variables.css +2 -0
package/README.md
CHANGED
|
@@ -45,6 +45,16 @@ Generador de CSS + guía HTML pensado para design systems ligeros: declaras tu `
|
|
|
45
45
|
- [Contribuir](#contribuir)
|
|
46
46
|
- [15. Licencia](#15-licencia)
|
|
47
47
|
- [Changelog](#changelog)
|
|
48
|
+
- [v1.0.22 - Junio 2026](#v1022---junio-2026)
|
|
49
|
+
- [v1.0.21 - Mayo 2026](#v1021---mayo-2026)
|
|
50
|
+
- [v1.0.20 - Abril 2026](#v1020---abril-2026)
|
|
51
|
+
- [v1.0.19 - Abril 2026](#v1019---abril-2026)
|
|
52
|
+
- [v1.0.18 - Abril 2026](#v1018---abril-2026)
|
|
53
|
+
- [v1.0.17 - Febrero 2026](#v1017---febrero-2026)
|
|
54
|
+
- [v1.0.16 - Febrero 2026](#v1016---febrero-2026)
|
|
55
|
+
- [v1.0.15 - Febrero 2026](#v1015---febrero-2026)
|
|
56
|
+
- [v1.0.14 - Febrero 2026](#v1014---febrero-2026)
|
|
57
|
+
- [v1.0.13 - Febrero 2026](#v1013---febrero-2026)
|
|
48
58
|
- [v1.0.12 - Diciembre 2024](#v1012---diciembre-2024)
|
|
49
59
|
|
|
50
60
|
---
|
|
@@ -547,6 +557,68 @@ Usa, adapta y comparte libremente mientras conserves la atribución.
|
|
|
547
557
|
|
|
548
558
|
## Changelog
|
|
549
559
|
|
|
560
|
+
### v1.0.22 - Junio 2026
|
|
561
|
+
|
|
562
|
+
- **Seguridad (guía y demos):** se escapan todos los valores del `config.json` al volcarse en la documentación generada (colores, tipografía, font families, variables CSS, helpers, aspect ratios, breakpoints, grid y containers). Evita inyección de HTML/JS al construir con un config no confiable y publicar `dist/index.html`. Nuevo `escapeHtml` centralizado en `src/generators/utils.js`.
|
|
563
|
+
- **Seguridad (dev-server):** `src/dev-server.js` ahora captura URLs malformadas (ya no cae el proceso con `GET /%`), corrige el filtro de path traversal por prefijo y escucha solo en `127.0.0.1`.
|
|
564
|
+
- **Fix:** los reemplazos del `ThemeTransformer` usan replacer de función para no corromper la salida cuando el contenido inyectado contiene `$`.
|
|
565
|
+
- **Fix:** `getPackageVersion()` leía una ruta inexistente y la guía mostraba la versión como vacía; ahora muestra la versión real.
|
|
566
|
+
- **Tests:** nuevo `tests/escaping.test.js` de regresión anti-inyección (suite en 29 tests). El CSS generado (`dist/output.css`, `dist/themes/dutti.css`) no cambia.
|
|
567
|
+
|
|
568
|
+
### v1.0.21 - Mayo 2026
|
|
569
|
+
|
|
570
|
+
- Ajustes en `typo-generator`: refinamiento de la generación de tablas tipográficas y casos límite del placeholder `HG_TYPO_TABLE`.
|
|
571
|
+
|
|
572
|
+
### v1.0.20 - Abril 2026
|
|
573
|
+
|
|
574
|
+
- Actualización de labels en la guía y demos (etiquetas de utilidades y secciones).
|
|
575
|
+
- Nuevas clases tipográficas y sus estilos asociados (`config.json`, `typo-generator.js`, demo de Dutti).
|
|
576
|
+
|
|
577
|
+
### v1.0.19 - Abril 2026
|
|
578
|
+
|
|
579
|
+
- Bump de versión y mantenimiento de `package.json`.
|
|
580
|
+
|
|
581
|
+
### v1.0.18 - Abril 2026
|
|
582
|
+
|
|
583
|
+
- Refactor amplio bajo el commit "cambios hg5":
|
|
584
|
+
- Reorganización de skills (`.claude/skills`, `.cursor/skills/maquetar-holygrail5`) y `.cursorrules`.
|
|
585
|
+
- Fuentes Suisse Intl y Suisse Works incorporadas en `src/assets/fonts/`.
|
|
586
|
+
- Documentación nueva en `docs/`: `ANALISIS-ARQUITECTURA.md`, `ANALISIS-DESIGN-SYSTEM.md`, `CHANGELOG-MEJORAS.md`, `ESTRUCTURA-CSS.md`, `GUIA-USO-OTRO-PROYECTO.md`, `SUPERPROMPT.md`.
|
|
587
|
+
- Ajustes en `asset-manager.js`, `build-orchestrator.js`, `components-generator.js` y `guide-styles.css`.
|
|
588
|
+
- Nueva clase de botón **badge** y documentación asociada en el tema Dutti.
|
|
589
|
+
- Tarjeta de producto y ajustes de `margin-left` y configuración del grid.
|
|
590
|
+
|
|
591
|
+
### v1.0.17 - Febrero 2026
|
|
592
|
+
|
|
593
|
+
- Nueva release con limpieza general y consolidación de cambios previos.
|
|
594
|
+
|
|
595
|
+
### v1.0.16 - Febrero 2026
|
|
596
|
+
|
|
597
|
+
- Botón **badge** inicial (variantes y estilos personalizados).
|
|
598
|
+
|
|
599
|
+
### v1.0.15 - Febrero 2026
|
|
600
|
+
|
|
601
|
+
- Nuevo botón con estilos personalizados (`themes/dutti/_buttons.css`, `dutti-demo.html`).
|
|
602
|
+
|
|
603
|
+
### v1.0.14 - Febrero 2026
|
|
604
|
+
|
|
605
|
+
- Limpieza: eliminados estilos duplicados traspasados desde HG2.
|
|
606
|
+
- Mejoras en grids (`Grids`).
|
|
607
|
+
- Cambio del color verde y nuevo skill para estructura de archivos CSS.
|
|
608
|
+
- Ajuste de columnas (`cambios cols`).
|
|
609
|
+
|
|
610
|
+
### v1.0.13 - Febrero 2026
|
|
611
|
+
|
|
612
|
+
- Refactor de la guía: ajustes de estilos y estructura (`guide-styles.css`, `html-generator.js`, demo de Dutti).
|
|
613
|
+
- Mejoras en `docs-generator`:
|
|
614
|
+
- Generación de la cuadrícula de colores con clasificación de primarios y semánticos.
|
|
615
|
+
- Margen lateral y columnas de gutter en la tabla HTML; configuración de grid actualizada.
|
|
616
|
+
- Conversión de `fontSize` a px y mejora de la tabla de clases.
|
|
617
|
+
- Nuevos helpers de espaciado con prefijo `hg-` para clases inline y block.
|
|
618
|
+
- **Soporte para ratios de aspecto** en `config.json`, generadores y guía HTML, con tests dedicados; nueva clase para imágenes/vídeos en ratios de aspecto y propiedad `display` en `hg-aspect-image`.
|
|
619
|
+
- Integración de la gestión de assets en el flujo de build (eliminada duplicación entre scripts).
|
|
620
|
+
- Documentación: índice y secciones del README, simplificación de `SUPERPROMPT.md`.
|
|
621
|
+
|
|
550
622
|
### v1.0.12 - Diciembre 2024
|
|
551
623
|
|
|
552
624
|
**🎉 Refactorización arquitectural completa**
|
package/config.json
CHANGED
|
@@ -68,6 +68,22 @@
|
|
|
68
68
|
"source": "src/assets/fonts/suisse-intl-semibold.woff",
|
|
69
69
|
"dest": "dist/assets/fonts/suisse-intl-semibold.woff"
|
|
70
70
|
},
|
|
71
|
+
{
|
|
72
|
+
"source": "src/assets/fonts/SuisseIntlMono-Regular-WebS.woff2",
|
|
73
|
+
"dest": "dist/assets/fonts/SuisseIntlMono-Regular-WebS.woff2"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"source": "src/assets/fonts/SuisseIntlMono-Regular-WebS.woff",
|
|
77
|
+
"dest": "dist/assets/fonts/SuisseIntlMono-Regular-WebS.woff"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"source": "src/assets/fonts/SuisseIntlMono-Bold-WebS.woff2",
|
|
81
|
+
"dest": "dist/assets/fonts/SuisseIntlMono-Bold-WebS.woff2"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"source": "src/assets/fonts/SuisseIntlMono-Bold-WebS.woff",
|
|
85
|
+
"dest": "dist/assets/fonts/SuisseIntlMono-Bold-WebS.woff"
|
|
86
|
+
},
|
|
71
87
|
{
|
|
72
88
|
"source": "src/assets/fonts/suisse-works-regular.woff2",
|
|
73
89
|
"dest": "dist/assets/fonts/suisse-works-regular.woff2"
|
|
@@ -120,7 +136,9 @@
|
|
|
120
136
|
"primary-light": "\"suisse-light\", Arial, Helvetica, sans-serif",
|
|
121
137
|
"primary-regular": "\"suisse-regular\", Arial, Helvetica, sans-serif",
|
|
122
138
|
"primary-bold": "\"suisse-semibold\", Arial, Helvetica, sans-serif",
|
|
123
|
-
"secondary": "\"suisse-medium\", Arial, Helvetica, sans-serif"
|
|
139
|
+
"secondary": "\"suisse-medium\", Arial, Helvetica, sans-serif",
|
|
140
|
+
"mono-regular": "\"suisse-mono-regular\", Consolas, Menlo, Monaco, \"Courier New\", monospace",
|
|
141
|
+
"mono-bold": "\"suisse-mono-bold\", Consolas, Menlo, Monaco, \"Courier New\", monospace"
|
|
124
142
|
},
|
|
125
143
|
"spacingMap": {
|
|
126
144
|
"0": "0",
|
|
@@ -876,6 +894,76 @@
|
|
|
876
894
|
"fontSize": "12px",
|
|
877
895
|
"lineHeight": "1"
|
|
878
896
|
}
|
|
897
|
+
},
|
|
898
|
+
"label-m-b": {
|
|
899
|
+
"fontFamily": "\"suisse-regular\", Arial, Helvetica, sans-serif",
|
|
900
|
+
"fontWeight": "300",
|
|
901
|
+
"letterSpacing": "0.16em",
|
|
902
|
+
"textTransform": "uppercase",
|
|
903
|
+
"mobile": {
|
|
904
|
+
"fontSize": "12px",
|
|
905
|
+
"lineHeight": "1"
|
|
906
|
+
},
|
|
907
|
+
"desktop": {
|
|
908
|
+
"fontSize": "12px",
|
|
909
|
+
"lineHeight": "1"
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
"label-s": {
|
|
913
|
+
"fontFamily": "\"suisse-light\", Arial, Helvetica, sans-serif",
|
|
914
|
+
"fontWeight": "100",
|
|
915
|
+
"letterSpacing": "0.06em",
|
|
916
|
+
"textTransform": "uppercase",
|
|
917
|
+
"mobile": {
|
|
918
|
+
"fontSize": "10px",
|
|
919
|
+
"lineHeight": "1"
|
|
920
|
+
},
|
|
921
|
+
"desktop": {
|
|
922
|
+
"fontSize": "10px",
|
|
923
|
+
"lineHeight": "1"
|
|
924
|
+
}
|
|
925
|
+
},
|
|
926
|
+
"label-s-b": {
|
|
927
|
+
"fontFamily": "\"suisse-regular\", Arial, Helvetica, sans-serif",
|
|
928
|
+
"fontWeight": "300",
|
|
929
|
+
"letterSpacing": "0.06em",
|
|
930
|
+
"textTransform": "uppercase",
|
|
931
|
+
"mobile": {
|
|
932
|
+
"fontSize": "10px",
|
|
933
|
+
"lineHeight": "1"
|
|
934
|
+
},
|
|
935
|
+
"desktop": {
|
|
936
|
+
"fontSize": "10px",
|
|
937
|
+
"lineHeight": "1"
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
"label-mono": {
|
|
941
|
+
"fontFamily": "\"suisse-mono-regular\", Arial, Helvetica, sans-serif",
|
|
942
|
+
"fontWeight": "400",
|
|
943
|
+
"letterSpacing": "0.06em",
|
|
944
|
+
"textTransform": "uppercase",
|
|
945
|
+
"mobile": {
|
|
946
|
+
"fontSize": "10px",
|
|
947
|
+
"lineHeight": "1.2"
|
|
948
|
+
},
|
|
949
|
+
"desktop": {
|
|
950
|
+
"fontSize": "10px",
|
|
951
|
+
"lineHeight": "1.2"
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
"label-mono-b": {
|
|
955
|
+
"fontFamily": "\"suisse-mono-bold\", Arial, Helvetica, sans-serif",
|
|
956
|
+
"fontWeight": "700",
|
|
957
|
+
"letterSpacing": "0.06em",
|
|
958
|
+
"textTransform": "uppercase",
|
|
959
|
+
"mobile": {
|
|
960
|
+
"fontSize": "10px",
|
|
961
|
+
"lineHeight": "1.2"
|
|
962
|
+
},
|
|
963
|
+
"desktop": {
|
|
964
|
+
"fontSize": "10px",
|
|
965
|
+
"lineHeight": "1.2"
|
|
966
|
+
}
|
|
879
967
|
}
|
|
880
968
|
}
|
|
881
969
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/developer-guide.md
CHANGED
|
@@ -384,6 +384,10 @@ Las clases tipográficas se generan desde `config.typo`. Cada clase se aplica di
|
|
|
384
384
|
<!-- Body variants -->
|
|
385
385
|
<p class="hg-hg-body-m">Body medium (12→13px)</p>
|
|
386
386
|
<p class="hg-hg-body-m-b">Body medium bold (weight 400)</p>
|
|
387
|
+
|
|
388
|
+
<!-- Labels mono (Suisse Intl Mono, 10px / 120%) -->
|
|
389
|
+
<span class="label-mono">Label mono regular</span>
|
|
390
|
+
<span class="label-mono-b">Label mono bold</span>
|
|
387
391
|
```
|
|
388
392
|
|
|
389
393
|
### Cómo funciona
|
package/dist/guide-styles.css
CHANGED
|
@@ -41,6 +41,22 @@
|
|
|
41
41
|
url('assets/fonts/suisse-intl-semibold.woff2') format('woff2'),
|
|
42
42
|
url('assets/fonts/suisse-intl-semibold.woff') format('woff');
|
|
43
43
|
}
|
|
44
|
+
@font-face {
|
|
45
|
+
font-family: "suisse-mono-regular";
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
font-display: swap;
|
|
48
|
+
src: local("SuisseIntlMono-Regular"),
|
|
49
|
+
url('assets/fonts/SuisseIntlMono-Regular-WebS.woff2') format('woff2'),
|
|
50
|
+
url('assets/fonts/SuisseIntlMono-Regular-WebS.woff') format('woff');
|
|
51
|
+
}
|
|
52
|
+
@font-face {
|
|
53
|
+
font-family: "suisse-mono-bold";
|
|
54
|
+
font-weight: 700;
|
|
55
|
+
font-display: swap;
|
|
56
|
+
src: local("SuisseIntlMono-Bold"),
|
|
57
|
+
url('assets/fonts/SuisseIntlMono-Bold-WebS.woff2') format('woff2'),
|
|
58
|
+
url('assets/fonts/SuisseIntlMono-Bold-WebS.woff') format('woff');
|
|
59
|
+
}
|
|
44
60
|
/* Suisse Works (serif) — reservado para el tema Limited */
|
|
45
61
|
@font-face {
|
|
46
62
|
font-family: "suisse-works-regular";
|
package/dist/index.html
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
<!-- Lenis Smooth Scroll - Solo para la guía -->
|
|
17
17
|
<script src="https://cdn.jsdelivr.net/gh/studio-freight/lenis@1.0.29/bundled/lenis.min.js"></script>
|
|
18
|
-
<link rel="stylesheet" href="output.css
|
|
19
|
-
<link rel="stylesheet" href="guide-styles.css?v=
|
|
18
|
+
<link rel="stylesheet" href="output.css">
|
|
19
|
+
<link rel="stylesheet" href="guide-styles.css?v=1780410224827">
|
|
20
20
|
<style>
|
|
21
21
|
|
|
22
22
|
body {
|
|
@@ -74,7 +74,11 @@
|
|
|
74
74
|
</a>
|
|
75
75
|
</div>
|
|
76
76
|
<p class="text-m guide-sidebar-meta">
|
|
77
|
-
last update:
|
|
77
|
+
last update: 2/6/2026, 16:23:44
|
|
78
|
+
</p>
|
|
79
|
+
|
|
80
|
+
<p class="text-m guide-sidebar-meta-small">
|
|
81
|
+
Version: 1.0.22
|
|
78
82
|
</p>
|
|
79
83
|
|
|
80
84
|
|
|
@@ -425,27 +429,39 @@
|
|
|
425
429
|
|
|
426
430
|
<tr>
|
|
427
431
|
<td class="guide-table-name">primary-light</td>
|
|
428
|
-
<td class="guide-font-family-preview" style='font-family:
|
|
429
|
-
<td class="guide-table-value "
|
|
432
|
+
<td class="guide-font-family-preview" style='font-family: "suisse-light", Arial, Helvetica, sans-serif;'>Aa</td>
|
|
433
|
+
<td class="guide-table-value ">"suisse-light", Arial, Helvetica, sans-serif</td>
|
|
430
434
|
<td class="guide-table-value">--hg-typo-font-family-primary-light</td>
|
|
431
435
|
</tr>
|
|
432
436
|
<tr>
|
|
433
437
|
<td class="guide-table-name">primary-regular</td>
|
|
434
|
-
<td class="guide-font-family-preview" style='font-family:
|
|
435
|
-
<td class="guide-table-value "
|
|
438
|
+
<td class="guide-font-family-preview" style='font-family: "suisse-regular", Arial, Helvetica, sans-serif;'>Aa</td>
|
|
439
|
+
<td class="guide-table-value ">"suisse-regular", Arial, Helvetica, sans-serif</td>
|
|
436
440
|
<td class="guide-table-value">--hg-typo-font-family-primary-regular</td>
|
|
437
441
|
</tr>
|
|
438
442
|
<tr>
|
|
439
443
|
<td class="guide-table-name">primary-bold</td>
|
|
440
|
-
<td class="guide-font-family-preview" style='font-family:
|
|
441
|
-
<td class="guide-table-value "
|
|
444
|
+
<td class="guide-font-family-preview" style='font-family: "suisse-semibold", Arial, Helvetica, sans-serif;'>Aa</td>
|
|
445
|
+
<td class="guide-table-value ">"suisse-semibold", Arial, Helvetica, sans-serif</td>
|
|
442
446
|
<td class="guide-table-value">--hg-typo-font-family-primary-bold</td>
|
|
443
447
|
</tr>
|
|
444
448
|
<tr>
|
|
445
449
|
<td class="guide-table-name">secondary</td>
|
|
446
|
-
<td class="guide-font-family-preview" style='font-family:
|
|
447
|
-
<td class="guide-table-value "
|
|
450
|
+
<td class="guide-font-family-preview" style='font-family: "suisse-medium", Arial, Helvetica, sans-serif;'>Aa</td>
|
|
451
|
+
<td class="guide-table-value ">"suisse-medium", Arial, Helvetica, sans-serif</td>
|
|
448
452
|
<td class="guide-table-value">--hg-typo-font-family-secondary</td>
|
|
453
|
+
</tr>
|
|
454
|
+
<tr>
|
|
455
|
+
<td class="guide-table-name">mono-regular</td>
|
|
456
|
+
<td class="guide-font-family-preview" style='font-family: "suisse-mono-regular", Consolas, Menlo, Monaco, "Courier New", monospace;'>Aa</td>
|
|
457
|
+
<td class="guide-table-value ">"suisse-mono-regular", Consolas, Menlo, Monaco, "Courier New", monospace</td>
|
|
458
|
+
<td class="guide-table-value">--hg-typo-font-family-mono-regular</td>
|
|
459
|
+
</tr>
|
|
460
|
+
<tr>
|
|
461
|
+
<td class="guide-table-name">mono-bold</td>
|
|
462
|
+
<td class="guide-font-family-preview" style='font-family: "suisse-mono-bold", Consolas, Menlo, Monaco, "Courier New", monospace;'>Aa</td>
|
|
463
|
+
<td class="guide-table-value ">"suisse-mono-bold", Consolas, Menlo, Monaco, "Courier New", monospace</td>
|
|
464
|
+
<td class="guide-table-value">--hg-typo-font-family-mono-bold</td>
|
|
449
465
|
</tr>
|
|
450
466
|
</tbody>
|
|
451
467
|
</table>
|
|
@@ -682,6 +698,61 @@
|
|
|
682
698
|
<td><span class="hg-typo-num">1</span></td>
|
|
683
699
|
<td>0.16em</td>
|
|
684
700
|
<td>uppercase</td>
|
|
701
|
+
</tr>
|
|
702
|
+
<tr>
|
|
703
|
+
<td class="hg-typo-preview"><span class="label-m-b">Aa Bb Cc 123</span></td>
|
|
704
|
+
<td><code>.label-m-b</code></td>
|
|
705
|
+
<td><code>primary-regular</code> <span class="hg-typo-meta">"suisse-regular", Arial, Helvetica, sans-serif</span></td>
|
|
706
|
+
<td>300</td>
|
|
707
|
+
<td><span class="hg-typo-num">12px</span></td>
|
|
708
|
+
<td><span class="hg-typo-num">12px</span></td>
|
|
709
|
+
<td><span class="hg-typo-num">1</span></td>
|
|
710
|
+
<td>0.16em</td>
|
|
711
|
+
<td>uppercase</td>
|
|
712
|
+
</tr>
|
|
713
|
+
<tr>
|
|
714
|
+
<td class="hg-typo-preview"><span class="label-s">Aa Bb Cc 123</span></td>
|
|
715
|
+
<td><code>.label-s</code></td>
|
|
716
|
+
<td><code>primary-light</code> <span class="hg-typo-meta">"suisse-light", Arial, Helvetica, sans-serif</span></td>
|
|
717
|
+
<td>100</td>
|
|
718
|
+
<td><span class="hg-typo-num">10px</span></td>
|
|
719
|
+
<td><span class="hg-typo-num">10px</span></td>
|
|
720
|
+
<td><span class="hg-typo-num">1</span></td>
|
|
721
|
+
<td>0.06em</td>
|
|
722
|
+
<td>uppercase</td>
|
|
723
|
+
</tr>
|
|
724
|
+
<tr>
|
|
725
|
+
<td class="hg-typo-preview"><span class="label-s-b">Aa Bb Cc 123</span></td>
|
|
726
|
+
<td><code>.label-s-b</code></td>
|
|
727
|
+
<td><code>primary-regular</code> <span class="hg-typo-meta">"suisse-regular", Arial, Helvetica, sans-serif</span></td>
|
|
728
|
+
<td>300</td>
|
|
729
|
+
<td><span class="hg-typo-num">10px</span></td>
|
|
730
|
+
<td><span class="hg-typo-num">10px</span></td>
|
|
731
|
+
<td><span class="hg-typo-num">1</span></td>
|
|
732
|
+
<td>0.06em</td>
|
|
733
|
+
<td>uppercase</td>
|
|
734
|
+
</tr>
|
|
735
|
+
<tr>
|
|
736
|
+
<td class="hg-typo-preview"><span class="label-mono">Aa Bb Cc 123</span></td>
|
|
737
|
+
<td><code>.label-mono</code></td>
|
|
738
|
+
<td><code>suisse-mono-regular</code> <span class="hg-typo-meta">"suisse-mono-regular", Arial, Helvetica, sans-serif</span></td>
|
|
739
|
+
<td>400</td>
|
|
740
|
+
<td><span class="hg-typo-num">10px</span></td>
|
|
741
|
+
<td><span class="hg-typo-num">10px</span></td>
|
|
742
|
+
<td><span class="hg-typo-num">1.2</span></td>
|
|
743
|
+
<td>0.06em</td>
|
|
744
|
+
<td>uppercase</td>
|
|
745
|
+
</tr>
|
|
746
|
+
<tr>
|
|
747
|
+
<td class="hg-typo-preview"><span class="label-mono-b">Aa Bb Cc 123</span></td>
|
|
748
|
+
<td><code>.label-mono-b</code></td>
|
|
749
|
+
<td><code>suisse-mono-bold</code> <span class="hg-typo-meta">"suisse-mono-bold", Arial, Helvetica, sans-serif</span></td>
|
|
750
|
+
<td>700</td>
|
|
751
|
+
<td><span class="hg-typo-num">10px</span></td>
|
|
752
|
+
<td><span class="hg-typo-num">10px</span></td>
|
|
753
|
+
<td><span class="hg-typo-num">1.2</span></td>
|
|
754
|
+
<td>0.06em</td>
|
|
755
|
+
<td>uppercase</td>
|
|
685
756
|
</tr>
|
|
686
757
|
</tbody>
|
|
687
758
|
</table>
|
|
@@ -713,7 +784,7 @@
|
|
|
713
784
|
<div class="guide-variables-grid">
|
|
714
785
|
|
|
715
786
|
<div class="guide-variables-group">
|
|
716
|
-
<h4 class="guide-variables-group-title">Font family <span class="guide-variables-group-count">(
|
|
787
|
+
<h4 class="guide-variables-group-title">Font family <span class="guide-variables-group-count">(9)</span></h4>
|
|
717
788
|
<div class="guide-variables-group-list">
|
|
718
789
|
|
|
719
790
|
<div class="guide-variable-item">
|
|
@@ -722,27 +793,35 @@
|
|
|
722
793
|
</div>
|
|
723
794
|
<div class="guide-variable-item">
|
|
724
795
|
<span class="guide-variable-name guide-copyable " data-copy-value="--hg-typo-font-family-secondary" title="Click para copiar --hg-typo-font-family-secondary">--hg-typo-font-family-secondary</span>
|
|
725
|
-
<span class="guide-variable-values"><span class="guide-variable-value guide-copyable " data-copy-value="
|
|
796
|
+
<span class="guide-variable-values"><span class="guide-variable-value guide-copyable " data-copy-value=""ms-serif", serif" title="Click para copiar "ms-serif", serif">"ms-serif", serif</span></span>
|
|
726
797
|
</div>
|
|
727
798
|
<div class="guide-variable-item">
|
|
728
799
|
<span class="guide-variable-name guide-copyable " data-copy-value="--hg-typo-font-family-serif" title="Click para copiar --hg-typo-font-family-serif">--hg-typo-font-family-serif</span>
|
|
729
|
-
<span class="guide-variable-values"><span class="guide-variable-value guide-copyable " data-copy-value="
|
|
800
|
+
<span class="guide-variable-values"><span class="guide-variable-value guide-copyable " data-copy-value="'Playfair Display', 'Georgia', serif" title="Click para copiar 'Playfair Display', 'Georgia', serif">'Playfair Display', 'Georgia', serif</span></span>
|
|
730
801
|
</div>
|
|
731
802
|
<div class="guide-variable-item">
|
|
732
803
|
<span class="guide-variable-name guide-copyable " data-copy-value="--hg-typo-font-family-primary-regular" title="Click para copiar --hg-typo-font-family-primary-regular">--hg-typo-font-family-primary-regular</span>
|
|
733
|
-
<span class="guide-variable-values"><span class="guide-variable-value guide-copyable " data-copy-value="
|
|
804
|
+
<span class="guide-variable-values"><span class="guide-variable-value guide-copyable " data-copy-value=""Suisse Intl", Arial, Helvetica, sans-serif" title="Click para copiar "Suisse Intl", Arial, Helvetica, sans-serif">"Suisse Intl", Arial, Helvetica, sans-serif</span></span>
|
|
734
805
|
</div>
|
|
735
806
|
<div class="guide-variable-item">
|
|
736
807
|
<span class="guide-variable-name guide-copyable " data-copy-value="--hg-typo-font-family-primary-regular" title="Click para copiar --hg-typo-font-family-primary-regular">--hg-typo-font-family-primary-regular</span>
|
|
737
|
-
<span class="guide-variable-values"><span class="guide-variable-value guide-copyable " data-copy-value="
|
|
808
|
+
<span class="guide-variable-values"><span class="guide-variable-value guide-copyable " data-copy-value=""suisse-regular", Arial, Helvetica, sans-serif" title="Click para copiar "suisse-regular", Arial, Helvetica, sans-serif">"suisse-regular", Arial, Helvetica, sans-serif</span></span>
|
|
738
809
|
</div>
|
|
739
810
|
<div class="guide-variable-item">
|
|
740
811
|
<span class="guide-variable-name guide-copyable " data-copy-value="--hg-typo-font-family-primary-light" title="Click para copiar --hg-typo-font-family-primary-light">--hg-typo-font-family-primary-light</span>
|
|
741
|
-
<span class="guide-variable-values"><span class="guide-variable-value guide-copyable " data-copy-value="
|
|
812
|
+
<span class="guide-variable-values"><span class="guide-variable-value guide-copyable " data-copy-value=""suisse-light", Arial, Helvetica, sans-serif" title="Click para copiar "suisse-light", Arial, Helvetica, sans-serif">"suisse-light", Arial, Helvetica, sans-serif</span></span>
|
|
742
813
|
</div>
|
|
743
814
|
<div class="guide-variable-item">
|
|
744
815
|
<span class="guide-variable-name guide-copyable " data-copy-value="--hg-typo-font-family-primary-bold" title="Click para copiar --hg-typo-font-family-primary-bold">--hg-typo-font-family-primary-bold</span>
|
|
745
|
-
<span class="guide-variable-values"><span class="guide-variable-value guide-copyable " data-copy-value="
|
|
816
|
+
<span class="guide-variable-values"><span class="guide-variable-value guide-copyable " data-copy-value=""suisse-semibold", Arial, Helvetica, sans-serif" title="Click para copiar "suisse-semibold", Arial, Helvetica, sans-serif">"suisse-semibold", Arial, Helvetica, sans-serif</span></span>
|
|
817
|
+
</div>
|
|
818
|
+
<div class="guide-variable-item">
|
|
819
|
+
<span class="guide-variable-name guide-copyable " data-copy-value="--hg-typo-font-family-mono-regular" title="Click para copiar --hg-typo-font-family-mono-regular">--hg-typo-font-family-mono-regular</span>
|
|
820
|
+
<span class="guide-variable-values"><span class="guide-variable-value guide-copyable " data-copy-value=""suisse-mono-regular", Arial, Helvetica, sans-serif" title="Click para copiar "suisse-mono-regular", Arial, Helvetica, sans-serif">"suisse-mono-regular", Arial, Helvetica, sans-serif</span></span>
|
|
821
|
+
</div>
|
|
822
|
+
<div class="guide-variable-item">
|
|
823
|
+
<span class="guide-variable-name guide-copyable " data-copy-value="--hg-typo-font-family-mono-bold" title="Click para copiar --hg-typo-font-family-mono-bold">--hg-typo-font-family-mono-bold</span>
|
|
824
|
+
<span class="guide-variable-values"><span class="guide-variable-value guide-copyable " data-copy-value=""suisse-mono-bold", Arial, Helvetica, sans-serif" title="Click para copiar "suisse-mono-bold", Arial, Helvetica, sans-serif">"suisse-mono-bold", Arial, Helvetica, sans-serif</span></span>
|
|
746
825
|
</div>
|
|
747
826
|
</div>
|
|
748
827
|
</div>
|
|
@@ -819,7 +898,7 @@
|
|
|
819
898
|
</div>
|
|
820
899
|
</div>
|
|
821
900
|
<div class="guide-variables-group">
|
|
822
|
-
<h4 class="guide-variables-group-title">Letter spacing <span class="guide-variables-group-count">(
|
|
901
|
+
<h4 class="guide-variables-group-title">Letter spacing <span class="guide-variables-group-count">(10)</span></h4>
|
|
823
902
|
<div class="guide-variables-group-list">
|
|
824
903
|
|
|
825
904
|
<div class="guide-variable-item">
|
|
@@ -858,6 +937,10 @@
|
|
|
858
937
|
<span class="guide-variable-name guide-copyable " data-copy-value="--hg-typo-letter-spacing-0-04em" title="Click para copiar --hg-typo-letter-spacing-0-04em">--hg-typo-letter-spacing-0-04em</span>
|
|
859
938
|
<span class="guide-variable-values"><span class="guide-variable-value guide-copyable " data-copy-value="0.04em" title="Click para copiar 0.04em">0.04em</span></span>
|
|
860
939
|
</div>
|
|
940
|
+
<div class="guide-variable-item">
|
|
941
|
+
<span class="guide-variable-name guide-copyable " data-copy-value="--hg-typo-letter-spacing-0-06em" title="Click para copiar --hg-typo-letter-spacing-0-06em">--hg-typo-letter-spacing-0-06em</span>
|
|
942
|
+
<span class="guide-variable-values"><span class="guide-variable-value guide-copyable " data-copy-value="0.06em" title="Click para copiar 0.06em">0.06em</span></span>
|
|
943
|
+
</div>
|
|
861
944
|
</div>
|
|
862
945
|
</div>
|
|
863
946
|
<div class="guide-variables-group">
|
|
@@ -3530,14 +3613,14 @@
|
|
|
3530
3613
|
<tr>
|
|
3531
3614
|
<td class="guide-table-name">Mobile</td>
|
|
3532
3615
|
<td class="guide-table-value ">
|
|
3533
|
-
1px
|
|
3616
|
+
1px
|
|
3534
3617
|
(0.0625rem)
|
|
3535
3618
|
</td>
|
|
3536
3619
|
</tr>
|
|
3537
3620
|
<tr>
|
|
3538
3621
|
<td class="guide-table-name">Desktop</td>
|
|
3539
3622
|
<td class="guide-table-value ">
|
|
3540
|
-
992px
|
|
3623
|
+
992px
|
|
3541
3624
|
(62rem)
|
|
3542
3625
|
</td>
|
|
3543
3626
|
</tr>
|
package/dist/output.css
CHANGED
|
@@ -60,6 +60,8 @@ p, h1, h2, h3, h4, h5, h6 {
|
|
|
60
60
|
--hg-typo-font-family-primary-regular: "suisse-regular", Arial, Helvetica, sans-serif;
|
|
61
61
|
--hg-typo-font-family-primary-bold: "suisse-semibold", Arial, Helvetica, sans-serif;
|
|
62
62
|
--hg-typo-font-family-secondary: "suisse-medium", Arial, Helvetica, sans-serif;
|
|
63
|
+
--hg-typo-font-family-mono-regular: "suisse-mono-regular", Consolas, Menlo, Monaco, "Courier New", monospace;
|
|
64
|
+
--hg-typo-font-family-mono-bold: "suisse-mono-bold", Consolas, Menlo, Monaco, "Courier New", monospace;
|
|
63
65
|
--hg-typo-line-height-1: 1;
|
|
64
66
|
--hg-typo-line-height-1-976: 1.976;
|
|
65
67
|
--hg-typo-line-height-1-2: 1.2;
|
|
@@ -84,6 +86,7 @@ p, h1, h2, h3, h4, h5, h6 {
|
|
|
84
86
|
--hg-typo-letter-spacing-110: 110rem;
|
|
85
87
|
--hg-typo-letter-spacing-0-16em: 0.16em;
|
|
86
88
|
--hg-typo-letter-spacing-0-04em: 0.04em;
|
|
89
|
+
--hg-typo-letter-spacing-0-06em: 0.06em;
|
|
87
90
|
--hg-typo-text-transform-none: none;
|
|
88
91
|
--hg-typo-text-transform-uppercase: uppercase;
|
|
89
92
|
--hg-typo-text-transform-otro: otro;
|
|
@@ -2331,6 +2334,51 @@ p, h1, h2, h3, h4, h5, h6 {
|
|
|
2331
2334
|
text-transform: var(--hg-typo-text-transform-uppercase);
|
|
2332
2335
|
}
|
|
2333
2336
|
|
|
2337
|
+
.label-m-b {
|
|
2338
|
+
font-family: var(--hg-typo-font-family-primary-regular);
|
|
2339
|
+
font-weight: var(--hg-typo-font-weight-300);
|
|
2340
|
+
font-size: var(--hg-typo-font-size-12);
|
|
2341
|
+
line-height: var(--hg-typo-line-height-1);
|
|
2342
|
+
letter-spacing: var(--hg-typo-letter-spacing-0-16em);
|
|
2343
|
+
text-transform: var(--hg-typo-text-transform-uppercase);
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
.label-s {
|
|
2347
|
+
font-family: var(--hg-typo-font-family-primary-light);
|
|
2348
|
+
font-weight: var(--hg-typo-font-weight-100);
|
|
2349
|
+
font-size: var(--hg-typo-font-size-10);
|
|
2350
|
+
line-height: var(--hg-typo-line-height-1);
|
|
2351
|
+
letter-spacing: var(--hg-typo-letter-spacing-0-06em);
|
|
2352
|
+
text-transform: var(--hg-typo-text-transform-uppercase);
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2355
|
+
.label-s-b {
|
|
2356
|
+
font-family: var(--hg-typo-font-family-primary-regular);
|
|
2357
|
+
font-weight: var(--hg-typo-font-weight-300);
|
|
2358
|
+
font-size: var(--hg-typo-font-size-10);
|
|
2359
|
+
line-height: var(--hg-typo-line-height-1);
|
|
2360
|
+
letter-spacing: var(--hg-typo-letter-spacing-0-06em);
|
|
2361
|
+
text-transform: var(--hg-typo-text-transform-uppercase);
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2364
|
+
.label-mono {
|
|
2365
|
+
font-family: var(--hg-typo-font-family-suisse-mono-regular);
|
|
2366
|
+
font-weight: var(--hg-typo-font-weight-400);
|
|
2367
|
+
font-size: var(--hg-typo-font-size-10);
|
|
2368
|
+
line-height: var(--hg-typo-line-height-1-2);
|
|
2369
|
+
letter-spacing: var(--hg-typo-letter-spacing-0-06em);
|
|
2370
|
+
text-transform: var(--hg-typo-text-transform-uppercase);
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
.label-mono-b {
|
|
2374
|
+
font-family: var(--hg-typo-font-family-suisse-mono-bold);
|
|
2375
|
+
font-weight: var(--hg-typo-font-weight-700);
|
|
2376
|
+
font-size: var(--hg-typo-font-size-10);
|
|
2377
|
+
line-height: var(--hg-typo-line-height-1-2);
|
|
2378
|
+
letter-spacing: var(--hg-typo-letter-spacing-0-06em);
|
|
2379
|
+
text-transform: var(--hg-typo-text-transform-uppercase);
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2334
2382
|
}
|
|
2335
2383
|
|
|
2336
2384
|
/* Tipografías - Desktop (min-width: 62rem) */
|
|
@@ -2458,4 +2506,49 @@ p, h1, h2, h3, h4, h5, h6 {
|
|
|
2458
2506
|
text-transform: var(--hg-typo-text-transform-uppercase);
|
|
2459
2507
|
}
|
|
2460
2508
|
|
|
2509
|
+
.label-m-b {
|
|
2510
|
+
font-family: var(--hg-typo-font-family-primary-regular);
|
|
2511
|
+
font-weight: var(--hg-typo-font-weight-300);
|
|
2512
|
+
font-size: var(--hg-typo-font-size-12);
|
|
2513
|
+
line-height: var(--hg-typo-line-height-1);
|
|
2514
|
+
letter-spacing: var(--hg-typo-letter-spacing-0-16em);
|
|
2515
|
+
text-transform: var(--hg-typo-text-transform-uppercase);
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
.label-s {
|
|
2519
|
+
font-family: var(--hg-typo-font-family-primary-light);
|
|
2520
|
+
font-weight: var(--hg-typo-font-weight-100);
|
|
2521
|
+
font-size: var(--hg-typo-font-size-10);
|
|
2522
|
+
line-height: var(--hg-typo-line-height-1);
|
|
2523
|
+
letter-spacing: var(--hg-typo-letter-spacing-0-06em);
|
|
2524
|
+
text-transform: var(--hg-typo-text-transform-uppercase);
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
.label-s-b {
|
|
2528
|
+
font-family: var(--hg-typo-font-family-primary-regular);
|
|
2529
|
+
font-weight: var(--hg-typo-font-weight-300);
|
|
2530
|
+
font-size: var(--hg-typo-font-size-10);
|
|
2531
|
+
line-height: var(--hg-typo-line-height-1);
|
|
2532
|
+
letter-spacing: var(--hg-typo-letter-spacing-0-06em);
|
|
2533
|
+
text-transform: var(--hg-typo-text-transform-uppercase);
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
.label-mono {
|
|
2537
|
+
font-family: var(--hg-typo-font-family-suisse-mono-regular);
|
|
2538
|
+
font-weight: var(--hg-typo-font-weight-400);
|
|
2539
|
+
font-size: var(--hg-typo-font-size-10);
|
|
2540
|
+
line-height: var(--hg-typo-line-height-1-2);
|
|
2541
|
+
letter-spacing: var(--hg-typo-letter-spacing-0-06em);
|
|
2542
|
+
text-transform: var(--hg-typo-text-transform-uppercase);
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
.label-mono-b {
|
|
2546
|
+
font-family: var(--hg-typo-font-family-suisse-mono-bold);
|
|
2547
|
+
font-weight: var(--hg-typo-font-weight-700);
|
|
2548
|
+
font-size: var(--hg-typo-font-size-10);
|
|
2549
|
+
line-height: var(--hg-typo-line-height-1-2);
|
|
2550
|
+
letter-spacing: var(--hg-typo-letter-spacing-0-06em);
|
|
2551
|
+
text-transform: var(--hg-typo-text-transform-uppercase);
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2461
2554
|
}
|
package/dist/skills.html
CHANGED
|
@@ -436,7 +436,11 @@ border-color: var(--hg-color-error);
|
|
|
436
436
|
|
|
437
437
|
<!-- Body variants -->
|
|
438
438
|
<p class="hg-hg-body-m">Body medium (12→13px)</p>
|
|
439
|
-
<p class="hg-hg-body-m-b">Body medium bold (weight 400)</p>
|
|
439
|
+
<p class="hg-hg-body-m-b">Body medium bold (weight 400)</p>
|
|
440
|
+
|
|
441
|
+
<!-- Labels mono (Suisse Intl Mono, 10px / 120%) -->
|
|
442
|
+
<span class="label-mono">Label mono regular</span>
|
|
443
|
+
<span class="label-mono-b">Label mono bold</span></code></div>
|
|
440
444
|
<h4 class="sk-md-h3">Cómo funciona</h4>
|
|
441
445
|
<p class="sk-md-p">Las clases son mobile-first. Los valores base aplican a mobile y un media query <code class="sk-inline-code">@media (min-width: 992px)</code> sobrescribe para desktop.</p>
|
|
442
446
|
<div class="sk-code-block"><code>/* CSS generado (ejemplo) */
|