@redocly/theme 0.18.3-patch.0 → 0.18.3-patch.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.
Files changed (146) hide show
  1. package/lib/components/Breadcrumbs/Breadcrumb.d.ts +1 -0
  2. package/lib/components/Breadcrumbs/Breadcrumb.js +2 -2
  3. package/lib/components/Breadcrumbs/Breadcrumbs.js +8 -1
  4. package/lib/components/Button/Button.js +6 -4
  5. package/lib/components/Button/styledVariables.js +25 -12
  6. package/lib/components/Catalog/Catalog.js +4 -4
  7. package/lib/components/Catalog/CatalogCard.js +15 -5
  8. package/lib/components/Catalog/styledVariables.js +5 -3
  9. package/lib/components/Catalog/useCatalog.js +12 -1
  10. package/lib/components/CodeBlock/CodeBlockContainer.js +3 -2
  11. package/lib/components/CodeBlock/CodeBlockControls.js +6 -2
  12. package/lib/components/CodeBlock/styledVariables.js +6 -4
  13. package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +2 -0
  14. package/lib/components/Dropdown/Dropdown.d.ts +3 -2
  15. package/lib/components/Dropdown/Dropdown.js +2 -1
  16. package/lib/components/EditPageButton/EditPageButton.js +7 -2
  17. package/lib/components/Feedback/Comment.js +5 -0
  18. package/lib/components/Feedback/Feedback.js +13 -3
  19. package/lib/components/Feedback/Rating.js +5 -1
  20. package/lib/components/Feedback/Reasons.js +5 -0
  21. package/lib/components/Feedback/Sentiment.js +11 -2
  22. package/lib/components/Feedback/Thumbs.js +4 -4
  23. package/lib/components/Filter/Filter.d.ts +2 -1
  24. package/lib/components/Filter/Filter.js +14 -5
  25. package/lib/components/Filter/FilterContent.d.ts +2 -1
  26. package/lib/components/Filter/FilterContent.js +12 -3
  27. package/lib/components/Filter/FilterPopover.d.ts +4 -4
  28. package/lib/components/Filter/FilterPopover.js +14 -4
  29. package/lib/components/Filter/FilterTag.js +1 -1
  30. package/lib/components/Footer/FooterColumn.js +2 -1
  31. package/lib/components/LastUpdated/index.d.ts +1 -0
  32. package/lib/components/LastUpdated/index.js +18 -0
  33. package/lib/components/LastUpdated/styledVariables.d.ts +1 -0
  34. package/lib/components/LastUpdated/styledVariables.js +11 -0
  35. package/lib/components/Menu/MenuItemLabel.js +2 -0
  36. package/lib/components/Menu/MenuLinkItem.js +2 -1
  37. package/lib/components/Menu/MobileMenu.js +5 -5
  38. package/lib/components/Menu/styledVariables.js +18 -7
  39. package/lib/components/Navbar/NavbarItem.d.ts +1 -1
  40. package/lib/components/Navbar/NavbarItem.js +9 -3
  41. package/lib/components/Navbar/styledVariables.js +5 -2
  42. package/lib/components/NavbarLogo/NavbarLogo.js +2 -1
  43. package/lib/components/NavbarLogo/index.d.ts +1 -0
  44. package/lib/components/NavbarLogo/index.js +1 -0
  45. package/lib/components/NavbarLogo/styledVariables.d.ts +1 -0
  46. package/lib/components/NavbarLogo/styledVariables.js +18 -0
  47. package/lib/components/Panel/styledVariables.js +3 -11
  48. package/lib/components/Profile/LoginLink.js +4 -1
  49. package/lib/components/Profile/MobileUserProfile.js +16 -5
  50. package/lib/components/Profile/UserProfile.js +5 -1
  51. package/lib/components/Search/ProductTag.js +1 -1
  52. package/lib/components/Select/Select.d.ts +1 -3
  53. package/lib/components/Select/Select.js +5 -2
  54. package/lib/components/Separator/Separator.js +11 -3
  55. package/lib/components/Separator/SeparatorItem.js +1 -7
  56. package/lib/components/Separator/SeparatorLine.js +7 -3
  57. package/lib/components/Sidebar/ApiCallItem.js +5 -3
  58. package/lib/components/Sidebar/SidebarLayout.js +2 -1
  59. package/lib/components/Sidebar/styledVariables.js +12 -7
  60. package/lib/components/Sidebar/types.d.ts +1 -0
  61. package/lib/components/SidebarActions/CollapseSidebarButton.js +4 -0
  62. package/lib/components/SidebarActions/SidebarActions.js +15 -3
  63. package/lib/components/SidebarActions/styled.js +14 -8
  64. package/lib/components/TableOfContent/TableOfContent.js +2 -1
  65. package/lib/components/Tag/Tag.d.ts +3 -1
  66. package/lib/components/Tag/Tag.js +10 -4
  67. package/lib/components/Tag/styledVariables.js +35 -30
  68. package/lib/components/Tiles/ThinTile.js +7 -5
  69. package/lib/components/Tiles/WideTile.js +10 -8
  70. package/lib/components/Typography/SectionHeader.js +2 -2
  71. package/lib/config.d.ts +84 -0
  72. package/lib/config.js +15 -1
  73. package/lib/globalStyle.js +43 -56
  74. package/lib/icons/PlusIcon/PlusIcon.js +1 -1
  75. package/lib/ui/ArrowBack.js +0 -1
  76. package/lib/ui/darkColors.js +5 -4
  77. package/lib/utils/index.d.ts +1 -0
  78. package/lib/utils/index.js +1 -0
  79. package/lib/utils/tags-parser.d.ts +1 -0
  80. package/lib/utils/tags-parser.js +10 -0
  81. package/package.json +2 -2
  82. package/src/components/Breadcrumbs/Breadcrumb.tsx +8 -2
  83. package/src/components/Breadcrumbs/Breadcrumbs.tsx +13 -1
  84. package/src/components/Button/Button.tsx +6 -4
  85. package/src/components/Button/styledVariables.ts +25 -12
  86. package/src/components/Catalog/Catalog.tsx +4 -8
  87. package/src/components/Catalog/CatalogCard.tsx +17 -6
  88. package/src/components/Catalog/styledVariables.ts +5 -3
  89. package/src/components/Catalog/useCatalog.ts +13 -1
  90. package/src/components/CodeBlock/CodeBlockContainer.tsx +3 -2
  91. package/src/components/CodeBlock/CodeBlockControls.tsx +6 -1
  92. package/src/components/CodeBlock/styledVariables.ts +6 -4
  93. package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +3 -0
  94. package/src/components/Dropdown/Dropdown.tsx +4 -1
  95. package/src/components/EditPageButton/EditPageButton.tsx +7 -2
  96. package/src/components/Feedback/Comment.tsx +5 -0
  97. package/src/components/Feedback/Feedback.tsx +13 -3
  98. package/src/components/Feedback/Rating.tsx +5 -1
  99. package/src/components/Feedback/Reasons.tsx +5 -0
  100. package/src/components/Feedback/Sentiment.tsx +15 -2
  101. package/src/components/Feedback/Thumbs.tsx +4 -4
  102. package/src/components/Filter/Filter.tsx +25 -4
  103. package/src/components/Filter/FilterContent.tsx +21 -4
  104. package/src/components/Filter/FilterPopover.tsx +19 -11
  105. package/src/components/Filter/FilterTag.tsx +1 -1
  106. package/src/components/Footer/FooterColumn.tsx +2 -0
  107. package/src/components/LastUpdated/index.ts +1 -0
  108. package/src/components/LastUpdated/styledVariables.ts +8 -0
  109. package/src/components/Menu/MenuItemLabel.tsx +2 -0
  110. package/src/components/Menu/MenuLinkItem.tsx +6 -1
  111. package/src/components/Menu/MobileMenu.tsx +5 -5
  112. package/src/components/Menu/styledVariables.ts +18 -7
  113. package/src/components/Navbar/NavbarItem.tsx +10 -1
  114. package/src/components/Navbar/styledVariables.ts +5 -2
  115. package/src/components/NavbarLogo/NavbarLogo.tsx +12 -1
  116. package/src/components/NavbarLogo/index.ts +1 -0
  117. package/src/components/NavbarLogo/styledVariables.ts +15 -0
  118. package/src/components/Panel/styledVariables.ts +3 -11
  119. package/src/components/Profile/LoginLink.tsx +8 -1
  120. package/src/components/Profile/MobileUserProfile.tsx +22 -5
  121. package/src/components/Profile/UserProfile.tsx +5 -1
  122. package/src/components/Search/ProductTag.tsx +1 -1
  123. package/src/components/Select/Select.tsx +6 -5
  124. package/src/components/Separator/Separator.tsx +17 -3
  125. package/src/components/Separator/SeparatorItem.tsx +1 -7
  126. package/src/components/Separator/SeparatorLine.tsx +7 -3
  127. package/src/components/Sidebar/ApiCallItem.tsx +4 -2
  128. package/src/components/Sidebar/SidebarLayout.tsx +6 -1
  129. package/src/components/Sidebar/styledVariables.ts +12 -7
  130. package/src/components/Sidebar/types.ts +1 -0
  131. package/src/components/SidebarActions/CollapseSidebarButton.tsx +4 -0
  132. package/src/components/SidebarActions/SidebarActions.tsx +18 -3
  133. package/src/components/SidebarActions/styled.tsx +14 -8
  134. package/src/components/TableOfContent/TableOfContent.tsx +2 -0
  135. package/src/components/Tag/Tag.tsx +13 -4
  136. package/src/components/Tag/styledVariables.ts +35 -30
  137. package/src/components/Tiles/ThinTile.tsx +7 -5
  138. package/src/components/Tiles/WideTile.tsx +10 -8
  139. package/src/components/Typography/SectionHeader.ts +2 -2
  140. package/src/config.ts +19 -1
  141. package/src/globalStyle.ts +41 -57
  142. package/src/icons/PlusIcon/PlusIcon.tsx +7 -1
  143. package/src/ui/ArrowBack.tsx +0 -1
  144. package/src/ui/darkColors.tsx +5 -4
  145. package/src/utils/index.ts +1 -0
  146. package/src/utils/tags-parser.ts +8 -0
