vitepress 0.22.2 → 1.0.0-draft.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.
Files changed (134) hide show
  1. package/README.md +4 -4
  2. package/client.d.ts +2 -3
  3. package/dist/client/app/components/ClientOnly.js +1 -1
  4. package/dist/client/app/index.js +5 -7
  5. package/dist/client/app/router.js +11 -5
  6. package/dist/client/theme-default/Layout.vue +25 -183
  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/VPContent.vue +44 -0
  11. package/dist/client/theme-default/components/VPContentDoc.vue +173 -0
  12. package/dist/client/theme-default/components/VPContentDocFooter.vue +140 -0
  13. package/dist/client/theme-default/components/VPContentDocOutline.vue +108 -0
  14. package/dist/client/theme-default/components/VPFlyout.vue +149 -0
  15. package/dist/client/theme-default/components/VPLink.vue +37 -0
  16. package/dist/client/theme-default/components/VPLocalNav.vue +106 -0
  17. package/dist/client/theme-default/components/VPMenu.vue +79 -0
  18. package/dist/client/theme-default/components/VPMenuGroup.vue +35 -0
  19. package/dist/client/theme-default/components/VPMenuLink.vue +30 -0
  20. package/dist/client/theme-default/components/VPNav.vue +33 -0
  21. package/dist/client/theme-default/components/VPNavBar.vue +109 -0
  22. package/dist/client/theme-default/components/VPNavBarAppearance.vue +22 -0
  23. package/dist/client/theme-default/components/VPNavBarExtra.vue +107 -0
  24. package/dist/client/theme-default/components/VPNavBarHamburger.vue +79 -0
  25. package/dist/client/theme-default/components/VPNavBarMenu.vue +29 -0
  26. package/dist/client/theme-default/components/VPNavBarMenuGroup.vue +18 -0
  27. package/dist/client/theme-default/components/VPNavBarMenuLink.vue +56 -0
  28. package/dist/client/theme-default/components/VPNavBarSearch.vue +269 -0
  29. package/dist/client/theme-default/components/VPNavBarSocialLinks.vue +27 -0
  30. package/dist/client/theme-default/components/VPNavBarTitle.vue +44 -0
  31. package/dist/client/theme-default/components/VPNavBarTranslations.vue +74 -0
  32. package/dist/client/theme-default/components/VPNavScreen.vue +100 -0
  33. package/dist/client/theme-default/components/VPNavScreenAppearance.vue +30 -0
  34. package/dist/client/theme-default/components/VPNavScreenMenu.vue +24 -0
  35. package/dist/client/theme-default/components/VPNavScreenMenuGroup.vue +118 -0
  36. package/dist/client/theme-default/components/VPNavScreenMenuGroupLink.vue +33 -0
  37. package/dist/client/theme-default/components/VPNavScreenMenuGroupSection.vue +35 -0
  38. package/dist/client/theme-default/components/VPNavScreenMenuLink.vue +34 -0
  39. package/dist/client/theme-default/components/VPNavScreenSocialLinks.vue +14 -0
  40. package/dist/client/theme-default/components/VPNavScreenTranslations.vue +73 -0
  41. package/dist/client/theme-default/components/VPSidebar.vue +118 -0
  42. package/dist/client/theme-default/components/VPSidebarGroup.vue +44 -0
  43. package/dist/client/theme-default/components/VPSidebarLink.vue +57 -0
  44. package/dist/client/theme-default/components/VPSkipLink.vue +72 -0
  45. package/dist/client/theme-default/components/VPSocialLink.vue +63 -0
  46. package/dist/client/theme-default/components/VPSocialLinks.vue +27 -0
  47. package/dist/client/theme-default/components/VPSwitch.vue +66 -0
  48. package/dist/client/theme-default/components/VPSwitchAppearance.vue +74 -0
  49. package/dist/client/theme-default/components/icons/VPIconAlignJustify.vue +8 -0
  50. package/dist/client/theme-default/components/icons/VPIconAlignLeft.vue +8 -0
  51. package/dist/client/theme-default/components/icons/VPIconAlignRight.vue +8 -0
  52. package/dist/client/theme-default/components/icons/{ArrowLeft.vue → VPIconArrowLeft.vue} +0 -0
  53. package/dist/client/theme-default/components/icons/{ArrowRight.vue → VPIconArrowRight.vue} +0 -0
  54. package/dist/client/theme-default/components/icons/VPIconChevronDown.vue +5 -0
  55. package/dist/client/theme-default/components/icons/VPIconChevronLeft.vue +5 -0
  56. package/dist/client/theme-default/components/icons/VPIconChevronRight.vue +5 -0
  57. package/dist/client/theme-default/components/icons/VPIconChevronUp.vue +5 -0
  58. package/dist/client/theme-default/components/icons/VPIconDiscord.vue +5 -0
  59. package/dist/client/theme-default/components/icons/VPIconEdit.vue +6 -0
  60. package/dist/client/theme-default/components/icons/VPIconExternalLink.vue +13 -0
  61. package/dist/client/theme-default/components/icons/VPIconFacebook.vue +5 -0
  62. package/dist/client/theme-default/components/icons/VPIconGitHub.vue +5 -0
  63. package/dist/client/theme-default/components/icons/VPIconInstagram.vue +5 -0
  64. package/dist/client/theme-default/components/icons/VPIconLanguages.vue +9 -0
  65. package/dist/client/theme-default/components/icons/VPIconLinkedIn.vue +5 -0
  66. package/dist/client/theme-default/components/icons/VPIconMoon.vue +5 -0
  67. package/dist/client/theme-default/components/icons/VPIconMoreHorizontal.vue +7 -0
  68. package/dist/client/theme-default/components/icons/VPIconPlus.vue +5 -0
  69. package/dist/client/theme-default/components/icons/VPIconSlack.vue +5 -0
  70. package/dist/client/theme-default/components/icons/VPIconSun.vue +13 -0
  71. package/dist/client/theme-default/components/icons/VPIconTwitter.vue +5 -0
  72. package/dist/client/theme-default/components/icons/VPIconYouTube.vue +5 -0
  73. package/dist/client/theme-default/composables/edit-link.js +22 -0
  74. package/dist/client/theme-default/composables/flyout.js +40 -0
  75. package/dist/client/theme-default/composables/nav.js +27 -1
  76. package/dist/client/theme-default/composables/outline.js +130 -0
  77. package/dist/client/theme-default/composables/prev-next.js +18 -0
  78. package/dist/client/theme-default/composables/sidebar.js +57 -0
  79. package/dist/client/theme-default/fonts/inter-cyrillic-ext.woff2 +0 -0
  80. package/dist/client/theme-default/fonts/inter-cyrillic.woff2 +0 -0
  81. package/dist/client/theme-default/fonts/inter-greek-ext.woff2 +0 -0
  82. package/dist/client/theme-default/fonts/inter-greek.woff2 +0 -0
  83. package/dist/client/theme-default/fonts/inter-latin-ext.woff2 +0 -0
  84. package/dist/client/theme-default/fonts/inter-latin.woff2 +0 -0
  85. package/dist/client/theme-default/fonts/inter-vietnamese.woff2 +0 -0
  86. package/dist/client/theme-default/index.js +4 -4
  87. package/dist/client/theme-default/styles/base.css +200 -0
  88. package/dist/client/theme-default/styles/fonts.css +67 -0
  89. package/dist/client/theme-default/styles/utils.css +9 -0
  90. package/dist/client/theme-default/styles/vars.css +206 -66
  91. package/dist/client/theme-default/styles/vp-doc.css +419 -0
  92. package/dist/client/theme-default/support/sidebar.js +29 -0
  93. package/dist/client/theme-default/support/utils.js +43 -0
  94. package/dist/node/cli.js +1 -1
  95. package/dist/node/index.d.ts +106 -81
  96. package/dist/node/index.js +1 -1
  97. package/dist/node/{serve-cf4b2162.js → serve-428d4610.js} +27 -10
  98. package/package.json +31 -27
  99. package/types/default-theme.d.ts +105 -80
  100. package/dist/client/theme-default/components/AlgoliaSearchBox.vue +0 -195
  101. package/dist/client/theme-default/components/BuySellAds.vue +0 -152
  102. package/dist/client/theme-default/components/CarbonAds.vue +0 -99
  103. package/dist/client/theme-default/components/EditLink.vue +0 -38
  104. package/dist/client/theme-default/components/Home.vue +0 -31
  105. package/dist/client/theme-default/components/HomeFeatures.vue +0 -143
  106. package/dist/client/theme-default/components/HomeFooter.vue +0 -50
  107. package/dist/client/theme-default/components/HomeHero.vue +0 -161
  108. package/dist/client/theme-default/components/LastUpdated.vue +0 -60
  109. package/dist/client/theme-default/components/NavBar.vue +0 -60
  110. package/dist/client/theme-default/components/NavBarTitle.vue +0 -41
  111. package/dist/client/theme-default/components/NavDropdownLink.vue +0 -135
  112. package/dist/client/theme-default/components/NavDropdownLinkItem.vue +0 -76
  113. package/dist/client/theme-default/components/NavLink.vue +0 -61
  114. package/dist/client/theme-default/components/NavLinks.vue +0 -52
  115. package/dist/client/theme-default/components/NextAndPrevLinks.vue +0 -88
  116. package/dist/client/theme-default/components/Page.vue +0 -53
  117. package/dist/client/theme-default/components/PageFooter.vue +0 -44
  118. package/dist/client/theme-default/components/SideBar.vue +0 -60
  119. package/dist/client/theme-default/components/SideBarLink.js +0 -68
  120. package/dist/client/theme-default/components/SideBarLinks.vue +0 -12
  121. package/dist/client/theme-default/components/ToggleSideBarButton.vue +0 -46
  122. package/dist/client/theme-default/components/icons/OutboundLink.vue +0 -31
  123. package/dist/client/theme-default/composables/activeSidebarLink.js +0 -99
  124. package/dist/client/theme-default/composables/editLink.js +0 -49
  125. package/dist/client/theme-default/composables/navLink.js +0 -42
  126. package/dist/client/theme-default/composables/nextAndPrevLinks.js +0 -37
  127. package/dist/client/theme-default/composables/repo.js +0 -38
  128. package/dist/client/theme-default/composables/sideBar.js +0 -57
  129. package/dist/client/theme-default/styles/code.css +0 -299
  130. package/dist/client/theme-default/styles/custom-blocks.css +0 -76
  131. package/dist/client/theme-default/styles/layout.css +0 -236
  132. package/dist/client/theme-default/styles/sidebar-links.css +0 -107
  133. package/dist/client/theme-default/support/sideBar.js +0 -46
  134. package/dist/client/theme-default/utils.js +0 -63
