create-slidev-theme 0.49.29 → 0.50.0-beta.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.
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-slidev-theme",
3
3
  "type": "module",
4
- "version": "0.49.29",
4
+ "version": "0.50.0-beta.2",
5
5
  "description": "Create starter theme template for Slidev",
6
6
  "author": "antfu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -14,16 +14,14 @@
14
14
  "screenshot": "slidev export example.md --format png"
15
15
  },
16
16
  "dependencies": {
17
- "@slidev/types": "^0.49.29",
18
- "prism-theme-vars": "^0.2.5"
17
+ "@slidev/types": "^0.50.0-beta.2"
19
18
  },
20
19
  "devDependencies": {
21
- "@slidev/cli": "^0.49.29"
20
+ "@slidev/cli": "^0.50.0-beta.2"
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
- }