@@ -22,6 +22,8 @@ import { userProfile, userProfileDropdown } from '@theme/components/Profile';
22
22
  import { dropdown } from '@theme/components/Dropdown';
23
23
  import { admonition, markdown } from '@theme/components/Markdown';
24
24
  import { tooltip } from '@theme/components/Tooltip';
25
+ import { lastUpdated } from '@theme/components/LastUpdated';
26
+ import { logo } from '@theme/components/NavbarLogo';
25
27
 
26
28
  const themeColors = css`
27
29
  /* === Palette === */
@@ -205,16 +207,17 @@ const themeColors = css`
205
207
  --color-warning: var(--color-warning-base);
206
208
  --color-success: var(--color-success-base);
207
209
  --color-info: var(--color-info-base);
208
-
210
+
209
211
  /**
210
212
  * @tokens Elevation Colors
211
213
  * @presenter Color
212
214
  */
213
215
 
214
- --bg-sunken: #F1F1F1; // Sunken is the lowest elevation available.
215
216
  --bg-base: #ffffff; // The default elevation is the baseline with respect to all other layers.
217
+ --bg-sunken: #f1f1f1; // Sunken is the lowest elevation available.
216
218
  --bg-raised: #fafafa; // Cards, elements, inputs
217
219
  --bg-overlay: #f2f2f2; // Overlay is the highest elevation available. Use for hovers
