vitepress 0.22.3 → 1.0.0-draft.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 (208) hide show
  1. package/client.d.ts +2 -3
  2. package/dist/client/app/components/ClientOnly.js +1 -1
  3. package/dist/client/app/index.js +5 -7
  4. package/dist/client/index.d.ts +5 -0
  5. package/dist/client/shared.js +1 -0
  6. package/dist/client/theme-default/Layout.vue +39 -180
  7. package/dist/client/theme-default/NotFound.vue +9 -8
  8. package/dist/client/theme-default/components/VPAlgoliaSearchBox.vue +127 -0
  9. package/dist/client/theme-default/components/VPBackdrop.vue +39 -0
  10. package/dist/client/theme-default/components/VPBox.vue +59 -0
  11. package/dist/client/theme-default/components/VPButton.vue +123 -0
  12. package/dist/client/theme-default/components/VPContent.vue +74 -0
  13. package/dist/client/theme-default/components/VPDoc.vue +173 -0
  14. package/dist/client/theme-default/components/VPDocFooter.vue +141 -0
  15. package/dist/client/theme-default/components/VPDocOutline.vue +108 -0
  16. package/dist/client/theme-default/components/VPFlyout.vue +149 -0
  17. package/dist/client/theme-default/components/VPFooter.vue +53 -0
  18. package/dist/client/theme-default/components/VPHero.vue +144 -0
  19. package/dist/client/theme-default/components/VPHome.vue +33 -0
  20. package/dist/client/theme-default/components/VPHomeFeatures.vue +96 -0
  21. package/dist/client/theme-default/components/VPHomeHero.vue +17 -0
  22. package/dist/client/theme-default/components/VPHomeSponsors.vue +97 -0
  23. package/dist/client/theme-default/components/VPLink.vue +37 -0
  24. package/dist/client/theme-default/components/VPLocalNav.vue +106 -0
  25. package/dist/client/theme-default/components/VPMenu.vue +79 -0
  26. package/dist/client/theme-default/components/VPMenuGroup.vue +35 -0
  27. package/dist/client/theme-default/components/VPMenuLink.vue +30 -0
  28. package/dist/client/theme-default/components/VPNav.vue +33 -0
  29. package/dist/client/theme-default/components/VPNavBar.vue +110 -0
  30. package/dist/client/theme-default/components/VPNavBarAppearance.vue +25 -0
  31. package/dist/client/theme-default/components/VPNavBarExtra.vue +107 -0
  32. package/dist/client/theme-default/components/VPNavBarHamburger.vue +79 -0
  33. package/dist/client/theme-default/components/VPNavBarMenu.vue +29 -0
  34. package/dist/client/theme-default/components/VPNavBarMenuGroup.vue +18 -0
  35. package/dist/client/theme-default/components/VPNavBarMenuLink.vue +56 -0
  36. package/dist/client/theme-default/components/VPNavBarSearch.vue +269 -0
  37. package/dist/client/theme-default/components/VPNavBarSocialLinks.vue +27 -0
  38. package/dist/client/theme-default/components/VPNavBarTitle.vue +57 -0
  39. package/dist/client/theme-default/components/VPNavBarTranslations.vue +74 -0
  40. package/dist/client/theme-default/components/VPNavScreen.vue +100 -0
  41. package/dist/client/theme-default/components/VPNavScreenAppearance.vue +33 -0
  42. package/dist/client/theme-default/components/VPNavScreenMenu.vue +24 -0
  43. package/dist/client/theme-default/components/VPNavScreenMenuGroup.vue +118 -0
  44. package/dist/client/theme-default/components/VPNavScreenMenuGroupLink.vue +33 -0
  45. package/dist/client/theme-default/components/VPNavScreenMenuGroupSection.vue +35 -0
  46. package/dist/client/theme-default/components/VPNavScreenMenuLink.vue +34 -0
  47. package/dist/client/theme-default/components/VPNavScreenSocialLinks.vue +14 -0
  48. package/dist/client/theme-default/components/VPNavScreenTranslations.vue +73 -0
  49. package/dist/client/theme-default/components/VPPage.vue +5 -0
  50. package/dist/client/theme-default/components/VPSidebar.vue +118 -0
  51. package/dist/client/theme-default/components/VPSidebarGroup.vue +44 -0
  52. package/dist/client/theme-default/components/VPSidebarLink.vue +57 -0
  53. package/dist/client/theme-default/components/VPSkipLink.vue +72 -0
  54. package/dist/client/theme-default/components/VPSocialLink.vue +63 -0
  55. package/dist/client/theme-default/components/VPSocialLinks.vue +27 -0
  56. package/dist/client/theme-default/components/VPSponsors.vue +77 -0
  57. package/dist/client/theme-default/components/VPSponsorsGrid.vue +32 -0
  58. package/dist/client/theme-default/components/VPSwitch.vue +66 -0
  59. package/dist/client/theme-default/components/VPSwitchAppearance.vue +74 -0
  60. package/dist/client/theme-default/components/icons/VPIconAlignJustify.vue +8 -0
  61. package/dist/client/theme-default/components/icons/VPIconAlignLeft.vue +8 -0
  62. package/dist/client/theme-default/components/icons/VPIconAlignRight.vue +8 -0
  63. package/dist/client/theme-default/components/icons/{ArrowLeft.vue → VPIconArrowLeft.vue} +0 -0
  64. package/dist/client/theme-default/components/icons/{ArrowRight.vue → VPIconArrowRight.vue} +0 -0
  65. package/dist/client/theme-default/components/icons/VPIconChevronDown.vue +5 -0
  66. package/dist/client/theme-default/components/icons/VPIconChevronLeft.vue +5 -0
  67. package/dist/client/theme-default/components/icons/VPIconChevronRight.vue +5 -0
  68. package/dist/client/theme-default/components/icons/VPIconChevronUp.vue +5 -0
  69. package/dist/client/theme-default/components/icons/VPIconDiscord.vue +5 -0
  70. package/dist/client/theme-default/components/icons/VPIconEdit.vue +6 -0
  71. package/dist/client/theme-default/components/icons/VPIconExternalLink.vue +13 -0
  72. package/dist/client/theme-default/components/icons/VPIconFacebook.vue +5 -0
  73. package/dist/client/theme-default/components/icons/VPIconGitHub.vue +5 -0
  74. package/dist/client/theme-default/components/icons/VPIconHeart.vue +5 -0
  75. package/dist/client/theme-default/components/icons/VPIconInstagram.vue +5 -0
  76. package/dist/client/theme-default/components/icons/VPIconLanguages.vue +9 -0
  77. package/dist/client/theme-default/components/icons/VPIconLinkedIn.vue +5 -0
  78. package/dist/client/theme-default/components/icons/VPIconMoon.vue +5 -0
  79. package/dist/client/theme-default/components/icons/VPIconMoreHorizontal.vue +7 -0
  80. package/dist/client/theme-default/components/icons/VPIconPlus.vue +5 -0
  81. package/dist/client/theme-default/components/icons/VPIconSlack.vue +5 -0
  82. package/dist/client/theme-default/components/icons/VPIconSun.vue +13 -0
  83. package/dist/client/theme-default/components/icons/VPIconTwitter.vue +5 -0
  84. package/dist/client/theme-default/components/icons/VPIconYouTube.vue +5 -0
  85. package/dist/client/theme-default/composables/edit-link.js +22 -0
  86. package/dist/client/theme-default/composables/flyout.js +40 -0
  87. package/dist/client/theme-default/composables/nav.js +27 -1
  88. package/dist/client/theme-default/composables/outline.js +112 -0
  89. package/dist/client/theme-default/composables/prev-next.js +18 -0
  90. package/dist/client/theme-default/composables/sidebar.js +57 -0
  91. package/dist/client/theme-default/composables/sponsor-grid.js +92 -0
  92. package/dist/client/theme-default/composables/sponsor.js +87 -0
  93. package/dist/client/theme-default/fonts/inter-cyrillic-ext.woff2 +0 -0
  94. package/dist/client/theme-default/fonts/inter-cyrillic.woff2 +0 -0
  95. package/dist/client/theme-default/fonts/inter-greek-ext.woff2 +0 -0
  96. package/dist/client/theme-default/fonts/inter-greek.woff2 +0 -0
  97. package/dist/client/theme-default/fonts/inter-latin-ext.woff2 +0 -0
  98. package/dist/client/theme-default/fonts/inter-latin.woff2 +0 -0
  99. package/dist/client/theme-default/fonts/inter-vietnamese.woff2 +0 -0
  100. package/dist/client/theme-default/index.js +8 -4
  101. package/dist/client/theme-default/styles/base.css +203 -0
  102. package/dist/client/theme-default/styles/fonts.css +67 -0
  103. package/dist/client/theme-default/styles/utils.css +9 -0
  104. package/dist/client/theme-default/styles/vars.css +291 -66
  105. package/dist/client/theme-default/styles/vp-doc.css +425 -0
  106. package/dist/client/theme-default/styles/vp-sponsor.css +86 -0
  107. package/dist/client/theme-default/support/sidebar.js +29 -0
  108. package/dist/client/theme-default/support/utils.js +62 -0
  109. package/dist/node/alias.js +60 -0
  110. package/dist/node/alias.js.map +1 -0
  111. package/dist/node/build/build.js +57 -0
  112. package/dist/node/build/build.js.map +1 -0
  113. package/dist/node/build/buildMPAClient.js +44 -0
  114. package/dist/node/build/buildMPAClient.js.map +1 -0
  115. package/dist/node/build/bundle.js +163 -0
  116. package/dist/node/build/bundle.js.map +1 -0
  117. package/dist/node/build/render.js +185 -0
  118. package/dist/node/build/render.js.map +1 -0
  119. package/dist/node/cli.js +37 -294
  120. package/dist/node/cli.js.map +1 -0
  121. package/dist/node/config.js +176 -0
  122. package/dist/node/config.js.map +1 -0
  123. package/dist/node/index.d.ts +122 -79
  124. package/dist/node/index.js +22 -37
  125. package/dist/node/index.js.map +1 -0
  126. package/dist/node/markdown/markdown.js +75 -0
  127. package/dist/node/markdown/markdown.js.map +1 -0
  128. package/dist/node/markdown/plugins/component.js +86 -0
  129. package/dist/node/markdown/plugins/component.js.map +1 -0
  130. package/dist/node/markdown/plugins/containers.js +41 -0
  131. package/dist/node/markdown/plugins/containers.js.map +1 -0
  132. package/dist/node/markdown/plugins/headings.js +25 -0
  133. package/dist/node/markdown/plugins/headings.js.map +1 -0
  134. package/dist/node/markdown/plugins/highlight.js +53 -0
  135. package/dist/node/markdown/plugins/highlight.js.map +1 -0
  136. package/dist/node/markdown/plugins/highlightLines.js +48 -0
  137. package/dist/node/markdown/plugins/highlightLines.js.map +1 -0
  138. package/dist/node/markdown/plugins/hoist.js +22 -0
  139. package/dist/node/markdown/plugins/hoist.js.map +1 -0
  140. package/dist/node/markdown/plugins/image.js +17 -0
  141. package/dist/node/markdown/plugins/image.js.map +1 -0
  142. package/dist/node/markdown/plugins/lineNumbers.js +23 -0
  143. package/dist/node/markdown/plugins/lineNumbers.js.map +1 -0
  144. package/dist/node/markdown/plugins/link.js +85 -0
  145. package/dist/node/markdown/plugins/link.js.map +1 -0
  146. package/dist/node/markdown/plugins/preWrapper.js +22 -0
  147. package/dist/node/markdown/plugins/preWrapper.js.map +1 -0
  148. package/dist/node/markdown/plugins/slugify.js +26 -0
  149. package/dist/node/markdown/plugins/slugify.js.map +1 -0
  150. package/dist/node/markdown/plugins/snippet.js +146 -0
  151. package/dist/node/markdown/plugins/snippet.js.map +1 -0
  152. package/dist/node/markdownToVue.js +166 -0
  153. package/dist/node/markdownToVue.js.map +1 -0
  154. package/dist/node/plugin.js +227 -0
  155. package/dist/node/plugin.js.map +1 -0
  156. package/dist/node/serve/serve.js +59 -0
  157. package/dist/node/serve/serve.js.map +1 -0
  158. package/dist/node/{serve-777539c0.js → serve-b5dc02b2.js} +27 -2
  159. package/dist/node/server.js +18 -0
  160. package/dist/node/server.js.map +1 -0
  161. package/dist/node/shared.js +72 -0
  162. package/dist/node/shared.js.map +1 -0
  163. package/dist/node/staticDataPlugin.js +99 -0
  164. package/dist/node/staticDataPlugin.js.map +1 -0
  165. package/dist/node/utils/getGitTimestamp.js +17 -0
  166. package/dist/node/utils/getGitTimestamp.js.map +1 -0
  167. package/dist/node/utils/parseHeader.js +57 -0
  168. package/dist/node/utils/parseHeader.js.map +1 -0
  169. package/dist/node/utils/slash.js +8 -0
  170. package/dist/node/utils/slash.js.map +1 -0
  171. package/package.json +31 -25
  172. package/types/default-theme.d.ts +115 -78
  173. package/types/shared.d.ts +11 -6
  174. package/dist/client/theme-default/components/AlgoliaSearchBox.vue +0 -188
  175. package/dist/client/theme-default/components/BuySellAds.vue +0 -152
  176. package/dist/client/theme-default/components/CarbonAds.vue +0 -99
  177. package/dist/client/theme-default/components/EditLink.vue +0 -38
  178. package/dist/client/theme-default/components/Home.vue +0 -31
  179. package/dist/client/theme-default/components/HomeFeatures.vue +0 -143
  180. package/dist/client/theme-default/components/HomeFooter.vue +0 -50
  181. package/dist/client/theme-default/components/HomeHero.vue +0 -161
  182. package/dist/client/theme-default/components/LastUpdated.vue +0 -60
  183. package/dist/client/theme-default/components/NavBar.vue +0 -60
  184. package/dist/client/theme-default/components/NavBarTitle.vue +0 -41
  185. package/dist/client/theme-default/components/NavDropdownLink.vue +0 -135
  186. package/dist/client/theme-default/components/NavDropdownLinkItem.vue +0 -76
  187. package/dist/client/theme-default/components/NavLink.vue +0 -61
  188. package/dist/client/theme-default/components/NavLinks.vue +0 -52
  189. package/dist/client/theme-default/components/NextAndPrevLinks.vue +0 -88
  190. package/dist/client/theme-default/components/Page.vue +0 -53
  191. package/dist/client/theme-default/components/PageFooter.vue +0 -44
  192. package/dist/client/theme-default/components/SideBar.vue +0 -60
  193. package/dist/client/theme-default/components/SideBarLink.js +0 -68
  194. package/dist/client/theme-default/components/SideBarLinks.vue +0 -12
  195. package/dist/client/theme-default/components/ToggleSideBarButton.vue +0 -46
  196. package/dist/client/theme-default/components/icons/OutboundLink.vue +0 -31
  197. package/dist/client/theme-default/composables/activeSidebarLink.js +0 -99
  198. package/dist/client/theme-default/composables/editLink.js +0 -49
  199. package/dist/client/theme-default/composables/navLink.js +0 -42
  200. package/dist/client/theme-default/composables/nextAndPrevLinks.js +0 -37
  201. package/dist/client/theme-default/composables/repo.js +0 -38
  202. package/dist/client/theme-default/composables/sideBar.js +0 -57
  203. package/dist/client/theme-default/styles/code.css +0 -299
  204. package/dist/client/theme-default/styles/custom-blocks.css +0 -76
  205. package/dist/client/theme-default/styles/layout.css +0 -236
  206. package/dist/client/theme-default/styles/sidebar-links.css +0 -107
  207. package/dist/client/theme-default/support/sideBar.js +0 -46
  208. package/dist/client/theme-default/utils.js +0 -63