@@ -0,0 +1,200 @@
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
+ }
43
+
44
+ p {
45
+ margin: 0;
46
+ }
47
+
48
+ strong,
49
+ b {
50
+ font-weight: 600;
51
+ }
52
+
53
+ /**
54
+ * Avoid 300ms click delay on touch devices that support the `touch-action`
55
+ * CSS property.
56
+ *
57
+ * In particular, unlike most other browsers, IE11+Edge on Windows 10 on
58
+ * touch devices and IE Mobile 10-11 DON'T remove the click delay when
59
+ * `<meta name="viewport" content="width=device-width">` is present.
60
+ * However, they DO support removing the click delay via
61
+ * `touch-action: manipulation`.
62
+ *
63
+ * See:
64
+ * - http://v4-alpha.getbootstrap.com/content/reboot/#click-delay-optimization-for-touch
65
+ * - http://caniuse.com/#feat=css-touch-action
66
+ * - http://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay
67
+ */
68
+ a,
69
+ area,
70
+ button,
71
+ [role="button"],
72
+ input,
73
+ label,
74
+ select,
75
+ summary,
76
+ textarea {
77
+ touch-action: manipulation;
78
+ }
79
+
80
+ a {
81
+ color: inherit;
82
+ text-decoration: inherit;
83
+ }
84
+
85
+ ol,
86
+ ul {
87
+ list-style: none;
88
+ margin: 0;
89
+ padding: 0;
90
+ }
91
+
92
+ pre,
93
+ code,
94
+ kbd,
95
+ samp {
96
+ font-family: var(--vp-font-family-mono);
97
+ }
98
+
99
+ img,
100
+ svg,
101
+ video,
102
+ canvas,
103
+ audio,
104
+ iframe,
105
+ embed,
106
+ object {
107
+ display: block;
108
+ vertical-align: middle;
109
+ }
110
+
111
+ img,
112
+ video {
113
+ max-width: 100%;
114
+ height: auto;
115
+ }
116
+
117
+ button,
118
+ input,
119
+ optgroup,
120
+ select,
121
+ textarea {
122
+ border: 0;
123
+ padding: 0;
124
+ line-height: inherit;
125
+ color: inherit;
126
+ }
127
+
128
+ button {
129
+ padding: 0;
130
+ font-family: inherit;;
131
+ background-color: transparent;
132
+ background-image: none;
133
+ }
134
+
135
+ button,
136
+ [role="button"] {
137
+ cursor: pointer;
138
+ }
139
+
140
+ button:focus,
141
+ button:focus-visible {
142
+ outline: 1px dotted;
143
+ outline: 4px auto -webkit-focus-ring-color;
144
+ }
145
+
146
+ button:focus:not(:focus-visible) {
147
+ outline: none !important;
148
+ }
149
+
150
+ input:focus,
151
+ textarea:focus,
152
+ select:focus {
153
+ outline: none;
154
+ }
155
+
156
+ table {
157
+ border-collapse: collapse;
158
+ }
159
+
160
+ input {
161
+ background-color: transparent;
162
+ }
163
+
164
+ input:-ms-input-placeholder,
165
+ textarea:-ms-input-placeholder {
166
+ color: var(--vp-c-text-3);
167
+ }
168
+
169
+ input::-ms-input-placeholder,
170
+ textarea::-ms-input-placeholder {
171
+ color: var(--vp-c-text-3);
172
+ }
173
+
174
+ input::placeholder,
175
+ textarea::placeholder {
176
+ color: var(--vp-c-text-3);
177
+ }
178
+
179
+ input::-webkit-outer-spin-button,
180
+ input::-webkit-inner-spin-button {
181
+ -webkit-appearance: none;
182
+ margin: 0;
183
+ }
184
+
185
+ input[type="number"] {
186
+ -moz-appearance: textfield;
187
+ }
188
+
189
+ textarea {
190
+ resize: vertical;
191
+ }
192
+
193
+ select {
194
+ -webkit-appearance: none;
195
+ }
196
+
197
+ fieldset {
198
+ margin: 0;
199
+ padding: 0;
200
+ }
@@ -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,214 @@
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
+
56
+ --vp-c-blue: #3b8eed;
57
+ --vp-c-blue-light: #549ced;
58
+ --vp-c-blue-lighter: #50a2ff;
59
+ --vp-c-blue-dark: #3468a3;
60
+ --vp-c-blue-darker: #255489;
61
+
62
+ --vp-c-yellow: #ffc517;
63
+ --vp-c-yellow-light: #ffe417;
64
+ --vp-c-yellow-lighter: #ffff17;
65
+ --vp-c-yellow-dark: #e0ad15;
66
+ --vp-c-yellow-darker: #bc9112;
67
+
68
+ --vp-c-red: #ed3c50;
69
+ --vp-c-red-light: #f43771;
70
+ --vp-c-red-lighter: #fd1d7c;
71
+ --vp-c-red-dark: #cd2d3f;
72
+ --vp-c-red-darker: #ab2131;
73
+
74
+ --vp-c-purple: #de41e0;
75
+ --vp-c-purple-light: #e936eb;
76
+ --vp-c-purple-lighter: #f616f8;
77
+ --vp-c-purple-dark: #823c83;
78
+ --vp-c-purple-darker: #602960;
79
+ }
80
+
81
+ /**
82
+ * Colors Theme
83
+ * -------------------------------------------------------------------------- */
84
+
2
85
  :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;