220
+ --bg-modal-overlay: #f2f2f2c2; // Overlay is the highest elevation available. Use for hovers
218
221
 
219
222
  --bg-base-shadow: 0px 3px 5px rgba(51, 51, 51, 0.2), 0px 0px 1px rgba(51, 51, 51, 0.31); // Elements
220
223
  --bg-raised-shadow: 0px 8px 12px rgba(51, 51, 51, 0.15), 0px 0px 1px rgba(51, 51, 51, 0.31); // Hovers for base. Menu
@@ -248,7 +251,7 @@ const typography = css`
248
251
  --text-description: #8d8d8d; // Caption, Description, Icon
249
252
  --text-placeholder: #a8a8a8; // Placeholder text, Disabled text
250
253
  --text-link: var(--color-blue-6);
251
-
254
+
252
255
  /**
253
256
  * @tokens Font Weights
254
257
  * @presenter FontWeight
@@ -258,7 +261,7 @@ const typography = css`
258
261
  --font-weight-bold: 600; // All strong weights in the entire system.
259
262
  --font-weight-bolder: 700;
260
263
  --font-weight-italic: 'Regular Italic'; // All italic weights in the entire system.
261
-
264
+
262
265
  /**
263
266
  * @tokens Line Heights
264
267
  * @presenter LineHeight
@@ -277,15 +280,10 @@ const typography = css`
277
280
  * @presenter FontSize
278
281
  */
