create-slidev-theme 0.49.29 → 0.50.0-beta.10
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.
- package/index.mjs +4 -4
- package/package.json +1 -1
- package/template/README.md +1 -1
- package/template/example.md +2 -2
- package/template/package.json +2 -4
- package/template/styles/index.ts +0 -2
- package/template/styles/prism.css +0 -49
package/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
3
|
|
|
4
|
-
// @ts-check
|
|
5
|
-
import process from 'node:process'
|
|
6
4
|
import fs from 'node:fs'
|
|
7
|
-
import path from 'node:path'
|
|
8
5
|
import { createRequire } from 'node:module'
|
|
6
|
+
import path from 'node:path'
|
|
7
|
+
// @ts-check
|
|
8
|
+
import process from 'node:process'
|
|
9
9
|
import { fileURLToPath } from 'node:url'
|
|
10
|
+
import { blue, bold, cyan, dim, green, yellow } from 'kolorist'
|
|
10
11
|
import minimist from 'minimist'
|
|
11
12
|
import prompts from 'prompts'
|
|
12
|
-
import { blue, bold, cyan, dim, green, yellow } from 'kolorist'
|
|
13
13
|
|
|
14
14
|
const argv = minimist(process.argv.slice(2))
|
|
15
15
|
const cwd = process.cwd()
|
package/package.json
CHANGED
package/template/README.md
CHANGED
|
@@ -27,7 +27,7 @@ Add the following frontmatter to your `slides.md`. Start Slidev then it will pro
|
|
|
27
27
|
theme: <b>{{name}}</b>
|
|
28
28
|
---</code></pre>
|
|
29
29
|
|
|
30
|
-
Learn more about [how to use a theme](https://sli.dev/
|
|
30
|
+
Learn more about [how to use a theme](https://sli.dev/guide/theme-addon#use-theme).
|
|
31
31
|
|
|
32
32
|
## Layouts
|
|
33
33
|
|
package/template/example.md
CHANGED
|
@@ -7,8 +7,8 @@ theme: ./
|
|
|
7
7
|
Presentation slides for developers
|
|
8
8
|
|
|
9
9
|
<div class="pt-12">
|
|
10
|
-
<span @click="next" class="px-2
|
|
11
|
-
Press Space for next page <carbon:arrow-right
|
|
10
|
+
<span @click="$slidev.nav.next" class="px-2 py-1 rounded cursor-pointer" flex="~ justify-center items-center gap-2" hover="bg-white bg-opacity-10">
|
|
11
|
+
Press Space for next page <div class="i-carbon:arrow-right inline-block"/>
|
|
12
12
|
</span>
|
|
13
13
|
</div>
|
|
14
14
|
|
package/template/package.json
CHANGED
|
@@ -14,16 +14,14 @@
|
|
|
14
14
|
"screenshot": "slidev export example.md --format png"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@slidev/types": "^0.
|
|
18
|
-
"prism-theme-vars": "^0.2.5"
|
|
17
|
+
"@slidev/types": "^0.50.0-beta.10"
|
|
19
18
|
},
|
|
20
19
|
"devDependencies": {
|
|
21
|
-
"@slidev/cli": "^0.
|
|
20
|
+
"@slidev/cli": "^0.50.0-beta.10"
|
|
22
21
|
},
|
|
23
22
|
"//": "Learn more: https://sli.dev/guide/write-theme.html",
|
|
24
23
|
"slidev": {
|
|
25
24
|
"colorSchema": "both",
|
|
26
|
-
"highlighter": "all",
|
|
27
25
|
"defaults": {
|
|
28
26
|
"fonts": {
|
|
29
27
|
"sans": "Nunito Sans",
|
package/template/styles/index.ts
CHANGED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
@import 'prism-theme-vars/base.css';
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
--prism-font-family: var(--slidev-code-font-family);
|
|
5
|
-
--prism-background: var(--slidev-code-background);
|
|
6
|
-
--prism-foreground: #393a34;
|
|
7
|
-
--prism-comment: #a0ada0;
|
|
8
|
-
--prism-string: #b56959;
|
|
9
|
-
--prism-literal: #2f8a89;
|
|
10
|
-
--prism-number: #296aa3;
|
|
11
|
-
--prism-keyword: #1c6b48;
|
|
12
|
-
--prism-function: #6c7834;
|
|
13
|
-
--prism-boolean: #1c6b48;
|
|
14
|
-
--prism-constant: #a65e2b;
|
|
15
|
-
--prism-deleted: #a14f55;
|
|
16
|
-
--prism-class: #2993a3;
|
|
17
|
-
--prism-builtin: #ab5959;
|
|
18
|
-
--prism-property: #b58451;
|
|
19
|
-
--prism-namespace: #b05a78;
|
|
20
|
-
--prism-punctuation: #8e8f8b;
|
|
21
|
-
--prism-decorator: #bd8f8f;
|
|
22
|
-
--prism-regex: #ab5e3f;
|
|
23
|
-
--prism-json-property: #698c96;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
html.dark {
|
|
27
|
-
--prism-foreground: #d4cfbf;
|
|
28
|
-
--prism-comment: #758575;
|
|
29
|
-
--prism-string: #d48372;
|
|
30
|
-
--prism-literal: #429988;
|
|
31
|
-
--prism-keyword: #4d9375;
|
|
32
|
-
--prism-boolean: #1c6b48;
|
|
33
|
-
--prism-number: #6394bf;
|
|
34
|
-
--prism-variable: #c2b36e;
|
|
35
|
-
--prism-function: #a1b567;
|
|
36
|
-
--prism-deleted: #a14f55;
|
|
37
|
-
--prism-class: #54b1bf;
|
|
38
|
-
--prism-builtin: #e0a569;
|
|
39
|
-
--prism-property: #dd8e6e;
|
|
40
|
-
--prism-namespace: #db889a;
|
|
41
|
-
--prism-punctuation: #858585;
|
|
42
|
-
--prism-decorator: #bd8f8f;
|
|
43
|
-
--prism-regex: #ab5e3f;
|
|
44
|
-
--prism-json-property: #6b8b9e;
|
|
45
|
-
--prism-line-number: #888888;
|
|
46
|
-
--prism-line-number-gutter: #eeeeee;
|
|
47
|
-
--prism-line-highlight-background: #444444;
|
|
48
|
-
--prism-selection-background: #444444;
|
|
49
|
-
}
|