@md-plugins/quasar-app-extension-q-press 0.1.0-beta.18 → 0.1.0-beta.19

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 (70) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +1 -1
  3. package/dist/install.js +1 -1
  4. package/dist/templates/init/src/_q-press/css/app.scss +21 -20
  5. package/dist/templates/init/src/_q-press/css/code-theme.scss +306 -0
  6. package/dist/templates/init/src/_q-press/css/themes/default.scss +1 -1
  7. package/dist/templates/init/src/_q-press/css/themes/evergreen.scss +69 -0
  8. package/dist/templates/init/src/_q-press/css/themes/mystic.scss +1 -1
  9. package/dist/templates/init/src/_q-press/css/themes/newspaper.scss +1 -1
  10. package/dist/templates/init/src/_q-press/css/themes/sunrise.scss +1 -1
  11. package/dist/templates/init/src/_q-press/css/themes/tawny.scss +1 -1
  12. package/dist/templates/init/src/components/QPressThemeGallery.vue +336 -0
  13. package/dist/templates/init/src/markdown/faq/best-practices.md +27 -0
  14. package/dist/templates/init/src/markdown/faq/general.md +27 -0
  15. package/dist/templates/init/src/markdown/faq/troubleshooting.md +27 -0
  16. package/dist/templates/init/src/markdown/md-plugins/codeblocks/advanced.md +17 -13
  17. package/dist/templates/init/src/markdown/md-plugins/codeblocks/overview.md +17 -0
  18. package/dist/templates/init/src/markdown/md-plugins/shared/overview.md +16 -5
  19. package/dist/templates/init/src/markdown/other/contributing/overview.md +1 -4
  20. package/dist/templates/init/src/markdown/other/faq.md +92 -35
  21. package/dist/templates/init/src/markdown/other/upgrade-guide.md +13 -11
  22. package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/overview.md +1 -1
  23. package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/site-config.md +16 -1
  24. package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/themes.md +12 -1
  25. package/dist/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/advanced.md +158 -0
  26. package/dist/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/overview.md +1 -1
  27. package/dist/templates/init/src/markdown/vite-plugins/vite-md-plugin/overview.md +14 -1
  28. package/dist/templates/update/src/_q-press/css/app.scss +21 -20
  29. package/dist/templates/update/src/_q-press/css/code-theme.scss +306 -0
  30. package/dist/templates/update/src/_q-press/css/themes/default.scss +1 -1
  31. package/dist/templates/update/src/_q-press/css/themes/evergreen.scss +69 -0
  32. package/dist/templates/update/src/_q-press/css/themes/mystic.scss +1 -1
  33. package/dist/templates/update/src/_q-press/css/themes/newspaper.scss +1 -1
  34. package/dist/templates/update/src/_q-press/css/themes/sunrise.scss +1 -1
  35. package/dist/templates/update/src/_q-press/css/themes/tawny.scss +1 -1
  36. package/package.json +13 -13
  37. package/src/index.ts +1 -1
  38. package/src/install.ts +1 -1
  39. package/src/templates/init/src/_q-press/css/app.scss +21 -20
  40. package/src/templates/init/src/_q-press/css/code-theme.scss +306 -0
  41. package/src/templates/init/src/_q-press/css/themes/default.scss +1 -1
  42. package/src/templates/init/src/_q-press/css/themes/evergreen.scss +69 -0
  43. package/src/templates/init/src/_q-press/css/themes/mystic.scss +1 -1
  44. package/src/templates/init/src/_q-press/css/themes/newspaper.scss +1 -1
  45. package/src/templates/init/src/_q-press/css/themes/sunrise.scss +1 -1
  46. package/src/templates/init/src/_q-press/css/themes/tawny.scss +1 -1
  47. package/src/templates/init/src/components/QPressThemeGallery.vue +336 -0
  48. package/src/templates/init/src/markdown/faq/best-practices.md +27 -0
  49. package/src/templates/init/src/markdown/faq/general.md +27 -0
  50. package/src/templates/init/src/markdown/faq/troubleshooting.md +27 -0
  51. package/src/templates/init/src/markdown/md-plugins/codeblocks/advanced.md +17 -13
  52. package/src/templates/init/src/markdown/md-plugins/codeblocks/overview.md +17 -0
  53. package/src/templates/init/src/markdown/md-plugins/shared/overview.md +16 -5
  54. package/src/templates/init/src/markdown/other/contributing/overview.md +1 -4
  55. package/src/templates/init/src/markdown/other/faq.md +92 -35
  56. package/src/templates/init/src/markdown/other/upgrade-guide.md +13 -11
  57. package/src/templates/init/src/markdown/quasar-app-extensions/qpress/overview.md +1 -1
  58. package/src/templates/init/src/markdown/quasar-app-extensions/qpress/site-config.md +16 -1
  59. package/src/templates/init/src/markdown/quasar-app-extensions/qpress/themes.md +12 -1
  60. package/src/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/advanced.md +158 -0
  61. package/src/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/overview.md +1 -1
  62. package/src/templates/init/src/markdown/vite-plugins/vite-md-plugin/overview.md +14 -1
  63. package/src/templates/update/src/_q-press/css/app.scss +21 -20
  64. package/src/templates/update/src/_q-press/css/code-theme.scss +306 -0
  65. package/src/templates/update/src/_q-press/css/themes/default.scss +1 -1
  66. package/src/templates/update/src/_q-press/css/themes/evergreen.scss +69 -0
  67. package/src/templates/update/src/_q-press/css/themes/mystic.scss +1 -1
  68. package/src/templates/update/src/_q-press/css/themes/newspaper.scss +1 -1
  69. package/src/templates/update/src/_q-press/css/themes/sunrise.scss +1 -1
  70. package/src/templates/update/src/_q-press/css/themes/tawny.scss +1 -1