279
282
 
280
- --font-size-base: 14px; // Base font size of the entire system.
281
- --font-size-sm: 12px;
282
- --font-size-lg: 16px;
283
- --font-size-xl: 20px;
284
- --font-size-heading-1: 38px;
285
- --font-size-heading-2: 30px;
286
- --font-size-heading-3: 24px;
287
- --font-size-heading-4: 20px;
288
- --font-size-heading-5: 16px;
283
+ --font-size-base: 16px; // Base font size of the entire system.
284
+ --font-size-sm: 14px;
285
+ --font-size-lg: 18px;
286
+ --font-size-xl: 22px;
289
287
 
290
288
  /**
291
289
  * @tokens Font Rendering
@@ -299,7 +297,7 @@ const typography = css`
299
297
 
300
298
  const sizeAndSpace = css`
301
299
  /* === Size & Space === */
302
-
300
+
303
301
  /**
304
302
  * @tokens Size
305
303
  * @presenter Spacing
@@ -313,7 +311,7 @@ const sizeAndSpace = css`
313
311
  */
314
312
 
315
313
  --spacing-unit: 4px;
316
-
314
+
317
315
  --spacing-base: calc(var(--spacing-unit) * 4);
318
316
  --spacing-xxs: var(--spacing-unit);
319
317
  --spacing-xs: calc(var(--spacing-unit) * 2);
@@ -325,7 +323,7 @@ const sizeAndSpace = css`
325
323
 
326
324
  --spacing-horizontal: var(--spacing-xl);
327
325
  --spacing-vertical: var(--spacing-base);
328
-
326
+
329
327
  /**
330
328
  * @tokens Height
331
329
  * @presenter Spacing
@@ -430,31 +428,41 @@ const headingsTypography = css`
430
428
  * @tokens Heading level 4
431
429
  */
432
430
 
431
+ --h4-font-family: var(--heading-font-family); // @presenter FontFamily
433
432
  --h4-font-weight: var(--heading-font-weight); // @presenter FontWeight
434
433
  --h4-font-size: 16px; // @presenter FontSize
435
- --h4-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
434
+ --h4-line-height: 16px; // @presenter LineHeight
436
435
  --h4-margin-top: var(--heading-margin-top); // @presenter Spacing
436
+ --h4-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
437
+ --h4-text-color: var(--heading-text-color); // @presenter Color
437
438
 
438
439
  /**
439
440
  * @tokens Heading level 5
440
441
  */
441
442
 
443
+ --h5-font-family: var(--heading-font-family); // @presenter FontFamily
444
+ --h5-font-weight: var(--heading-font-weight); // @presenter FontWeight
442
445
  --h5-font-size: 14px; // @presenter FontSize