@@ -0,0 +1,203 @@
1
+ *,
2
+ ::before,
3
+ ::after {
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ html {
8
+ line-height: 1.4;
9
+ font-size: 16px;
10
+ -webkit-text-size-adjust: 100%;
11
+ }
12
+
13
+ body {
14
+ margin: 0;
15
+ width: 100%;
16
+ min-width: 320px;
17
+ min-height: 100vh;
18
+ line-height: 24px;
19
+ font-family: var(--vp-font-family-base);
20
+ font-size: 16px;
21
+ font-weight: 400;
22
+ color: var(--vp-c-text-1);
23
+ background-color: var(--vp-c-bg-content);
24
+ direction: ltr;
25
+ font-synthesis: none;
26
+ text-rendering: optimizeLegibility;
27
+ -webkit-font-smoothing: antialiased;
28
+ -moz-osx-font-smoothing: grayscale;
29
+ }
30
+
31
+ main {
32
+ display: block;
33
+ }
34
+
35
+ h1,
36
+ h2,
37
+ h3,
38
+ h4,
39
+ h5,
40
+ h6 {
41
+ margin: 0;
42
+ line-height: 24px;
43
+ font-size: 16px;
44
+ font-weight: 400;
45
+ }
46
+
47
+ p {
48
+ margin: 0;
49
+ }
50
+
51
+ strong,
52
+ b {
53
+ font-weight: 600;
54
+ }
55
+
56
+ /**
57
+ * Avoid 300ms click delay on touch devices that support the `touch-action`
58
+ * CSS property.
59
+ *
60
+ * In particular, unlike most other browsers, IE11+Edge on Windows 10 on
61
+ * touch devices and IE Mobile 10-11 DON'T remove the click delay when
62
+ * `<meta name="viewport" content="width=device-width">` is present.
63
+ * However, they DO support removing the click delay via
64
+ * `touch-action: manipulation`.
65
+ *
66
+ * See:
67
+ * - http://v4-alpha.getbootstrap.com/content/reboot/#click-delay-optimization-for-touch
68
+ * - http://caniuse.com/#feat=css-touch-action
69
+ * - http://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay
70
+ */
71
+ a,
72
+ area,
73
+ button,
74
+ [role="button"],
75
+ input,
76
+ label,
77
+ select,
78
+ summary,
79
+ textarea {
80
+ touch-action: manipulation;
81
+ }
82
+
83
+ a {
84
+ color: inherit;
85
+ text-decoration: inherit;
86
+ }
87
+
88
+ ol,
89
+ ul {
90
+ list-style: none;
91
+ margin: 0;
92
+ padding: 0;
93
+ }
94
+
95
+ pre,
96
+ code,
97
+ kbd,
98
+ samp {
99
+ font-family: var(--vp-font-family-mono);
100
+ }
101
+
102
+ img,
103
+ svg,
104
+ video,
105
+ canvas,
106
+ audio,
107
+ iframe,
108
+ embed,
109
+ object {
110
+ display: block;
111
+ vertical-align: middle;
112
+ }
113
+
114
+ img,
115
+ video {
116
+ max-width: 100%;
117
+ height: auto;
118
+ }
119
+
120
+ button,
121
+ input,
122
+ optgroup,
123
+ select,
124
+ textarea {
125
+ border: 0;
126
+ padding: 0;
127
+ line-height: inherit;
128
+ color: inherit;
129
+ }
130
+
131
+ button {
132
+ padding: 0;
133
+ font-family: inherit;;
134
+ background-color: transparent;
135
+ background-image: none;
136
+ }
137
+
138
+ button,
139
+ [role="button"] {
140
+ cursor: pointer;
141
+ }
142
+
143
+ button:focus,
144
+ button:focus-visible {
145
+ outline: 1px dotted;
146
+ outline: 4px auto -webkit-focus-ring-color;
147
+ }
148
+
149
+ button:focus:not(:focus-visible) {
150
+ outline: none !important;
151
+ }
152
+
153
+ input:focus,
154
+ textarea:focus,
155
+ select:focus {
156
+ outline: none;
157
+ }
158
+
159
+ table {
160
+ border-collapse: collapse;
161
+ }
162
+
163
+ input {
164
+ background-color: transparent;
165
+ }
166
+
167
+ input:-ms-input-placeholder,
168
+ textarea:-ms-input-placeholder {
169
+ color: var(--vp-c-text-3);
170
+ }
171
+
172
+ input::-ms-input-placeholder,
173
+ textarea::-ms-input-placeholder {
174
+ color: var(--vp-c-text-3);
175
+ }
176
+
177
+ input::placeholder,
178
+ textarea::placeholder {
179
+ color: var(--vp-c-text-3);
180
+ }
181
+
182
+ input::-webkit-outer-spin-button,
183
+ input::-webkit-inner-spin-button {
184
+ -webkit-appearance: none;
185
+ margin: 0;
186
+ }
187
+
188
+ input[type="number"] {
189
+ -moz-appearance: textfield;
190
+ }
191
+
192
+ textarea {
193
+ resize: vertical;
194
+ }
195
+
196
+ select {
197
+ -webkit-appearance: none;
198
+ }
199
+
200
+ fieldset {
201
+ margin: 0;
202
+ padding: 0;
203
+ }
@@ -0,0 +1,67 @@
1
+ @font-face {
2
+ font-family: Inter;
3
+ font-style: normal;
4
+ font-weight: 100 900;
5
+ font-display: swap;
6
+ src: url(../fonts/inter-latin.woff2) format('woff2');
7
+ unicode-range: U+00??, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da,
8
+ U+02dc, U+2000-206f, U+2074, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215,
9
+ U+feff, U+fffd;
10
+ }
11
+
12
+ @font-face {
13
+ font-family: Inter;
14
+ font-style: normal;
15
+ font-weight: 400 500 600 700 900;
16
+ font-display: swap;
17
+ src: url(../fonts/inter-latin-ext.woff2) format('woff2');
18
+ unicode-range: U+0100-024f, U+0259, U+1e??, U+2020, U+20a0-20ab, U+20ad-20cf,
19
+ U+2113, U+2c60-2c7f, U+a720-a7ff;
20
+ }
21
+
22
+ @font-face {
23
+ font-family: Inter;
24
+ font-style: normal;
25
+ font-weight: 400 500 600 700 900;
26
+ font-display: swap;
27
+ src: url(../fonts/inter-cyrillic.woff2) format('woff2');
28
+ unicode-range: U+0400-045f, U+0490-0491, U+04b0-04b1, U+2116;
29
+ }
30
+
31
+ @font-face {
32
+ font-family: Inter;
33
+ font-style: normal;
34
+ font-weight: 400 500 600 700 900;
35
+ font-display: swap;
36
+ src: url(../fonts/inter-cyrillic-ext.woff2) format('woff2');
37
+ unicode-range: U+0460-052f, U+1c80-1c88, U+20b4, U+2de0-2dff, U+a640-a69f,
38
+ U+fe2e-fe2f;
39
+ }
40
+
41
+ @font-face {
42
+ font-family: Inter;
43
+ font-style: normal;
44
+ font-weight: 400 500 600 700 900;
45
+ font-display: swap;
46
+ src: url(../fonts/inter-greek.woff2) format('woff2');
47
+ unicode-range: U+0370-03ff;
48
+ }
49
+
50
+ @font-face {
51
+ font-family: Inter;
52
+ font-style: normal;
53
+ font-weight: 400 500 600 700 900;
54
+ font-display: swap;
55
+ src: url(../fonts/inter-greek-ext.woff2) format('woff2');
56
+ unicode-range: U+1f??;
57
+ }
58
+
59
+ @font-face {
60
+ font-family: Inter;
61
+ font-style: normal;
62
+ font-weight: 400 500 600 700 900;
63
+ font-display: swap;
64
+ src: url(../fonts/inter-vietnamese.woff2) format('woff2');
65
+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01a0-01a1,
66
+ U+01af-01b0, U+1ea0-1ef9, U+20ab;
67
+ }
@@ -0,0 +1,9 @@
1
+ .visually-hidden {
2
+ position: absolute;
3
+ width: 1px;
4
+ height: 1px;
5
+ white-space: nowrap;
6
+ clip: rect(0 0 0 0);
7
+ clip-path: inset(50%);
8
+ overflow: hidden;
9
+ }
@@ -1,74 +1,299 @@
1
- /** Base Styles */
1
+ /**
2
+ * Colors Base
3
+ *
4
+ * These are the pure base color presets. Most of the time, you should not be
5
+ * using these colors directly in the theme but rather use "Colors Theme"
6
+ * instead because those are "Theme (light or dark)" dependant.
7
+ * -------------------------------------------------------------------------- */
8
+
9
+ :root {
10
+ --vp-c-white: #ffffff;
11
+ --vp-c-white-soft: #f9f9f9;
12
+ --vp-c-white-mute: #f1f1f1;
13
+
14
+ --vp-c-black: #1a1a1a;
15
+ --vp-c-black-pure: #000000;
16
+ --vp-c-black-soft: #242424;
17
+ --vp-c-black-mute: #2f2f2f;
18
+
19
+ --vp-c-gray: #8e8e8e;
20
+ --vp-c-gray-light-1: #aeaeae;
21
+ --vp-c-gray-light-2: #c7c7c7;
22
+ --vp-c-gray-light-3: #d1d1d1;
23
+ --vp-c-gray-light-4: #e5e5e5;
24
+ --vp-c-gray-light-5: #f2f2f2;
25
+ --vp-c-gray-dark-1: #636363;
26
+ --vp-c-gray-dark-2: #484848;
27
+ --vp-c-gray-dark-3: #3a3a3a;
28
+ --vp-c-gray-dark-4: #282828;
29
+ --vp-c-gray-dark-5: #202020;
30
+
31
+ --vp-c-divider-light-1: rgba(60, 60, 60, 0.29);
32
+ --vp-c-divider-light-2: rgba(60, 60, 60, 0.12);
33
+ --vp-c-divider-dark-1: rgba(84, 84, 84, 0.65);
34
+ --vp-c-divider-dark-2: rgba(84, 84, 84, 0.48);
35
+
36
+ --vp-c-text-light-1: var(--vp-c-indigo);
37
+ --vp-c-text-light-2: rgba(60, 60, 60, 0.70);
38
+ --vp-c-text-light-3: rgba(60, 60, 60, 0.33);
39
+ --vp-c-text-light-4: rgba(60, 60, 60, 0.18);
40
+
41
+ --vp-c-text-dark-1: rgba(255, 255, 255, 0.87);
42
+ --vp-c-text-dark-2: rgba(235, 235, 235, 0.60);
43
+ --vp-c-text-dark-3: rgba(235, 235, 235, 0.38);
44
+ --vp-c-text-dark-4: rgba(235, 235, 235, 0.18);
45
+
46
+ --vp-c-green: #42b883;
47
+ --vp-c-green-light: #42d392;
48
+ --vp-c-green-lighter: #35eb9a;
49
+ --vp-c-green-dark: #33a06f;
50
+ --vp-c-green-darker: #155f3e;
51
+
52
+ --vp-c-indigo: #213547;
53
+ --vp-c-indigo-soft: #476582;
54
+ --vp-c-indigo-light: #aac8e4;
55
+ --vp-c-indigo-lighter: #c9def1;
56
+ --vp-c-indigo-dark: #1d2f3f;
57
+ --vp-c-indigo-darker: #14212e;
58
+
59
+ --vp-c-blue: #3b8eed;
60
+ --vp-c-blue-light: #549ced;
61
+ --vp-c-blue-lighter: #50a2ff;
62
+ --vp-c-blue-dark: #3468a3;
63
+ --vp-c-blue-darker: #255489;
64
+
65
+ --vp-c-yellow: #ffc517;
66
+ --vp-c-yellow-light: #ffe417;
67
+ --vp-c-yellow-lighter: #ffff17;
68
+ --vp-c-yellow-dark: #e0ad15;
69
+ --vp-c-yellow-darker: #bc9112;
70
+
71
+ --vp-c-red: #ed3c50;
72
+ --vp-c-red-light: #f43771;
73
+ --vp-c-red-lighter: #fd1d7c;
74
+ --vp-c-red-dark: #cd2d3f;
75
+ --vp-c-red-darker: #ab2131;
76
+
77
+ --vp-c-purple: #de41e0;
78
+ --vp-c-purple-light: #e936eb;
79
+ --vp-c-purple-lighter: #f616f8;
80
+ --vp-c-purple-dark: #823c83;
81
+ --vp-c-purple-darker: #602960;
82
+ }
83
+
84
+ /**
85
+ * Colors Theme
86
+ * -------------------------------------------------------------------------- */
87
+
2
88
  :root {
3
- /**
4
- * Colors
5
- * --------------------------------------------------------------------- */
6
-
7
- --c-white: #ffffff;
8
- --c-white-dark: #f8f8f8;
9
- --c-black: #000000;
10
-
11
- --c-divider-light: rgba(60, 60, 67, 0.12);
12
- --c-divider-dark: rgba(84, 84, 88, 0.48);
13
-
14
- --c-text-light-1: #2c3e50;
15
- --c-text-light-2: #476582;
16
- --c-text-light-3: #90a4b7;
17
-
18
- --c-brand: #3eaf7c;
19
- --c-brand-light: #4abf8a;
20
-
21
- /**
22
- * Typography
23
- * --------------------------------------------------------------------- */
24
-
25
- --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
26
- Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
27
- sans-serif;
28
- --font-family-mono: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
29
- monospace;
30
-
31
- /**
32
- * Z Indexes
33
- *
34
- * Algolia SearchBox has a z-index of 200, so make sure not to go above
35
- * that value.
36
- * --------------------------------------------------------------------- */
37
-
38
- --z-index-navbar: 10;
39
- --z-index-sidebar: 6;
40
-
41
- /**
42
- * Shadows
43
- * --------------------------------------------------------------------- */
44
-
45
- --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
46
- --shadow-2: 0 3px 12px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.07);
47
- --shadow-3: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
48
- --shadow-4: 0 14px 44px rgba(0, 0, 0, 0.12), 0 3px 9px rgba(0, 0, 0, 0.12);
49
- --shadow-5: 0 18px 56px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.16);
50
-
51
- /**
52
- * Sizes
53
- * --------------------------------------------------------------------- */
54
-
55
- --header-height: 3.6rem;
89
+ --vp-c-bg: var(--vp-c-white);
90
+ --vp-c-bg-soft: var(--vp-c-white-soft);
91
+ --vp-c-bg-mute: var(--vp-c-white-mute);
92
+ --vp-c-bg-content: var(--vp-c-white);
93
+ --vp-c-bg-sidebar: var(--vp-c-white-soft);
94
+
95
+ --vp-c-divider: var(--vp-c-divider-light-1);
96
+ --vp-c-divider-light: var(--vp-c-divider-light-2);
97
+
98
+ --vp-c-divider-inverse: var(--vp-c-divider-dark-1);
99
+ --vp-c-divider-inverse-light: var(--vp-c-divider-dark-2);
100
+
101
+ --vp-c-text-1: var(--vp-c-text-light-1);
102
+ --vp-c-text-2: var(--vp-c-text-light-2);
103
+ --vp-c-text-3: var(--vp-c-text-light-3);
104
+ --vp-c-text-4: var(--vp-c-text-light-4);
105
+
106
+ --vp-c-text-inverse-1: var(--vp-c-text-dark-1);
107
+ --vp-c-text-inverse-2: var(--vp-c-text-dark-2);
108
+ --vp-c-text-inverse-3: var(--vp-c-text-dark-3);
109
+ --vp-c-text-inverse-4: var(--vp-c-text-dark-4);
110
+
111
+ --vp-c-text-code: var(--vp-c-indigo-soft);
112
+
113
+ --vp-c-brand: var(--vp-c-green);
114
+ --vp-c-brand-light: var(--vp-c-green-light);
115
+ --vp-c-brand-lighter: var(--vp-c-green-lighter);
116
+ --vp-c-brand-dark: var(--vp-c-green-dark);
117
+ --vp-c-brand-darker: var(--vp-c-green-darker);
118
+
119
+ --vp-c-sponsor: #fd1d7c;
120
+ }
121
+
122
+ .dark {
123
+ --vp-c-bg: var(--vp-c-black);
124
+ --vp-c-bg-soft: var(--vp-c-black-soft);
125
+ --vp-c-bg-mute: var(--vp-c-black-mute);
126
+ --vp-c-bg-content: var(--vp-c-bg-soft);
127
+ --vp-c-bg-sidebar: var(--vp-c-bg);
128
+
129
+ --vp-c-divider: var(--vp-c-divider-dark-1);
130
+ --vp-c-divider-light: var(--vp-c-divider-dark-2);
131
+
132
+ --vp-c-divider-inverse: var(--vp-c-divider-light-1);
133
+ --vp-c-divider-inverse-light: var(--vp-c-divider-light-2);
134
+
135
+ --vp-c-text-1: var(--vp-c-text-dark-1);
136
+ --vp-c-text-2: var(--vp-c-text-dark-2);
137
+ --vp-c-text-3: var(--vp-c-text-dark-3);
138
+ --vp-c-text-4: var(--vp-c-text-dark-4);
139
+
140
+ --vp-c-text-inverse-1: var(--vp-c-text-light-1);
141
+ --vp-c-text-inverse-2: var(--vp-c-text-light-2);
142
+ --vp-c-text-inverse-3: var(--vp-c-text-light-3);
143
+ --vp-c-text-inverse-4: var(--vp-c-text-light-4);
144
+
145
+ --vp-c-text-code: var(--vp-c-indigo-light);
56
146
  }