86
+ --vp-c-bg: var(--vp-c-white);
87
+ --vp-c-bg-soft: var(--vp-c-white-soft);
88
+ --vp-c-bg-mute: var(--vp-c-white-mute);
89
+ --vp-c-bg-content: var(--vp-c-white);
90
+ --vp-c-bg-sidebar: var(--vp-c-white-soft);
91
+
92
+ --vp-c-divider: var(--vp-c-divider-light-1);
93
+ --vp-c-divider-light: var(--vp-c-divider-light-2);
94
+
95
+ --vp-c-divider-inverse: var(--vp-c-divider-dark-1);
96
+ --vp-c-divider-inverse-light: var(--vp-c-divider-dark-2);
97
+
98
+ --vp-c-text-1: var(--vp-c-text-light-1);
99
+ --vp-c-text-2: var(--vp-c-text-light-2);
100
+ --vp-c-text-3: var(--vp-c-text-light-3);
101
+ --vp-c-text-4: var(--vp-c-text-light-4);
102
+
103
+ --vp-c-text-inverse-1: var(--vp-c-text-dark-1);
104
+ --vp-c-text-inverse-2: var(--vp-c-text-dark-2);
105
+ --vp-c-text-inverse-3: var(--vp-c-text-dark-3);
106
+ --vp-c-text-inverse-4: var(--vp-c-text-dark-4);
107
+
108
+ --vp-c-text-code: var(--vp-c-indigo-soft);
109
+
110
+ --vp-c-brand: var(--vp-c-green);
111
+ --vp-c-brand-light: var(--vp-c-green-light);
112
+ --vp-c-brand-dark: var(--vp-c-green-dark);
56
113
  }