443
- --h5-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
446
+ --h5-line-height: 14px; // @presenter LineHeight
444
447
  --h5-margin-top: var(--heading-margin-top); // @presenter Spacing
448
+ --h5-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
449
+ --h5-text-color: var(--heading-text-color); // @presenter Color
445
450
 
446
451
  /**
447
452
  * @tokens Heading level 6
448
453
  */
449
454
 
455
+ --h6-font-family: var(--heading-font-family); // @presenter FontFamily
456
+ --h6-font-weight: var(--heading-font-weight); // @presenter FontWeight
450
457
  --h6-font-size: 12px; // @presenter FontSize
458
+ --h6-line-height: 12px; // @presenter LineHeight
451
459
  --h6-margin-top: var(--heading-margin-top); // @presenter Spacing
452
460
  --h6-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
461
+ --h6-text-color: var(--heading-text-color); // @presenter Color
453
462
 
454
463
  // @tokens End
455
464
  `;
456
465
 
457
-
458
466
  const links = css`
459
467
  /**
460
468
  * @tokens Links
@@ -506,7 +514,7 @@ const apiReferenceDocs = css`
506
514
  --schemas-mime-type-dropdown-padding: 0px 26px 0px 4px;
507
515
  --schemas-mime-type-dropdown-border: var(--docs-dropdown-border); // @presenter Border
508
516
  --schemas-mime-type-dropdown-font-size: var(--docs-dropdown-font-size); // @presenter FontSize
509
- --schemas-mime-type-dropdown-text-color: var(--docs-dropdown-font-size); // @presenter Color
517
+ --schemas-mime-type-dropdown-text-color: var(--docs-dropdown-text-color); // @presenter Color
510
518
 
511
519
  /**
512
520
  * @tokens API Reference Schemas Discriminator Dropdown
@@ -585,9 +593,9 @@ const apiReferenceDocs = css`
585
593
  * @presenter Color
586
594
  */
587
595
 
588
- --schema-recursive-text-color: var(--color-warning);
589
- --schema-recursive-background-color: var(--schema-inline-background-color);
590
- --schema-recursive-border-color: var(--schema-inline-border-color);
596
+ --schema-recursive-text-color: var(--color-warning); // @presenter Color
597
+ --schema-recursive-background-color: var(--color-warning-bg); // @presenter Color
598
+ --schema-recursive-border-color: var(--color-warning-border); // @presenter Color
591
599
 
592
600
  /**
593
601
  * @tokens GraphQL Docs Reference Schema Non null label
@@ -597,7 +605,7 @@ const apiReferenceDocs = css`
597
605
  --schema-non-null-text-color: var(--schema-inline-code-text-color);
598
606
  --schema-non-null-background-color: var(--schema-inline-background-color);
599
607
  --schema-non-null-border-color: var(--schema-inline-border-color);
600
-
608
+
601
609
  /**
602
610
  * @tokens API Reference Schema Nested styles
603
611
  */
@@ -703,20 +711,6 @@ const badges = css`
703
711
  // @tokens End
704
712
  `;
705
713
 
706
- const logo = css`
707
- /**
708
- * @tokens Logo
709
- */
710
-
711
- --navbar-logo-height: 2rem; // @presenter Spacing
712
- --navbar-logo-width: auto;
713
- --navbar-logo-margin: 16px; // @presenter Spacing
714
- --navbar-logo-max-width: 285px; // @presenter Spacing
715
- --navbar-logo-max-height: 285px; // @presenter Spacing
716
-
717
- // @tokens End
718
- `;
719
-
720
714
  const loadProgressBar = css`
721
715
  /**
722
716
  * @tokens Load progress bar
@@ -799,20 +793,13 @@ const docsDropdown = css`
799
793
  --docs-dropdown-font-size: var(--font-size-base);
800
794
  --docs-dropdown-text-color: var(--text-secondary);
