create-slidev-theme 0.50.0-beta.1 → 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-slidev-theme",
3
3
  "type": "module",
4
- "version": "0.50.0-beta.1",
4
+ "version": "0.50.0-beta.10",
5
5
  "description": "Create starter theme template for Slidev",
6
6
  "author": "antfu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -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/themes/use).
30
+ Learn more about [how to use a theme](https://sli.dev/guide/theme-addon#use-theme).
31
31
 
32
32
  ## Layouts
33
33
 
@@ -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 p-1 rounded cursor-pointer hover:bg-white hover:bg-opacity-10">
11
- Press Space for next page <carbon:arrow-right class="inline"/>
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
 
@@ -14,16 +14,14 @@
14
14
  "screenshot": "slidev export example.md --format png"
15
15
  },
16
16
  "dependencies": {
17
- "@slidev/types": "^0.50.0-beta.1",
18
- "prism-theme-vars": "^0.2.5"
17
+ "@slidev/types": "^0.50.0-beta.10"
19
18
  },
20
19
  "devDependencies": {
21
- "@slidev/cli": "^0.50.0-beta.1"
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",
@@ -1,5 +1,3 @@
1
1
  // inherit from base layouts, remove it to get full customizations
2
2
  import '@slidev/client/styles/layouts-base.css'
3
3
  import './layout.css'
4
- // TODO: remove this in v0.50
5
- import './prism.css'
@@ -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
- }