57
114
 
58
- /** Fallback Styles */
115
+ .dark {
116
+ --vp-c-bg: var(--vp-c-black);
117
+ --vp-c-bg-soft: var(--vp-c-black-soft);
118
+ --vp-c-bg-mute: var(--vp-c-black-mute);
119
+ --vp-c-bg-content: var(--vp-c-bg-soft);
120
+ --vp-c-bg-sidebar: var(--vp-c-bg);
121
+
122
+ --vp-c-divider: var(--vp-c-divider-dark-1);
123
+ --vp-c-divider-light: var(--vp-c-divider-dark-2);
124
+
125
+ --vp-c-divider-inverse: var(--vp-c-divider-light-1);
126
+ --vp-c-divider-inverse-light: var(--vp-c-divider-light-2);
127
+
128
+ --vp-c-text-1: var(--vp-c-text-dark-1);
129
+ --vp-c-text-2: var(--vp-c-text-dark-2);
130
+ --vp-c-text-3: var(--vp-c-text-dark-3);
131
+ --vp-c-text-4: var(--vp-c-text-dark-4);
132
+
133
+ --vp-c-text-inverse-1: var(--vp-c-text-light-1);
134
+ --vp-c-text-inverse-2: var(--vp-c-text-light-2);
135
+ --vp-c-text-inverse-3: var(--vp-c-text-light-3);
136
+ --vp-c-text-inverse-4: var(--vp-c-text-light-4);
137
+
138
+ --vp-c-text-code: var(--vp-c-indigo-light);
139
+ }
140
+
141
+ /**
142
+ * Typography
143
+ * -------------------------------------------------------------------------- */
144
+
59
145
  :root {
60
- --c-divider: var(--c-divider-light);
146
+ --vp-font-family-base: Inter, -apple-system,
147
+ BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
148
+ 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
149
+ --vp-font-family-mono: Menlo, Monaco, Consolas, 'Courier New', monospace;
150
+ }
61
151
 
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);
152
+ /**
153
+ * Shadows
154
+ * -------------------------------------------------------------------------- */
65
155
 