801
795
 
802
- --docs-dropdown-padding-vertical: 0;
796
+ --docs-dropdown-padding-vertical: 6px;
803
797
  --docs-dropdown-padding-left: 10px;
804
798
  --docs-dropdown-padding-right: 26px;
805
799
  --docs-dropdown-padding: var(--docs-dropdown-padding-vertical) var(--docs-dropdown-padding-right) var(--docs-dropdown-padding-vertical) var(--docs-dropdown-padding-left);
806
800
  --docs-dropdown-border: 1px solid var(--border-primary);
807
801
  `;
808
802
 
809
- const lastUpdated = css`
810
- --last-updated-text-color: var(--text-secondary);
811
- --last-updated-font-size: var(--font-size-sm);
812
- --last-updated-font-family: var(--font-family-base);
813
- --last-updated-line-height: var(--line-height-base);
814
- `;
815
-
816
803
  const tile = css`
817
804
  --wide-tile-background-color: var(--bg-raised);
818
805
  --thin-tile-background-color: var(--bg-raised);
@@ -876,18 +863,18 @@ const error = css`
876
863
  --error-bubble-gap: var(--spacing-base);
877
864
  --error-bubble-font-family: var(--font-family-base);
878
865
  --error-bubble-z-index: var(--z-index-popover);
879
-
866
+
880
867
  --error-card-border-radius: calc(var(--spacing-xxs) * 1.5);
881
868
  --error-card-background: var(--bg-raised);
882
869
  --error-card-padding: var(--spacing-xs) var(--spacing-base);
883
870
  --error-card-text-color: var(--text-primary);
884
871
  --error-card-font-size: var(--font-size-base);
885
872
  --error-card-font-style: normal;
886
- --error-card-font-weight: var(--font-weight-normal);
873
+ --error-card-font-weight: var(--font-weight-regular);
887
874
  --error-card-line-height: var(--line-height-base);
888
875
  --error-card-box-shadow: var(--bg-raised-shadow);
889
876
  --error-card-icon-margin: 0 var(--spacing-xs) 0 0;
890
-
877
+
891
878
  --detailed-error-overlay-background: #4f4f4f;
892
879
  --detailed-error-overlay-opacity: 0.9;
893
880
  --detailed-error-overlay-z-index: var(--z-index-raised);
@@ -904,13 +891,13 @@ const error = css`
904
891
  --detailed-error-modal-font-family: var(--font-family-base);
905
892
  --detailed-error-modal-padding: var(--spacing-md);
906
893
  --detailed-error-modal-wapper-text-align: right;
907
-
894
+
908
895
  --detailed-error-content-margin-top: var(--spacing-md);
909
896
  --detailed-error-content-height: 100%;
910
-
897
+
911
898
  --detailed-error-close-button-color: var(--text-description);
912
899
  --detailed-error-close-button-text-transform: uppercase;
913
-
900
+
914
901
  --detailed-error-message-margin: var(--spacing-base) auto var(--spacing-lg);
915
902
  --detailed-error-message-padding: var(--spacing-base);
916
903
  --detailed-error-message-border-radius: var(--border-radius);
@@ -926,8 +913,8 @@ const modal = css`
926
913
  overflow: hidden;
927
914
  }
928
915
 
929
- --modal-box-shadow: 0px 8px 12px rgba(51, 51, 51, 0.15), 0px 0px 1px rgba(51, 51, 51, 0.31);
930
- --modal-overlay-background-color: rgba(206, 206, 206, 0.49);
916
+ --modal-box-shadow: var(--bg-overlay-shadow);
917
+ --modal-overlay-background-color: var(--bg-modal-overlay);
931
918
  --modal-background-color: var(--bg-base);
932
919
  `;
933
920
 
