@tenphi/starlight 0.9.6 → 0.10.2

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.
@@ -108,17 +108,14 @@ export default function GlobalStyles() {
108
108
  border: "0",
109
109
  });
110
110
 
111
- useGlobalStyles("html, body, button, input, select, textarea", {
112
- fontFamily: "$body-font-family",
113
- });
114
-
115
111
  useGlobalStyles("body", {
116
112
  color: "#text",
117
113
  fill: "#surface",
118
- fontSize: "$body-font-size",
119
- fontWeight: "$body-font-weight",
120
- lineHeight: "$body-line-height",
121
- letterSpacing: "$body-letter-spacing",
114
+ preset: "body",
115
+ });
116
+
117
+ useGlobalStyles(":where(strong, b)", {
118
+ preset: "strong",
122
119
  });
123
120
 
124
121
  useGlobalStyles("a", {
@@ -260,7 +257,7 @@ export default function GlobalStyles() {
260
257
  padding: "($gap * 1.5) $docs-nav-pad-x",
261
258
  color: "#accent-surface-text",
262
259
  fill: "#accent-surface",
263
- fontWeight: "$body-bold-font-weight",
260
+ preset: "body / strong",
264
261
  lineHeight: "$heading-line-height",
265
262
  textAlign: "center",
266
263
  textWrap: "balance",
@@ -297,50 +294,36 @@ export default function GlobalStyles() {
297
294
 
298
295
  useGlobalStyles(":where(h1, h2, h3, h4, h5, h6), .site-title", {
299
296
  color: "#text",
300
- fontFamily: "$heading-font-family",
301
- fontWeight: "$heading-font-weight",
302
- letterSpacing: "$heading-letter-spacing",
297
+ preset: "heading",
303
298
  textWrap: "balance",
304
299
  });
305
300
 
306
301
  useGlobalStyles("h1", {
307
- fontSize: "$h1-font-size",
308
- lineHeight: "$h1-line-height",
309
- letterSpacing: "$h1-letter-spacing",
302
+ preset: "h1",
310
303
  });
311
304
 
312
305
  useGlobalStyles("h2", {
313
- fontSize: "$h2-font-size",
314
- lineHeight: "$h2-line-height",
315
- letterSpacing: "$h2-letter-spacing",
306
+ preset: "h2",
316
307
  });
317
308
 
318
309
  useGlobalStyles("h3", {
319
- fontSize: "$h3-font-size",
320
- lineHeight: "$h3-line-height",
321
- letterSpacing: "$h3-letter-spacing",
310
+ preset: "h3",
322
311
  });
323
312
 
324
313
  useGlobalStyles("h4", {
325
- fontSize: "$h4-font-size",
326
- lineHeight: "$h4-line-height",
327
- letterSpacing: "$h4-letter-spacing",
314
+ preset: "h4",
328
315
  });
329
316
 
330
317
  useGlobalStyles("h5", {
331
- fontSize: "$h5-font-size",
332
- lineHeight: "$h5-line-height",
333
- letterSpacing: "$h5-letter-spacing",
318
+ preset: "h5",
334
319
  });
335
320
 
336
321
  useGlobalStyles("h6", {
337
- fontSize: "$h6-font-size",
338
- lineHeight: "$h6-line-height",
339
- letterSpacing: "$h6-letter-spacing",
322
+ preset: "h6",
340
323
  });
341
324
 
342
325
  useGlobalStyles(":where(code, kbd, samp, pre)", {
343
- fontFamily: "$code-font-family",
326
+ preset: "code",
344
327
  });
345
328
 
346
329
  useGlobalStyles(
@@ -366,170 +349,172 @@ export default function GlobalStyles() {
366
349
  fill: "#surface",
367
350
  });
368
351
 
369
- useGlobalStyles("#starlight__sidebar", {
370
- CurrentLink: {
371
- $: [
372
- 'a[aria-current="page"]',
373
- 'a[aria-current="page"]:hover',
374
- 'a[aria-current="page"]:focus',
375
- ],
376
- color: "#accent-text",
377
- fill: "#accent-surface-subtle",
378
- },
379
- Content: {
380
- $: ".sidebar-content",
381
- gap: "($gap * 3)",
382
- paddingBlockStart: {
383
- "": "($gap * 4)",
384
- "@medium-layout": "($gap * 1.5)",
352
+ useGlobalStyles(
353
+ "#starlight__sidebar",
354
+ resolveComponentStyles("Sidebar", {
355
+ CurrentLink: {
356
+ $: [
357
+ 'a[aria-current="page"]',
358
+ 'a[aria-current="page"]:hover',
359
+ 'a[aria-current="page"]:focus',
360
+ ],
361
+ color: "#accent-text",
362
+ fill: "#accent-surface-subtle",
385
363
  },
386
- paddingBlockEnd: "($gap * 6)",
387
- },
388
- List: {
389
- $: "ul",
390
- padding: "0",
391
- listStyle: "none",
392
- },
393
- Item: {
394
- $: "li",
395
- overflowWrap: "anywhere",
396
- },
397
- TopLevelSpacing: {
398
- $: ".top-level > li + li",
399
- marginBlockStart: "($gap * 3)",
400
- },
401
- NestedItem: {
402
- $: "ul ul li",
403
- marginInlineStart: "($gap * 0.75)",
404
- paddingInlineStart: "($gap * 0.75)",
405
- borderInlineStart: "0",
406
- },
407
- Control: {
408
- $: ["summary", "a"],
409
- padding: "($gap * 0.8) ($gap * 1.25)",
410
- color: "#text-soft",
411
- lineHeight: "1.45",
412
- radius: "$radius",
413
- textDecoration: "none",
414
- },
415
- Summary: {
416
- $: "summary",
417
- display: "flex",
418
- alignItems: "center",
419
- justifyContent: "space-between",
420
- cursor: "pointer",
421
- userSelect: "none",
422
- },
423
- GroupLabel: {
424
- $: "summary > .group-label",
425
- display: "flex",
426
- alignItems: "center",
427
- minInlineSize: "0",
428
- gap: "0.25em",
429
- },
430
- GroupLabelText: {
431
- $: "summary > .group-label > span:first-child",
432
- minInlineSize: "0",
433
- overflow: "hidden",
434
- color: "#text",
435
- fontSize: "0.9375rem",
436
- fontWeight: "$body-bold-font-weight",
437
- textOverflow: "ellipsis",
438
- whiteSpace: "nowrap",
439
- },
440
- Link: {
441
- $: "a",
442
- display: "flex",
443
- alignItems: "center",
444
- minInlineSize: "0",
445
- gap: "0.25em",
446
- fill: "#surface",
447
- fontSize: "0.9375rem",
448
- },
449
- LinkLabel: {
450
- $: "a > span:first-child",
451
- minInlineSize: "0",
452
- overflow: "hidden",
453
- textOverflow: "ellipsis",
454
- whiteSpace: "nowrap",
455
- },
456
- InteractiveControl: {
457
- $: ["a:hover", "a:focus-visible", "summary:hover"],
458
- color: "#text",
459
- fill: "#surface-2-hover",
460
- },
461
- SummaryMarker: {
462
- $: "summary::marker",
463
- hide: true,
464
- },
465
- TopLevelLink: {
466
- $: "a.large",
467
- fontSize: "0.9375rem",
468
- fontWeight: "$body-bold-font-weight",
469
- color: "#text",
470
- },
471
- });
472
-
473
- useGlobalStyles(".right-sidebar-panel", {
474
- paddingBlockStart: "($gap * 5)",
475
- paddingInlineStart: "$docs-sidebar-pad-x",
476
- paddingInlineEnd: "$docs-sidebar-pad-x",
364
+ Content: {
365
+ $: ".sidebar-content",
366
+ gap: "($gap * 3)",
367
+ paddingBlockStart: {
368
+ "": "($gap * 4)",
369
+ "@medium-layout": "($gap * 1.5)",
370
+ },
371
+ paddingBlockEnd: "($gap * 6)",
372
+ },
373
+ List: {
374
+ $: "ul",
375
+ padding: "0",
376
+ listStyle: "none",
377
+ },
378
+ Item: {
379
+ $: "li",
380
+ overflowWrap: "anywhere",
381
+ },
382
+ TopLevelSpacing: {
383
+ $: ".top-level > li + li",
384
+ marginBlockStart: "($gap * 3)",
385
+ },
386
+ NestedItem: {
387
+ $: "ul ul li",
388
+ marginInlineStart: "($gap * 0.75)",
389
+ paddingInlineStart: "($gap * 0.75)",
390
+ borderInlineStart: "0",
391
+ },
392
+ Control: {
393
+ $: ["summary", "a"],
394
+ padding: "($gap * 0.8) ($gap * 1.25)",
395
+ color: "#text-soft",
396
+ lineHeight: "1.45",
397
+ radius: "$radius",
398
+ textDecoration: "none",
399
+ },
400
+ Summary: {
401
+ $: "summary",
402
+ display: "flex",
403
+ alignItems: "center",
404
+ justifyContent: "space-between",
405
+ cursor: "pointer",
406
+ userSelect: "none",
407
+ },
408
+ GroupLabel: {
409
+ $: "summary > .group-label",
410
+ display: "flex",
411
+ alignItems: "center",
412
+ minInlineSize: "0",
413
+ gap: "0.25em",
414
+ },
415
+ GroupLabelText: {
416
+ $: "summary > .group-label > span:first-child",
417
+ minInlineSize: "0",
418
+ overflow: "hidden",
419
+ color: "#text",
420
+ preset: "navigation / strong",
421
+ textOverflow: "ellipsis",
422
+ whiteSpace: "nowrap",
423
+ },
424
+ Link: {
425
+ $: "a",
426
+ display: "flex",
427
+ alignItems: "center",
428
+ minInlineSize: "0",
429
+ gap: "0.25em",
430
+ fill: "#surface",
431
+ preset: "navigation",
432
+ },
433
+ LinkLabel: {
434
+ $: "a > span:first-child",
435
+ minInlineSize: "0",
436
+ overflow: "hidden",
437
+ textOverflow: "ellipsis",
438
+ whiteSpace: "nowrap",
439
+ },
440
+ InteractiveControl: {
441
+ $: ["a:hover", "a:focus-visible", "summary:hover"],
442
+ color: "#text",
443
+ fill: "#surface-2-hover",
444
+ },
445
+ SummaryMarker: {
446
+ $: "summary::marker",
447
+ hide: true,
448
+ },
449
+ TopLevelLink: {
450
+ $: "a.large",
451
+ color: "#text",
452
+ preset: "navigation / strong",
453
+ },
454
+ }),
455
+ );
477
456
 
478
- Heading: {
479
- $: "h2",
480
- marginBlockEnd: "$gap",
481
- color: "#text",
482
- fontSize: "0.9375rem",
483
- fontWeight: "$body-bold-font-weight",
484
- lineHeight: "$heading-line-height",
485
- },
486
- List: {
487
- $: "ul",
488
- display: "grid",
489
- gridTemplateColumns: "minmax(0, 1fr)",
490
- minInlineSize: "0",
491
- gap: "1px",
492
- margin: "0",
493
- padding: "0",
494
- listStyle: "none",
495
- },
496
- Item: {
497
- $: "li",
498
- minInlineSize: "0",
499
- margin: "0",
500
- padding: "0",
501
- listStyle: "none",
502
- },
503
- Link: {
504
- $: "a",
505
- display: "block",
506
- minInlineSize: "0",
507
- maxInlineSize: "100%",
508
- paddingBlockStart: "($gap * 0.5)",
509
- paddingBlockEnd: "($gap * 0.5)",
510
- color: "#text-muted",
511
- fontSize: "$small-font-size",
512
- lineHeight: "1.45",
513
- textDecoration: "none",
514
- overflowWrap: "anywhere",
515
- },
516
- LinkLabel: {
517
- $: "a > span",
518
- display: "block",
519
- minInlineSize: "0",
520
- overflow: "hidden",
521
- textOverflow: "ellipsis",
522
- whiteSpace: "nowrap",
523
- },
524
- HoverLink: {
525
- $: "a:hover",
526
- color: "#text",
527
- },
528
- CurrentLink: {
529
- $: 'a[aria-current="true"]',
530
- color: "#accent-text",
531
- },
532
- });
457
+ useGlobalStyles(
458
+ ".right-sidebar-panel",
459
+ resolveComponentStyles("TableOfContents", {
460
+ paddingBlockStart: "($gap * 5)",
461
+ paddingInlineStart: "$docs-sidebar-pad-x",
462
+ paddingInlineEnd: "$docs-sidebar-pad-x",
463
+
464
+ Heading: {
465
+ $: "h2",
466
+ marginBlockEnd: "$gap",
467
+ color: "#text",
468
+ preset: "navigation / strong",
469
+ lineHeight: "$heading-line-height",
470
+ },
471
+ List: {
472
+ $: "ul",
473
+ display: "grid",
474
+ gridTemplateColumns: "minmax(0, 1fr)",
475
+ minInlineSize: "0",
476
+ gap: "1px",
477
+ margin: "0",
478
+ padding: "0",
479
+ listStyle: "none",
480
+ },
481
+ Item: {
482
+ $: "li",
483
+ minInlineSize: "0",
484
+ margin: "0",
485
+ padding: "0",
486
+ listStyle: "none",
487
+ },
488
+ Link: {
489
+ $: "a",
490
+ display: "block",
491
+ minInlineSize: "0",
492
+ maxInlineSize: "100%",
493
+ paddingBlockStart: "($gap * 0.5)",
494
+ paddingBlockEnd: "($gap * 0.5)",
495
+ color: "#text-muted",
496
+ preset: "small",
497
+ textDecoration: "none",
498
+ overflowWrap: "anywhere",
499
+ },
500
+ LinkLabel: {
501
+ $: "a > span",
502
+ display: "block",
503
+ minInlineSize: "0",
504
+ overflow: "hidden",
505
+ textOverflow: "ellipsis",
506
+ whiteSpace: "nowrap",
507
+ },
508
+ HoverLink: {
509
+ $: "a:hover",
510
+ color: "#text",
511
+ },
512
+ CurrentLink: {
513
+ $: 'a[aria-current="true"]',
514
+ color: "#accent-text",
515
+ },
516
+ }),
517
+ );
533
518
 
534
519
  useGlobalStyles(".content-panel", {
535
520
  padding: "($gap * 3) $docs-content-pad-x",
@@ -599,7 +584,7 @@ export default function GlobalStyles() {
599
584
  });
600
585
 
601
586
  useGlobalStyles(".sl-markdown-content dt:not(:where(.not-content *))", {
602
- fontWeight: "$body-bold-font-weight",
587
+ preset: "strong",
603
588
  });
604
589
 
605
590
  useGlobalStyles(".sl-markdown-content dd:not(:where(.not-content *))", {
@@ -632,8 +617,6 @@ export default function GlobalStyles() {
632
617
  color: "#syntax-text",
633
618
  border: true,
634
619
  fill: "#syntax-bg",
635
- fontSize: "$code-font-size",
636
- lineHeight: "$code-line-height",
637
620
  radius: "$card-radius",
638
621
  tabSize: "2",
639
622
  });
@@ -642,9 +625,6 @@ export default function GlobalStyles() {
642
625
  padding: "0",
643
626
  color: "inherit",
644
627
  fill: "#clear",
645
- fontFamily: "$code-font-family",
646
- fontSize: "inherit",
647
- lineHeight: "inherit",
648
628
  });
649
629
 
650
630
  useGlobalStyles(".sl-markdown-content pre.td-diff", {
@@ -748,7 +728,7 @@ export default function GlobalStyles() {
748
728
  marginInlineStart: "-0.5rem",
749
729
  paddingInlineStart: "0.5rem",
750
730
  color: "#text",
751
- fontWeight: "$body-bold-font-weight",
731
+ preset: "strong",
752
732
  });
753
733
 
754
734
  useGlobalStyles(
@@ -788,31 +768,31 @@ export default function GlobalStyles() {
788
768
  );
789
769
 
790
770
  useGlobalStyles(".sl-markdown-content .sl-heading-wrapper", {
791
- lineHeight: "$heading-line-height",
771
+ preset: "heading",
792
772
  });
793
773
 
794
774
  useGlobalStyles(".sl-markdown-content .sl-heading-wrapper.level-h1", {
795
- fontSize: "$h1-font-size",
775
+ preset: "h1",
796
776
  });
797
777
 
798
778
  useGlobalStyles(".sl-markdown-content .sl-heading-wrapper.level-h2", {
799
- fontSize: "$h2-font-size",
779
+ preset: "h2",
800
780
  });
801
781
 
802
782
  useGlobalStyles(".sl-markdown-content .sl-heading-wrapper.level-h3", {
803
- fontSize: "$h3-font-size",
783
+ preset: "h3",
804
784
  });
805
785
 
806
786
  useGlobalStyles(".sl-markdown-content .sl-heading-wrapper.level-h4", {
807
- fontSize: "$h4-font-size",
787
+ preset: "h4",
808
788
  });
809
789
 
810
790
  useGlobalStyles(".sl-markdown-content .sl-heading-wrapper.level-h5", {
811
- fontSize: "$h5-font-size",
791
+ preset: "h5",
812
792
  });
813
793
 
814
794
  useGlobalStyles(".sl-markdown-content .sl-heading-wrapper.level-h6", {
815
- fontSize: "$h6-font-size",
795
+ preset: "h6",
816
796
  });
817
797
 
818
798
  useGlobalStyles(".sl-markdown-content .sl-heading-wrapper > :first-child", {
@@ -853,7 +833,7 @@ export default function GlobalStyles() {
853
833
  gap: "$gap",
854
834
  margin: "0 0 $gap",
855
835
  color: "#text",
856
- fontWeight: "$body-bold-font-weight",
836
+ preset: "strong",
857
837
  });
858
838
 
859
839
  useGlobalStyles(".starlight-aside__icon", {
@@ -907,7 +887,7 @@ export default function GlobalStyles() {
907
887
 
908
888
  useGlobalStyles(".sl-link-card a", {
909
889
  color: "#text",
910
- fontWeight: "$body-bold-font-weight",
890
+ preset: "strong",
911
891
  textDecoration: "none",
912
892
  });
913
893
 
@@ -928,7 +908,7 @@ export default function GlobalStyles() {
928
908
  border: true,
929
909
  radius: "$radius",
930
910
  fill: "#surface-3",
931
- fontFamily: "$code-font-family",
911
+ preset: "code",
932
912
  fontSize: "$small-font-size",
933
913
  lineHeight: "1",
934
914
  overflowWrap: "anywhere",
@@ -961,8 +941,7 @@ export default function GlobalStyles() {
961
941
  border: true,
962
942
  radius: "999px",
963
943
  fill: "#surface-3",
964
- fontSize: "$small-font-size",
965
- fontWeight: "$body-bold-font-weight",
944
+ preset: "small / strong",
966
945
  });
967
946
 
968
947
  useGlobalStyles(".sl-steps > li::after", {
@@ -986,7 +965,7 @@ export default function GlobalStyles() {
986
965
  color: "#text-soft",
987
966
  border: true,
988
967
  fill: "#surface",
989
- fontSize: "$small-font-size",
968
+ preset: "small",
990
969
  boxShadow: "none",
991
970
  cursor: "pointer",
992
971
  transition: "color 120ms ease, background-color 120ms ease",
@@ -1006,7 +985,7 @@ export default function GlobalStyles() {
1006
985
  paddingInlineStart: "0.375rem",
1007
986
  paddingInlineEnd: "0.375rem",
1008
987
  fill: "#surface-3",
1009
- fontFamily: "$body-font-family",
988
+ preset: "body",
1010
989
  fontSize: "0.75rem",
1011
990
  radius: "($radius * 0.75)",
1012
991
  });
@@ -1234,8 +1213,7 @@ export default function GlobalStyles() {
1234
1213
  borderColor: "#border",
1235
1214
  radius: "$radius",
1236
1215
  fill: "#surface-3",
1237
- fontSize: "$small-font-size",
1238
- fontWeight: "$body-bold-font-weight",
1216
+ preset: "small / strong",
1239
1217
  boxShadow: "none",
1240
1218
  cursor: "pointer",
1241
1219
  transition: "color 120ms ease, background-color 120ms ease",
@@ -1300,7 +1278,7 @@ export default function GlobalStyles() {
1300
1278
 
1301
1279
  useGlobalStyles("#starlight__search .pagefind-ui__result-link", {
1302
1280
  color: "#text",
1303
- fontWeight: "$body-bold-font-weight",
1281
+ preset: "strong",
1304
1282
  });
1305
1283
 
1306
1284
  useGlobalStyles("[data-search-modal-open]", {
@@ -1430,9 +1408,7 @@ export default function GlobalStyles() {
1430
1408
  margin: "0",
1431
1409
  padding: "0",
1432
1410
  color: "#text-soft",
1433
- fontSize: "$small-font-size",
1434
- fontWeight: "$body-bold-font-weight",
1435
- lineHeight: "$small-line-height",
1411
+ preset: "small / strong",
1436
1412
  border: "0",
1437
1413
  radius: "0",
1438
1414
  fill: "#clear",
@@ -1494,56 +1470,59 @@ export default function GlobalStyles() {
1494
1470
  whiteSpace: "nowrap",
1495
1471
  });
1496
1472
 
1497
- useGlobalStyles("mobile-starlight-toc .dropdown .isMobile", {
1498
- display: "grid",
1499
- gridTemplateColumns: "minmax(0, 1fr)",
1500
- minInlineSize: "0",
1501
- gap: "1px",
1502
- margin: "0",
1503
- padding: "0",
1504
- listStyle: "none",
1505
-
1506
- Item: {
1507
- $: "> li",
1473
+ useGlobalStyles(
1474
+ "mobile-starlight-toc .dropdown .isMobile",
1475
+ resolveComponentStyles("MobileTableOfContents", {
1476
+ display: "grid",
1477
+ gridTemplateColumns: "minmax(0, 1fr)",
1508
1478
  minInlineSize: "0",
1479
+ gap: "1px",
1509
1480
  margin: "0",
1510
1481
  padding: "0",
1511
1482
  listStyle: "none",
1512
- },
1513
- Link: {
1514
- $: "a",
1515
- display: "flex",
1516
- alignItems: "center",
1517
- minInlineSize: "0",
1518
- minBlockSize: "2.5rem",
1519
- padding: "0.625rem 0.75rem",
1520
- color: "#text-soft",
1521
- radius: "$radius",
1522
- fill: "#surface-2",
1523
- textDecoration: "none",
1524
- },
1525
- LinkLabel: {
1526
- $: "a > span",
1527
- minInlineSize: "0",
1528
- overflow: "hidden",
1529
- textOverflow: "ellipsis",
1530
- whiteSpace: "nowrap",
1531
- },
1532
- HoverLink: {
1533
- $: "a:hover",
1534
- color: "#text",
1535
- fill: "#surface-2-hover",
1536
- },
1537
- CurrentLink: {
1538
- $: 'a[aria-current="true"]',
1539
- color: "#accent-text",
1540
- fill: "#accent-surface-2-subtle",
1541
- },
1542
- CurrentIndicator: {
1543
- $: 'a[aria-current="true"]::after',
1544
- blockSize: "1rem",
1545
- },
1546
- });
1483
+
1484
+ Item: {
1485
+ $: "> li",
1486
+ minInlineSize: "0",
1487
+ margin: "0",
1488
+ padding: "0",
1489
+ listStyle: "none",
1490
+ },
1491
+ Link: {
1492
+ $: "a",
1493
+ display: "flex",
1494
+ alignItems: "center",
1495
+ minInlineSize: "0",
1496
+ minBlockSize: "2.5rem",
1497
+ padding: "0.625rem 0.75rem",
1498
+ color: "#text-soft",
1499
+ radius: "$radius",
1500
+ fill: "#surface-2",
1501
+ textDecoration: "none",
1502
+ },
1503
+ LinkLabel: {
1504
+ $: "a > span",
1505
+ minInlineSize: "0",
1506
+ overflow: "hidden",
1507
+ textOverflow: "ellipsis",
1508
+ whiteSpace: "nowrap",
1509
+ },
1510
+ HoverLink: {
1511
+ $: "a:hover",
1512
+ color: "#text",
1513
+ fill: "#surface-2-hover",
1514
+ },
1515
+ CurrentLink: {
1516
+ $: 'a[aria-current="true"]',
1517
+ color: "#accent-text",
1518
+ fill: "#accent-surface-2-subtle",
1519
+ },
1520
+ CurrentIndicator: {
1521
+ $: 'a[aria-current="true"]::after',
1522
+ blockSize: "1rem",
1523
+ },
1524
+ }),
1525
+ );
1547
1526
 
1548
1527
  useGlobalStyles(
1549
1528
  ".sl-markdown-content :where(code):not(:where(.not-content *))",
@@ -1565,8 +1544,7 @@ export default function GlobalStyles() {
1565
1544
  borderCollapse: "separate",
1566
1545
  borderSpacing: "0",
1567
1546
  color: "#text-soft",
1568
- fontSize: "$small-font-size",
1569
- lineHeight: "$small-line-height",
1547
+ preset: "small",
1570
1548
  border: true,
1571
1549
  borderColor: "#border",
1572
1550
  radius: "$card-radius",