@lucasviola/specwiki 1.1.0 → 1.1.1

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  <br><br>
6
6
 
7
7
  [![CI](https://github.com/lucasviola/specwiki/actions/workflows/ci.yml/badge.svg)](https://github.com/lucasviola/specwiki/actions/workflows/ci.yml)
8
- [![version](https://img.shields.io/badge/version-1.1.0-blue)](package.json)
8
+ [![version](https://img.shields.io/badge/version-1.1.1-blue)](package.json)
9
9
  [![node](https://img.shields.io/badge/node-%3E%3D20-339933?logo=node.js&logoColor=white)](package.json)
10
10
  [![license](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
11
11
 
@@ -34,6 +34,19 @@
34
34
  --specwiki-syntax-deletion: #cf222e;
35
35
  --specwiki-syntax-deletion-background: #ffebe9;
36
36
  --specwiki-header-block-size: calc(var(--size-tool) + 1px);
37
+ --font-size-h1: 2rem;
38
+ --font-size-h2: 1.625rem;
39
+ --font-size-h3: 1.375rem;
40
+ --font-size-h4: 1.125rem;
41
+ --font-size-h5: 1rem;
42
+ --font-size-h6: 0.875rem;
43
+ --font-size-caption: 0.6875rem;
44
+ --font-size-ui-sm: 0.75rem;
45
+ --font-size-ui: 0.8125rem;
46
+ --font-size-body: 0.875rem;
47
+ --font-family-monospace-brand:
48
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
49
+ monospace;
37
50
  }
38
51
 
39
52
  :root[data-theme="light"] {
@@ -118,8 +131,8 @@
118
131
 
119
132
  body.specwiki {
120
133
  margin: 0;
121
- font-family: var(--font-family-base);
122
- font-size: 0.875rem;
134
+ font-family: var(--font-family-system-sans);
135
+ font-size: var(--font-size-body);
123
136
  line-height: var(--line-height-base);
124
137
  color: var(--color-base);
125
138
  background-color: var(--background-color-base);
@@ -200,8 +213,8 @@ body.specwiki {
200
213
  padding: 0.4rem 0.625rem;
201
214
  color: var(--color-base--subtle);
202
215
  background-color: var(--background-color-interactive-subtle);
203
- font-size: 0.75rem;
204
- font-weight: var(--font-weight-bold);
216
+ font-size: var(--font-size-ui-sm);
217
+ font-weight: var(--font-weight-semi-bold);
205
218
  text-transform: uppercase;
206
219
  letter-spacing: 0.04em;
207
220
  }
@@ -252,7 +265,7 @@ body.specwiki {
252
265
  border-radius: var(--border-radius-base, 2px);
253
266
  color: var(--color-base);
254
267
  background-color: var(--specwiki-search-badge-background);
255
- font-size: 0.6875rem;
268
+ font-size: var(--font-size-caption);
256
269
  font-weight: var(--font-weight-normal);
257
270
  text-overflow: ellipsis;
258
271
  white-space: nowrap;
@@ -264,7 +277,7 @@ body.specwiki {
264
277
  min-width: 0;
265
278
  overflow: hidden;
266
279
  color: var(--color-base--subtle);
267
- font-size: 0.8125rem;
280
+ font-size: var(--font-size-ui);
268
281
  font-weight: normal;
269
282
  text-overflow: ellipsis;
270
283
  white-space: nowrap;
@@ -296,7 +309,7 @@ body.specwiki {
296
309
  text-decoration: none;
297
310
  font-weight: var(--font-weight-bold);
298
311
  font-size: 1rem;
299
- font-family: var(--font-family-monospace);
312
+ font-family: var(--font-family-monospace-brand);
300
313
  letter-spacing: -0.02em;
301
314
  }
302
315
 
@@ -446,7 +459,8 @@ body.specwiki {
446
459
  display: block;
447
460
  color: var(--color-primary);
448
461
  text-decoration: none;
449
- font-size: 0.8125rem;
462
+ font-size: var(--font-size-ui);
463
+ font-weight: var(--font-weight-semi-bold);
450
464
  margin-bottom: 0.25rem;
451
465
  }
452
466
 
@@ -466,7 +480,7 @@ body.specwiki {
466
480
  border-radius: var(--border-radius-base, 2px);
467
481
  color: var(--color-base--subtle);
468
482
  background-color: var(--background-color-interactive-subtle);
469
- font-size: 0.6875rem;
483
+ font-size: var(--font-size-caption);
470
484
  font-weight: var(--font-weight-normal);
471
485
  }
472
486
 
@@ -483,7 +497,7 @@ body.specwiki {
483
497
  .category-nav-pages a {
484
498
  color: var(--color-base);
485
499
  text-decoration: none;
486
- font-size: 0.75rem;
500
+ font-size: var(--font-size-ui-sm);
487
501
  }
488
502
 
489
503
  .category-nav-pages a:hover {
@@ -532,8 +546,8 @@ body.specwiki {
532
546
 
533
547
  .category-nav-subgroup-label {
534
548
  display: block;
535
- font-size: 0.6875rem;
536
- font-weight: var(--font-weight-bold);
549
+ font-size: var(--font-size-caption);
550
+ font-weight: var(--font-weight-semi-bold);
537
551
  color: var(--color-base--subtle);
538
552
  margin: 0 0 0.1875rem;
539
553
  text-transform: uppercase;
@@ -555,6 +569,7 @@ body.specwiki {
555
569
 
556
570
  .category-nav-subgroup-pages > li > a {
557
571
  color: var(--color-base);
572
+ font-size: var(--font-size-ui-sm);
558
573
  }
559
574
 
560
575
  .category-nav-subgroup-nested {
@@ -562,8 +577,8 @@ body.specwiki {
562
577
  }
563
578
 
564
579
  .category-nav-subgroup-nested .category-nav-subgroup-label {
565
- font-weight: var(--font-weight-bold);
566
- font-size: 0.6875rem;
580
+ font-weight: var(--font-weight-semi-bold);
581
+ font-size: var(--font-size-caption);
567
582
  text-transform: none;
568
583
  letter-spacing: normal;
569
584
  color: var(--color-base--subtle);
@@ -580,7 +595,7 @@ body.specwiki {
580
595
  }
581
596
 
582
597
  .breadcrumb {
583
- font-size: 0.8125rem;
598
+ font-size: var(--font-size-ui);
584
599
  color: var(--color-base--subtle);
585
600
  margin-bottom: var(--padding-horizontal-base);
586
601
  }
@@ -601,7 +616,7 @@ body.specwiki {
601
616
  border: 1px solid var(--border-color-base);
602
617
  background-color: var(--background-color-interactive-subtle);
603
618
  padding: var(--padding-vertical-base) var(--padding-horizontal-base);
604
- font-size: 0.8125rem;
619
+ font-size: var(--font-size-ui);
605
620
  }
606
621
 
607
622
  .infobox-title {
@@ -631,7 +646,7 @@ body.specwiki {
631
646
  }
632
647
 
633
648
  .infobox-table code {
634
- font-size: 0.75rem;
649
+ font-size: var(--font-size-ui-sm);
635
650
  word-break: break-all;
636
651
  }
637
652
 
@@ -648,7 +663,7 @@ body.specwiki {
648
663
 
649
664
  .toc-heading {
650
665
  margin: 0 0 var(--padding-vertical-base);
651
- font-size: 0.8125rem;
666
+ font-size: var(--font-size-ui);
652
667
  font-weight: var(--font-weight-bold);
653
668
  }
654
669
 
@@ -665,7 +680,7 @@ body.specwiki {
665
680
  .toc-list a {
666
681
  color: var(--color-primary);
667
682
  text-decoration: none;
668
- font-size: 0.75rem;
683
+ font-size: var(--font-size-ui-sm);
669
684
  }
670
685
 
671
686
  .toc-list a:hover {
@@ -688,10 +703,58 @@ body.specwiki {
688
703
  padding-left: 3rem;
689
704
  }
690
705
 
691
- .specwiki-portal h1,
692
- .mw-parser-output h1,
693
- .mw-parser-output h2,
694
- .mw-parser-output h3 {
706
+ .specwiki-article-body .mw-parser-output h1,
707
+ .specwiki-article-body .mw-parser-output h2 {
708
+ font-family: var(--font-family-heading-main);
709
+ font-weight: 400;
710
+ line-height: var(--line-height-heading);
711
+ }
712
+
713
+ .specwiki-article-body .mw-parser-output h3,
714
+ .specwiki-article-body .mw-parser-output h4,
715
+ .specwiki-article-body .mw-parser-output h5,
716
+ .specwiki-article-body .mw-parser-output h6 {
717
+ font-family: var(--font-family-system-sans);
718
+ font-weight: 600;
719
+ line-height: var(--line-height-heading);
720
+ }
721
+
722
+ .specwiki-article-body .mw-parser-output h1 {
723
+ font-size: var(--font-size-h1);
724
+ margin: 0 0 0.75rem;
725
+ }
726
+
727
+ .specwiki-article-body .mw-parser-output h2 {
728
+ font-size: var(--font-size-h2);
729
+ margin: 1.5rem 0 0.5rem;
730
+ padding-bottom: 0.15rem;
731
+ border-bottom: 1px solid var(--border-color-divider);
732
+ }
733
+
734
+ .specwiki-article-body .mw-parser-output h3 {
735
+ font-size: var(--font-size-h3);
736
+ margin: 1.25rem 0 0.35rem;
737
+ }
738
+
739
+ .specwiki-article-body .mw-parser-output h4 {
740
+ font-size: var(--font-size-h4);
741
+ margin: 1rem 0 0.35rem;
742
+ }
743
+
744
+ .specwiki-article-body .mw-parser-output h5 {
745
+ font-size: var(--font-size-h5);
746
+ margin: 0.85rem 0 0.25rem;
747
+ }
748
+
749
+ .specwiki-article-body .mw-parser-output h6 {
750
+ font-size: var(--font-size-h6);
751
+ margin: 0.75rem 0 0.25rem;
752
+ }
753
+
754
+ .specwiki-portal h1 {
755
+ font-family: var(--font-family-heading-main);
756
+ font-size: var(--font-size-h1);
757
+ font-weight: 400;
695
758
  line-height: var(--line-height-heading);
696
759
  }
697
760
 
@@ -798,7 +861,7 @@ body.specwiki {
798
861
  padding: 0.15em 0.4em;
799
862
  border-radius: var(--border-radius-base);
800
863
  font-size: 0.9em;
801
- font-family: var(--font-family-monospace);
864
+ font-family: var(--font-family-monospace-brand);
802
865
  }
803
866
 
804
867
  .mw-parser-output pre {
@@ -806,6 +869,7 @@ body.specwiki {
806
869
  padding: var(--padding-horizontal-base);
807
870
  border-radius: var(--border-radius-base);
808
871
  overflow-x: auto;
872
+ font-family: var(--font-family-monospace-brand);
809
873
  }
810
874
 
811
875
  .mw-parser-output pre code {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucasviola/specwiki",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Transform AI specs into structured wiki-like documentation",
5
5
  "type": "module",
6
6
  "publishConfig": {