@@ -985,7 +972,6 @@ export const styles = css`
985
972
  ${versionPicker}
986
973
  ${zIndexDepth}
987
974
 
988
- --api-onboarding-table-text-color: #4e5356;
989
975
  --api-catalog-card-min-width: 250px;
990
976
 
991
977
  background-color: var(--bg-base);
@@ -995,8 +981,6 @@ export const styles = css`
995
981
 
996
982
  :root.dark {
997
983
  ${darkMode};
998
-
999
- --api-onboarding-table-text-color: #ffffff;
1000
984
  }
1001
985
 
1002
986
  :root.notransition * {
@@ -2,7 +2,13 @@ import React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
4
  export const Icon = () => (
5
- <svg width="16" height="16" viewBox="0 0 16 16" fill="black" xmlns="http://www.w3.org/2000/svg">
5
+ <svg
6
+ width="16"
7
+ height="16"
8
+ viewBox="0 0 16 16"
9
+ fill="currentColor"
10
+ xmlns="http://www.w3.org/2000/svg"
11
+ >
6
12
  <path
7
13
  d="M7.53125 2.375H8.46875C8.55208 2.375 8.59375 2.41667 8.59375 2.5V13.5C8.59375 13.5833 8.55208 13.625 8.46875 13.625H7.53125C7.44792 13.625 7.40625 13.5833 7.40625 13.5V2.5C7.40625 2.41667 7.44792 2.375 7.53125 2.375Z"
8
14
  fill="inherit"
@@ -25,7 +25,6 @@ const Arrow = ({
25
25
 
26
26
  export const ArrowBack = styled(Arrow)`
27
27
  fill: var(--sidebar-back-button-icon-color);
28
- margin-right: calc(var(--sidebar-spacing-unit));
29
28
 
30
29
  background-image: var(--sidebar-back-button-icon);
31
30
  background-repeat: no-repeat;
@@ -190,10 +190,10 @@ export const darkMode = css`
190
190
  */
191
191
  --text-base: #ffffff; // The base color of the typography color tokens.
192
192
  --text-light-solid: #ffffff; // The color of the objects that need to be white no matter what theme is enabled.
193
- --text-primary: #e3e3e3; // Headers, Icon hover
194
- --text-secondary: #b3b3b3; // Body text
195
- --text-description: #8e8e8e; // Caption, Description, Icon
196
- --text-placeholder: #7b7b7b; // Placeholder text, Disabled text
193
+ --text-primary: #ffffffde; // Headers, Icon hover
194
+ --text-secondary: #ffffff99; // Body text
195
+ --text-description: #ffffff61; // Caption, Description, Icon
196
+ --text-placeholder: #ffffff61; // Placeholder text, Disabled text
197
197
  --text-link: var(--color-blue-6);
198
198
 
199
199
  /**
@@ -205,6 +205,7 @@ export const darkMode = css`
205
205
  --bg-base: #141414; // The default elevation is the baseline with respect to all other layers.
206
206
  --bg-raised: #1f1f1f; // Cards, elements, inputs
207
207
  --bg-overlay: #282828; // Overlay is the highest elevation available. Use for hovers
208
+ --bg-modal-overlay: #282828c2;
208
209
 
209
210
  --bg-base-shadow: 0px 3px 5px rgba(0, 0, 0, 0.4), 0px 1px 4px rgba(0, 0, 0, 0.5); // Elements
210
211
  --bg-raised-shadow: 0px 8px 12px rgba(0, 0, 0, 0.4), 0px 1px 4px rgba(0, 0, 0, 0.5); // Hovers for base. Menu
@@ -9,3 +9,4 @@ export * from './args-typecheck';
9
9
  export * from './color';
10
10
  export * from './urls';
11
11
  export * from './jsUtils';
12
+ export * from './tags-parser';
@@ -0,0 +1,8 @@
1
+ export const slug = (value: string) => {
2
+ const matches = value.match(/[a-zA-Z0-9_-]*/g);
3
+ const result = matches
4
+ ?.filter((value) => value !== '')
5
+ .join('-')
6
+ .toLowerCase();
7
+ return result ?? value;
8
+ };