57
147
 
58
- /** Fallback Styles */
148
+ /**
149
+ * Typography
150
+ * -------------------------------------------------------------------------- */
151
+
59
152
  :root {
60
- --c-divider: var(--c-divider-light);
153
+ --vp-font-family-base: Inter, -apple-system,
154
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
155
+ 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
156
+ --vp-font-family-mono: Menlo, Monaco, Consolas, 'Courier New', monospace;
157
+ }
61
158
 
62
- --c-text: var(--c-text-light-1);
63
- --c-text-light: var(--c-text-light-2);
64
- --c-text-lighter: var(--c-text-light-3);
159
+ /**
160
+ * Shadows
161
+ * -------------------------------------------------------------------------- */
65
162
 
66
- --c-bg: var(--c-white);
67
- --c-bg-accent: var(--c-white-dark);
163
+ :root {
164
+ --vp-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
165
+ --vp-shadow-2: 0 3px 12px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.07);
166
+ --vp-shadow-3: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
167
+ --vp-shadow-4: 0 14px 44px rgba(0, 0, 0, 0.12), 0 3px 9px rgba(0, 0, 0, 0.12);
168
+ --vp-shadow-5: 0 18px 56px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.16);
169
+ }
68
170
 
69
- --code-line-height: 24px;
70
- --code-font-family: var(--font-family-mono);
71
- --code-font-size: 14px;
72
- --code-inline-bg-color: rgba(27, 31, 35, 0.05);
73
- --code-bg-color: #282c34;
171
+ /**
172
+ * Z-indexes
173
+ * -------------------------------------------------------------------------- */
174
+
175
+ :root {
176
+ --vp-z-index-local-nav: 10;
177
+ --vp-z-index-nav: 20;
178
+ --vp-z-index-backdrop: 30;
179
+ --vp-z-index-sidebar: 40;
180
+ --vp-z-index-footer: 50;
181
+ }
182
+
183
+ /**
184
+ * Layouts
185
+ * -------------------------------------------------------------------------- */
186
+
187
+ :root {
188
+ --vp-layout-max-width: 1376px;
189
+ }
190
+
191
+ /**
192
+ * Component: Nav
193
+ * -------------------------------------------------------------------------- */
194
+
195
+ :root {
196
+ --vp-nav-height: var(--vp-nav-height-mobile);
197
+ --vp-nav-height-mobile: 56px;
198
+ --vp-nav-height-desktop: 72px;
199
+ }
200
+
201
+ @media (min-width: 960px) {
202
+ :root {
203
+ --vp-nav-height: var(--vp-nav-height-desktop);
204
+ }
205
+ }
206
+
207
+ /**
208
+ * Component: Sidebar
209
+ * -------------------------------------------------------------------------- */
210
+
211
+ :root {
212
+ --vp-sidebar-width: 272px;
213
+ }
214
+
215
+ /**
216
+ * Component: Code
217
+ * -------------------------------------------------------------------------- */
218
+
219
+ :root {
220
+ --vp-code-line-height: 24px;
221
+ --vp-code-font-size: 14px;
222
+
223
+ --vp-code-block-color: var(--vp-c-text-dark-1);
224
+ --vp-code-block-bg: #292d3e;
225
+ }
226
+
227
+ .dark {
228
+ --vp-code-block-bg: var(--vp-c-bg-sidebar);
229
+ }
230
+
231
+ /**
232
+ * Component: Button
233
+ * -------------------------------------------------------------------------- */
234
+
235
+ :root {
236
+ --vp-button-brand-border: var(--vp-c-brand-light);
237
+ --vp-button-brand-text: var(--vp-c-text-dark-1);
238
+ --vp-button-brand-bg: var(--vp-c-brand);
239
+ --vp-button-brand-hover-border: var(--vp-c-brand-light);
240
+ --vp-button-brand-hover-text: var(--vp-c-text-dark-1);
241
+ --vp-button-brand-hover-bg: var(--vp-c-brand-light);
242
+ --vp-button-brand-active-border: var(--vp-c-brand-light);
243
+ --vp-button-brand-active-text: var(--vp-c-text-dark-1);
244
+ --vp-button-brand-active-bg: var(--vp-button-brand-bg);
245
+
246
+ --vp-button-alt-border: var(--vp-c-gray-light-3);
247
+ --vp-button-alt-text: var(--vp-c-text-light-1);
248
+ --vp-button-alt-bg: var(--vp-c-gray-light-5);
249
+ --vp-button-alt-hover-border: var(--vp-c-gray-light-3);
250
+ --vp-button-alt-hover-text: var(--vp-c-text-light-1);
251
+ --vp-button-alt-hover-bg: var(--vp-c-gray-light-4);
252
+ --vp-button-alt-active-border: var(--vp-c-gray-light-3);
253
+ --vp-button-alt-active-text: var(--vp-c-text-light-1);
254
+ --vp-button-alt-active-bg: var(--vp-c-gray-light-3);
255
+
256
+ --vp-button-sponsor-border: var(--vp-c-gray-light-3);
257
+ --vp-button-sponsor-text: var(--vp-c-text-light-2);
258
+ --vp-button-sponsor-bg: transparent;
259
+ --vp-button-sponsor-hover-border: var(--vp-c-sponsor);
260
+ --vp-button-sponsor-hover-text: var(--vp-c-sponsor);
261
+ --vp-button-sponsor-hover-bg: transparent;
262
+ --vp-button-sponsor-active-border: var(--vp-c-sponsor);
263
+ --vp-button-sponsor-active-text: var(--vp-c-sponsor);
264
+ --vp-button-sponsor-active-bg: transparent;
265
+ }
266
+
267
+ .dark {
268
+ --vp-button-brand-border: var(--vp-c-brand-lighter);
269
+ --vp-button-brand-text: var(--vp-c-text-light-1);
270
+ --vp-button-brand-bg: var(--vp-c-brand-light);
271
+ --vp-button-brand-hover-border: var(--vp-c-brand-lighter);
272
+ --vp-button-brand-hover-text: var(--vp-c-text-light-1);
273
+ --vp-button-brand-hover-bg: var(--vp-c-brand-lighter);
274
+ --vp-button-brand-active-border: var(--vp-c-brand-lighter);
275
+ --vp-button-brand-active-text: var(--vp-c-text-light-1);
276
+ --vp-button-brand-active-bg: var(--vp-button-brand-bg);
277
+
278
+ --vp-button-alt-border: var(--vp-c-gray-dark-2);
279
+ --vp-button-alt-text: var(--vp-c-text-dark-1);
280
+ --vp-button-alt-bg: var(--vp-c-bg-mute);
281
+ --vp-button-alt-hover-border: var(--vp-c-gray-dark-2);
282
+ --vp-button-alt-hover-text: var(--vp-c-text-dark-1);
283
+ --vp-button-alt-hover-bg: var(--vp-c-gray-dark-3);
284
+ --vp-button-alt-active-border: var(--vp-c-gray-dark-2);
285
+ --vp-button-alt-active-text: var(--vp-c-text-dark-1);
286
+ --vp-button-alt-active-bg: var(--vp-button-alt-bg);
287
+
288
+ --vp-button-sponsor-border: var(--vp-c-gray-dark-1);
289
+ --vp-button-sponsor-text: var(--vp-c-text-dark-2);
290
+ }
291
+
292
+ /**
293
+ * Component: Home
294
+ * -------------------------------------------------------------------------- */
295
+
296
+ :root {
297
+ --vp-home-hero-name-color: var(--vp-c-brand);
298
+ --vp-home-hero-name-background: transparent;
74
299
  }