66
- --c-bg: var(--c-white);
67
- --c-bg-accent: var(--c-white-dark);
156
+ :root {
157
+ --vp-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
158
+ --vp-shadow-2: 0 3px 12px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.07);
159
+ --vp-shadow-3: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
160
+ --vp-shadow-4: 0 14px 44px rgba(0, 0, 0, 0.12), 0 3px 9px rgba(0, 0, 0, 0.12);
161
+ --vp-shadow-5: 0 18px 56px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.16);
162
+ }
163
+
164
+ /**
165
+ * Z-indexes
166
+ * -------------------------------------------------------------------------- */
167
+
168
+ :root {
169
+ --vp-z-index-local-nav: 10;
170
+ --vp-z-index-nav: 20;
171
+ --vp-z-backdrop: 30;
172
+ --vp-z-index-sidebar: 40;
173
+ }
174
+
175
+ /**
176
+ * Layouts
177
+ * -------------------------------------------------------------------------- */
178
+
179
+ :root {
180
+ --vp-layout-max-width: 1376px;
181
+ }
182
+
183
+ /**
184
+ * Component: Nav
185
+ * -------------------------------------------------------------------------- */
186
+
187
+ :root {
188
+ --vp-nav-height-mobile: 56px;
189
+ --vp-nav-height-desktop: 72px;
190
+ }
191
+
192
+ /**
193
+ * Component: Sidebar
194
+ * -------------------------------------------------------------------------- */
195
+
196
+ :root {
197
+ --vp-sidebar-width: 272px;
198
+ }
199
+
200
+ /**
201
+ * Component: Code
202
+ * -------------------------------------------------------------------------- */
203
+
204
+ :root {
205
+ --vp-code-line-height: 24px;
206
+ --vp-code-font-size: 14px;
207
+
208
+ --vp-code-block-color: var(--vp-c-text-dark-1);
209
+ --vp-code-block-bg: #292d3e;
210
+ }
68
211
 
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;
212
+ .dark {
213
+ --vp-code-block-bg: var(--vp-c-bg-sidebar);
74
214
  }