package/README.md CHANGED
@@ -4,9 +4,9 @@ The Ultimate Markdown Solution for the Quasar Framework.
4
4
 
5
5
  See the [documentation](https://md-plugins.netlify.app/quasar-app-extensions/qpress/overview) for more information.
6
6
 
7
- > Current beta release: `0.1.0-beta.14`.
7
+ > Current beta release: `0.1.0-beta.19`.
8
8
  >
9
- > Q-Press currently targets Quasar Vite projects using `@quasar/app-vite` `>=3.0.0-beta.31`. TypeScript processing is required.
9
+ > Q-Press currently targets Quasar Vite projects using `@quasar/app-vite` `>=3.0.0-beta.33`. TypeScript processing is required.
10
10
 
11
11
  ## Features
12
12
 
package/dist/index.js CHANGED
@@ -42,7 +42,7 @@ function extendTypeScriptConfig(typescriptConfig) {
42
42
  }
43
43
  export default defineIndexScript((api) => {
44
44
  api.compatibleWith('quasar', '^2.0.0');
45
- api.compatibleWith('@quasar/app-vite', '>=3.0.0-beta.32');
45
+ api.compatibleWith('@quasar/app-vite', '>=3.0.0-beta.33');
46
46
  // here we extend /quasar.config, so we can add some Vite/Vue stuff
47
47
  api.extendQuasarConf(async (config) => {
48
48
  config.build ??= {};
package/dist/install.js CHANGED
@@ -7,7 +7,7 @@ import { defineInstallScript } from '@quasar/app-vite';
7
7
  import { existsSync } from 'node:fs';
8
8
  export default defineInstallScript(async (api) => {
9
9
  api.compatibleWith('quasar', '^2.0.0');
10
- api.compatibleWith('@quasar/app-vite', '>=3.0.0-beta.32');
10
+ api.compatibleWith('@quasar/app-vite', '>=3.0.0-beta.33');
11
11
  // project must have pinia installed
12
12
  if ((await api.getStorePackageName()) !== 'pinia') {
13
13
  console.error('-----------------------------');
@@ -1,4 +1,5 @@
1
1
  @use 'sass:math';
2
+ @use 'sass:color';
2
3
  @use './fonts.scss';
3
4
 
4
5
  // Keep this import so Shiki code blocks share the selected qPress theme variables.
@@ -124,16 +125,16 @@ ul {
124
125
  }
125
126
 
126
127
  &--tip {
127
- color: scale-color($positive, $lightness: -40%) !important;
128
- background-color: scale-color($positive, $lightness: 85%);
128
+ color: color.scale($positive, $lightness: -40%) !important;
129
+ background-color: color.scale($positive, $lightness: 85%);
129
130
  border-color: $positive;
130
131
  .markdown-note__title,
131
132
  .markdown-link,
132
133
  .markdown-token {
133
- color: scale-color($positive, $lightness: -40%);
134
+ color: color.scale($positive, $lightness: -40%);
134
135
  }
135
136
  .markdown-token {
136
- border-color: scale-color($positive, $lightness: -40%);
137
+ border-color: color.scale($positive, $lightness: -40%);
137
138
  }
138
139
  & strong {
139
140
  font-weight: 700;
@@ -142,16 +143,16 @@ ul {
142
143
  }
143
144
 
144
145
  &--warning {
145
- color: scale-color($warning, $lightness: -40%);
146
- background-color: scale-color($warning, $lightness: 85%);
147
- border-color: scale-color($warning, $lightness: -30%);
146
+ color: color.scale($warning, $lightness: -40%);
147
+ background-color: color.scale($warning, $lightness: 85%);
148
+ border-color: color.scale($warning, $lightness: -30%);
148
149
  .markdown-note__title,
149
150
  .markdown-link,
150
151
  .markdown-token {
151
- color: scale-color($warning, $lightness: -40%);
152
+ color: color.scale($warning, $lightness: -40%);
152
153
  }
153
154
  .markdown-token {
154
- border-color: scale-color($warning, $lightness: -40%);
155
+ border-color: color.scale($warning, $lightness: -40%);
155
156
  }
156
157
  & strong {
157
158
  font-weight: 700;
@@ -160,8 +161,8 @@ ul {
160
161
  }
161
162
 
162
163
  &--danger {
163
- color: scale-color($negative, $lightness: -40%);
164
- background-color: scale-color($negative, $lightness: 90%);
164
+ color: color.scale($negative, $lightness: -40%);
165
+ background-color: color.scale($negative, $lightness: 90%);
165
166
  border-color: $negative;
166
167
  .markdown-note__title,
167
168
  .markdown-link,
@@ -516,7 +517,7 @@ body.q-scroll--lock .q-page > .q-scroll--anchor {
516
517
  .markdown-heading .q-badge,
517
518
  .header-badge {
518
519
  color: $brand-primary;
519
- background: scale-color($light-bg, $lightness: 15%);
520
+ background: color.scale($light-bg, $lightness: 15%);
520
521
  vertical-align: super;
521
522
  letter-spacing: $letter-spacing-brand;
522
523
  padding: 4px 8px;
@@ -602,9 +603,9 @@ body.body--dark {
602
603
 
603
604
  .markdown-note {
604
605
  &:not(.markdown-note--tip, .markdown-note--warning, .markdown-note--danger) {
605
- color: scale-color($dark-pill, $lightness: 80%);
606
+ color: color.scale($dark-pill, $lightness: 80%);
606
607
  background-color: $dark-pill;
607
- border-color: scale-color($dark-pill, $lightness: 50%);
608
+ border-color: color.scale($dark-pill, $lightness: 50%);
608
609
  .markdown-token {
609
610
  border-color: #ddd;
610
611
  color: #ddd;
@@ -616,7 +617,7 @@ body.body--dark {
616
617
 
617
618
  &--tip {
618
619
  border-color: $positive;
619
- background-color: scale-color($positive, $lightness: -85%);
620
+ background-color: color.scale($positive, $lightness: -85%);
620
621
  .markdown-note__title,
621
622
  .markdown-link,
622
623
  .markdown-token {
@@ -629,7 +630,7 @@ body.body--dark {
629
630
 
630
631
  &--warning {
631
632
  border-color: $warning;
632
- background-color: scale-color($warning, $lightness: -85%);
633
+ background-color: color.scale($warning, $lightness: -85%);
633
634
  .markdown-note__title,
634
635
  .markdown-link,
635
636
  .markdown-token {
@@ -642,7 +643,7 @@ body.body--dark {
642
643
 
643
644
  &--danger {
644
645
  border-color: $negative;
645
- background-color: scale-color($negative, $lightness: -80%);
646
+ background-color: color.scale($negative, $lightness: -80%);
646
647
  }
647
648
  }
648
649
 
@@ -667,7 +668,7 @@ body.body--dark {
667
668
  padding: 4px 8px 4px 28px;
668
669
  position: relative;
669
670
  border-radius: 3px 5px 5px 0;
670
- background: scale-color($brand-light, $lightness: -15%);
671
+ background: color.scale($brand-light, $lightness: -15%);
671
672
  color: $brand-secondary;
672
673
  font-size: ($font-size + 2px);
673
674
  letter-spacing: $letter-spacing-brand;
@@ -681,7 +682,7 @@ body.body--dark {
681
682
  height: 0;
682
683
  border: 0 solid transparent;
683
684
  border-width: 9px 0 0 11px;
684
- border-top-color: scale-color($brand-light, $lightness: -25%);
685
+ border-top-color: color.scale($brand-light, $lightness: -25%);
685
686
  }
686
687
  }
687
688
 
@@ -689,6 +690,6 @@ body.body--dark .markdown-card-title {
689
690
  background: $brand-secondary;
690
691
  color: $dark-text;
691
692
  &:after {
692
- border-top-color: scale-color($brand-secondary, $lightness: -30%);
693
+ border-top-color: color.scale($brand-secondary, $lightness: -30%);
693
694
  }
694
695
  }
@@ -104,6 +104,288 @@
104
104
  margin-right: 8px;
105
105
  }
106
106
 
107
+ .twoslash {
108
+ --twoslash-border-color: rgba(128, 128, 128, 0.5);
109
+ --twoslash-underline-color: currentColor;
110
+ --twoslash-highlighted-border: rgba(195, 125, 13, 0.35);
111
+ --twoslash-highlighted-bg: rgba(195, 125, 13, 0.14);
112
+ --twoslash-popup-bg: #f8f8f8;
113
+ --twoslash-popup-color: inherit;
114
+ --twoslash-popup-shadow: rgba(0, 0, 0, 0.16) 0 8px 24px;
115
+ --twoslash-docs-color: #69727d;
116
+ --twoslash-docs-font: $typography-font-family;
117
+ --twoslash-code-font: inherit;
118
+ --twoslash-code-font-size: 1em;
119
+ --twoslash-matched-color: inherit;
120
+ --twoslash-unmatched-color: #7d8b99;
121
+ --twoslash-cursor-color: rgba(128, 128, 128, 0.5);
122
+ --twoslash-error-color: #d45656;
123
+ --twoslash-error-bg: rgba(212, 86, 86, 0.16);
124
+ --twoslash-warn-color: #c37d0d;
125
+ --twoslash-warn-bg: rgba(195, 125, 13, 0.16);
126
+ --twoslash-tag-color: #3772cf;
127
+ --twoslash-tag-bg: rgba(55, 114, 207, 0.16);
128
+ --twoslash-tag-warn-color: var(--twoslash-warn-color);
129
+ --twoslash-tag-warn-bg: var(--twoslash-warn-bg);
130
+ --twoslash-tag-annotate-color: #1ba673;
131
+ --twoslash-tag-annotate-bg: rgba(27, 166, 115, 0.16);
132
+
133
+ .twoslash-hover {
134
+ border-bottom: 1px dotted transparent;
135
+ position: relative;
136
+ transition: border-color 0.3s ease;
137
+ }
138
+
139
+ &:hover .twoslash-hover {
140
+ border-color: var(--twoslash-underline-color);
141
+ }
142
+
143
+ .twoslash-popup-container {
144
+ position: absolute;
145
+ z-index: 10;
146
+ display: inline-flex;
147
+ flex-direction: column;
148
+ min-width: max-content;
149
+ max-width: min(80vw, 560px);
150
+ color: var(--twoslash-popup-color);
151
+ background: var(--twoslash-popup-bg);
152
+ border: 1px solid var(--twoslash-border-color);
153
+ border-radius: 6px;
154
+ box-shadow: var(--twoslash-popup-shadow);
155
+ opacity: 0;
156
+ pointer-events: none;
157
+ text-align: left;
158
+ transform: translateY(1.1em);
159
+ transition: opacity 0.3s ease;
160
+ user-select: none;
161
+ }
162
+
163
+ .twoslash-query-persisted .twoslash-popup-container {
164
+ z-index: 9;
165
+ transform: translateY(1.5em);
166
+ }
167
+
168
+ .twoslash-hover:hover .twoslash-popup-container,
169
+ .twoslash-error-hover:hover .twoslash-popup-container,
170
+ .twoslash-query-persisted .twoslash-popup-container,
171
+ .twoslash-query-line .twoslash-popup-container {
172
+ opacity: 1;
173
+ pointer-events: auto;
174
+ }
175
+
176
+ .twoslash-popup-container:hover {
177
+ user-select: auto;
178
+ }
179
+
180
+ .twoslash-popup-arrow {
181
+ position: absolute;
182
+ top: -4px;
183
+ left: 1em;
184
+ width: 6px;
185
+ height: 6px;
186
+ pointer-events: none;
187
+ background: var(--twoslash-popup-bg);
188
+ border-top: 1px solid var(--twoslash-border-color);
189
+ border-right: 1px solid var(--twoslash-border-color);
190
+ transform: rotate(-45deg);
191
+ }
192
+
193
+ .twoslash-popup-code,
194
+ .twoslash-popup-error,
195
+ .twoslash-popup-docs {
196
+ padding: 6px 8px !important;
197
+ }
198
+
199
+ .twoslash-popup-code {
200
+ font-family: var(--twoslash-code-font);
201
+ font-size: var(--twoslash-code-font-size);
202
+ }
203
+
204
+ .twoslash-popup-docs,
205
+ .twoslash-popup-error,
206
+ .twoslash-popup-docs-tags {
207
+ font-family: var(--twoslash-docs-font);
208
+ font-size: 0.8em;
209
+ }
210
+
211
+ .twoslash-popup-docs {
212
+ color: var(--twoslash-docs-color);
213
+ border-top: 1px solid var(--twoslash-border-color);
214
+ }
215
+
216
+ .twoslash-popup-error {
217
+ color: var(--twoslash-error-color);
218
+ background-color: var(--twoslash-error-bg);
219
+ }
220
+
221
+ .twoslash-popup-docs-tags {
222
+ display: flex;
223
+ flex-direction: column;
224
+ }
225
+
226
+ .twoslash-popup-docs-tags,
227
+ .twoslash-popup-docs-tag-name {
228
+ margin-right: 0.5em;
229
+ }
230
+
231
+ .twoslash-popup-docs-tag-name {
232
+ font-family: var(--twoslash-code-font);
233
+ }
234
+
235
+ .twoslash-query-line .twoslash-popup-container {
236
+ position: relative;
237
+ margin-bottom: 1.4em;
238
+ transform: translateY(0.6em);
239
+ }
240
+
241
+ .twoslash-error-line,
242
+ .twoslash-tag-line {
243
+ position: relative;
244
+ min-width: 100%;
245
+ width: max-content;
246
+ margin: 0.2em 0;
247
+ border-left: 3px solid;
248
+ }
249
+
250
+ .twoslash-error-line {
251
+ color: var(--twoslash-error-color);
252
+ background-color: var(--twoslash-error-bg);
253
+ border-left-color: var(--twoslash-error-color);
254
+ padding: 6px 12px;
255
+ }
256
+
257
+ .twoslash-error-line.twoslash-error-level-warning {
258
+ color: var(--twoslash-warn-color);
259
+ background-color: var(--twoslash-warn-bg);
260
+ border-left-color: var(--twoslash-warn-color);
261
+ }
262
+
263
+ .twoslash-error {
264
+ padding-bottom: 2px;
265
+ text-decoration: underline wavy var(--twoslash-error-color);
266
+ text-underline-offset: 3px;
267
+ }
268
+
269
+ .twoslash-error.twoslash-error-level-warning {
270
+ text-decoration-color: var(--twoslash-warn-color);
271
+ }
272
+
273
+ .twoslash-completion-cursor {
274
+ position: relative;
275
+ }
276
+
277
+ .twoslash-completion-cursor .twoslash-completion-list {
278
+ position: absolute;
279
+ top: 0;
280
+ left: 0;
281
+ z-index: 8;
282
+ display: inline-block;
283
+ margin: 3px 0 0 -1px;
284
+ background: var(--twoslash-popup-bg);
285
+ border: 1px solid var(--twoslash-border-color);
286
+ box-shadow: var(--twoslash-popup-shadow);
287
+ transform: translate(0, 1.2em);
288
+ user-select: none;
289
+ }
290
+
291
+ .twoslash-completion-list {
292
+ display: flex;
293
+ flex-direction: column;
294
+ gap: 4px;
295
+ width: 240px;
296
+ padding: 4px;
297
+ font-size: 0.8rem;
298
+
299
+ &:hover {
300
+ user-select: auto;
301
+ }
302
+
303
+ &:before {
304
+ content: ' ';
305
+ position: absolute;
306
+ top: -1.6em;
307
+ left: -1px;
308
+ width: 2px;
309
+ height: 1.4em;
310
+ background-color: var(--twoslash-cursor-color);
311
+ }
312
+
313
+ li {
314
+ display: flex;
315
+ gap: 0.25em;
316
+ align-items: center;
317
+ overflow: hidden;
318
+ line-height: 1em;
319
+ }
320
+
321
+ .twoslash-completions-unmatched {
322
+ color: var(--twoslash-unmatched-color);
323
+ }
324
+
325
+ .twoslash-completions-matched {
326
+ color: var(--twoslash-matched-color);
327
+ }
328
+
329
+ .deprecated {
330
+ text-decoration: line-through;
331
+ opacity: 0.5;
332
+ }
333
+
334
+ .twoslash-completions-icon {
335
+ flex: none;
336
+ width: 1em;
337
+ color: var(--twoslash-unmatched-color);
338
+ }
339
+ }
340
+
341
+ .twoslash-highlighted {
342
+ padding: 1px 2px;
343
+ margin: -1px -3px;
344
+ background-color: var(--twoslash-highlighted-bg);
345
+ border: 1px solid var(--twoslash-highlighted-border);
346
+ border-radius: 4px;
347
+ }
348
+
349
+ .twoslash-tag-line {
350
+ display: flex;
351
+ gap: 0.3em;
352
+ align-items: center;
353
+ color: var(--twoslash-tag-color);
354
+ background-color: var(--twoslash-tag-bg);
355
+ border-left-color: var(--twoslash-tag-color);
356
+ padding: 6px 10px;
357
+
358
+ .twoslash-tag-icon {
359
+ width: 1.1em;
360
+ color: inherit;
361
+ }
362
+ }
363
+
364
+ .twoslash-tag-line.twoslash-tag-error-line {
365
+ color: var(--twoslash-error-color);
366
+ background-color: var(--twoslash-error-bg);
367
+ border-left-color: var(--twoslash-error-color);
368
+ }
369
+
370
+ .twoslash-tag-line.twoslash-tag-warn-line {
371
+ color: var(--twoslash-tag-warn-color);
372
+ background-color: var(--twoslash-tag-warn-bg);
373
+ border-left-color: var(--twoslash-tag-warn-color);
374
+ }
375
+
376
+ .twoslash-tag-line.twoslash-tag-annotate-line {
377
+ color: var(--twoslash-tag-annotate-color);
378
+ background-color: var(--twoslash-tag-annotate-bg);
379
+ border-left-color: var(--twoslash-tag-annotate-color);
380
+ }
381
+ }
382
+
383
+ @media (prefers-reduced-motion: reduce) {
384
+ .twoslash * {
385
+ transition: none !important;
386
+ }
387
+ }
388
+
107
389
  body.body--light {
108
390
  .shiki,
109
391
  .shiki span {
@@ -115,6 +397,14 @@ body.body--light {
115
397
  background-color: $brand-light-codeblock-bg;
116
398
  }
117
399
 
400
+ .twoslash {
401
+ --twoslash-popup-bg: #ffffff;
402
+ --twoslash-popup-color: #24292e;
403
+ --twoslash-border-color: #d0d7de;
404
+ --twoslash-docs-color: #57606a;
405
+ --twoslash-unmatched-color: #6e7781;
406
+ }
407
+
118
408
  .line-highlight:before {
119
409
  background: rgba($grey, 0.2);
120
410
  }
@@ -225,6 +515,22 @@ body.body--dark {
225
515
  background-color: $brand-dark-codeblock-bg;
226
516
  }
227
517
 
518
+ .twoslash {
519
+ --twoslash-popup-bg: #1f2937;
520
+ --twoslash-popup-color: #e6edf3;
521
+ --twoslash-border-color: #4b5563;
522
+ --twoslash-docs-color: #9ca3af;
523
+ --twoslash-unmatched-color: #9ca3af;
524
+ --twoslash-error-bg: rgba(248, 113, 113, 0.18);
525
+ --twoslash-error-color: #f87171;
526
+ --twoslash-warn-bg: rgba(251, 191, 36, 0.16);
527
+ --twoslash-warn-color: #fbbf24;
528
+ --twoslash-tag-bg: rgba(96, 165, 250, 0.18);
529
+ --twoslash-tag-color: #93c5fd;
530
+ --twoslash-tag-annotate-bg: rgba(52, 211, 153, 0.16);
531
+ --twoslash-tag-annotate-color: #6ee7b7;
532
+ }
533
+
228
534
  .line-highlight:before {
229
535
  background: rgba($grey-3, 0.2);
230
536
  }
@@ -33,7 +33,7 @@ $light-pill: $brand-light;
33
33
  $light-text: $brand-light-text;
34
34
  $light-bg: $brand-light-bg;
35
35
 
36
- $dark-pill: scale-color($brand-dark-bg, $lightness: 12%);
36
+ $dark-pill: color.scale($brand-dark-bg, $lightness: 12%);
37
37
  $dark-text: $brand-dark-text;
38
38
  $dark-bg: $brand-dark-bg;
39
39
 
@@ -0,0 +1,69 @@
1
+ @use 'sass:color';
2
+
3
+ // Evergreen Theme Variables
4
+ $primary: #0f766e;
5
+ $secondary: #3f8f68;
6
+ $accent: #f59e0b;
7
+
8
+ $positive: #2ecc71;
9
+ $negative: #ff1732;
10
+ $info: #10a0ff;
11
+ $warning: #ffd52d;
12
+
13
+ $brand-primary: #14b8a6;
14
+ $brand-secondary: #3f8f68;
15
+ $brand-accent: #f59e0b;
16
+ $brand-dark: #173b2f;
17
+ $brand-light: #e6f6ee;
18
+ $brand-medium: #6b8f7a;
19
+ $brand-light-text: #173b2f;
20
+ $brand-light-bg: #f3faf6;
21
+ $brand-dark-bg: #071914;
22
+ $brand-dark-text: #d7f3e6;
23
+ $brand-light-codeblock-bg: #e6f6ee;
24
+ $brand-light-codeblock-text: #0f5132;
25
+ $brand-dark-codeblock-bg: #0e2a22;
26
+ $brand-dark-codeblock-text: #b8f5d4;
27
+
28
+ $header-btn-color--light: #0f766e;
29
+ $header-btn-hover-color--light: #b45309;
30
+ $header-btn-color--dark: #5eead4;
31
+ $header-btn-hover-color--dark: #fbbf24;
32
+
33
+ $light-pill: $brand-light;
34
+ $light-text: $brand-light-text;
35
+ $light-bg: $brand-light-bg;
36
+
37
+ $dark-pill: color.scale($brand-dark-bg, $lightness: 12%);
38
+ $dark-text: $brand-dark-text;
39
+ $dark-bg: $brand-dark-bg;
40
+
41
+ $separator-color: $brand-accent;
42
+ $separator-color-dark: $brand-accent;
43
+
44
+ $font-size: 16px;
45
+ $font-size-brand: 16px;
46
+ $font-weight-brand: 500;
47
+ $font-weight-technical: 400;
48
+ $letter-spacing-brand: 0.7px;
49
+
50
+ $font-family-technical:
51
+ 'Roboto',
52
+ -apple-system,
53
+ Avenir,
54
+ BlinkMacSystemFont,
55
+ 'Segoe UI',
56
+ Helvetica,
57
+ Arial,
58
+ sans-serif;
59
+ $font-family-examples: $font-family-technical;
60
+ $font-family-brand: 'Montserrat', $font-family-technical;
61
+
62
+ $shadow--large: 0 24px 24px 0 rgba($brand-primary, 0.24);
63
+ $shadow--medium: 0 6px 6px 0 rgba($brand-primary, 0.38);
64
+ $shadow--small: 0 6px 6px 0 rgba($brand-primary, 0.28);
65
+
66
+ // also update QHeader :height-hint
67
+ $header-height: 55px;
68
+ $header-transition: 0.6s cubic-bezier(0.25, 0.8, 0.5, 1);
69
+ $header-quick-transition: 0.28s ease-in-out;
@@ -38,7 +38,7 @@ $light-pill: $brand-light;
38
38
  $light-text: $brand-light-text;
39
39
  $light-bg: $brand-light-bg;
40
40
 
41
- $dark-pill: scale-color($brand-dark-bg, $lightness: 12%);
41
+ $dark-pill: color.scale($brand-dark-bg, $lightness: 12%);
42
42
  $dark-text: $brand-dark-text;
43
43
  $dark-bg: $brand-dark-bg;
44
44
 
@@ -34,7 +34,7 @@ $light-pill: $brand-light;
34
34
  $light-text: $brand-light-text;
35
35
  $light-bg: $brand-light-bg;
36
36
 
37
- $dark-pill: scale-color($brand-dark-bg, $lightness: 12%);
37
+ $dark-pill: color.scale($brand-dark-bg, $lightness: 12%);
38
38
  $dark-text: $brand-dark-text;
39
39
  $dark-bg: $brand-dark-bg;
40
40
 
@@ -34,7 +34,7 @@ $light-pill: $brand-light;
34
34
  $light-text: $brand-light-text;
35
35
  $light-bg: $brand-light-bg;
36
36
 
37
- $dark-pill: scale-color($brand-dark-bg, $lightness: 12%);
37
+ $dark-pill: color.scale($brand-dark-bg, $lightness: 12%);
38
38
  $dark-text: $brand-dark-text;
39
39
  $dark-bg: $brand-dark-bg;
40
40
 
@@ -34,7 +34,7 @@ $light-pill: $brand-light;
34
34
  $light-text: $brand-light-text;
35
35
  $light-bg: $brand-light-bg;
36
36
 
37
- $dark-pill: scale-color($brand-dark-bg, $lightness: 12%);
37
+ $dark-pill: color.scale($brand-dark-bg, $lightness: 12%);
38
38
  $dark-text: $brand-dark-text;
39
39
  $dark-bg: $brand-dark-bg;
40
40