Skip to content

Commit

Permalink
feat!: update theme for Slidev 0.47
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 2, 2024
1 parent 845a6a6 commit b583773
Show file tree
Hide file tree
Showing 22 changed files with 638 additions and 321 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"@antfu/eslint-config": "^2.6.3",
"@antfu/ni": "^0.21.12",
"@antfu/utils": "^0.7.7",
"@slidev/cli": "^0.46.3",
"@slidev/client": "^0.46.3",
"@slidev/parser": "^0.46.3",
"@slidev/types": "^0.46.3",
"@slidev/cli": "^0.47.0",
"@slidev/client": "^0.47.0",
"@slidev/parser": "^0.47.0",
"@slidev/types": "^0.47.0",
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.11.16",
"@typescript-eslint/eslint-plugin": "^6.20.0",
Expand Down
9 changes: 3 additions & 6 deletions packages/theme-apple-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@
],
"engines": {
"node": ">=14.0.0",
"slidev": ">=0.19.3"
"slidev": ">=v0.47.0"
},
"slidev": {
"colorSchema": "both",
"highlighter": "all",
"defaults": {
"fonts": {
"sans": "Helvetica Neue",
Expand All @@ -35,9 +33,8 @@
"screenshot": "slidev export example.md --format png"
},
"dependencies": {
"@slidev/types": "^0.46.3",
"@slidev/types": "^0.47.0",
"codemirror-theme-vars": "^0.1.2",
"prism-theme-vars": "^0.2.4",
"theme-vitesse": "^0.7.5"
"prism-theme-vars": "^0.2.4"
}
}
2 changes: 1 addition & 1 deletion packages/theme-apple-basic/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import './layout.css'
import './code.css'
import './prism.css'
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@

:root {
--prism-font-family: var(--slidev-code-font-family);
--slidev-code-background: var(--prism-background);
--prism-background: var(--slidev-code-background);
}

html:not(.dark) {
--prism-foreground: #393a34;
--prism-background: #f8f8f8;
--prism-comment: #a0ada0;
--prism-string: #b56959;
--prism-literal: #2f8a89;
Expand All @@ -31,7 +30,6 @@ html:not(.dark) {

html.dark {
--prism-foreground: #d4cfbf;
--prism-background: #202020;
--prism-comment: #758575;
--prism-string: #d48372;
--prism-literal: #429988;
Expand All @@ -54,17 +52,3 @@ html.dark {
--prism-line-highlight-background: #444444;
--prism-selection-background: #444444;
}

pre[class*='language-'] {
@apply p-2;
}

:not(pre) > code {
font-size: 0.9em;
background: var(--prism-background);
@apply font-light py-0.5 rounded;
}

:not(pre) > code:before {
margin-right: -0.08em;
}
8 changes: 3 additions & 5 deletions packages/theme-bricks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
],
"engines": {
"node": ">=14.0.0",
"slidev": ">=0.19.2"
"slidev": ">=v0.47.0"
},
"slidev": {
"colorSchema": "light",
"highlighter": "all",
"defaults": {
"fonts": {
"sans": "Signika Negative",
Expand All @@ -30,9 +29,8 @@
}
},
"dependencies": {
"@slidev/types": "^0.46.3",
"@slidev/types": "^0.47.0",
"codemirror-theme-vars": "^0.1.2",
"prism-theme-vars": "^0.2.4",
"theme-vitesse": "^0.7.5"
"prism-theme-vars": "^0.2.4"
}
}
1 change: 0 additions & 1 deletion packages/theme-bricks/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import '@slidev/client/styles/layouts-base.css'
import './layouts.css'
import './prism.css'
import './shiki.css'
14 changes: 1 addition & 13 deletions packages/theme-bricks/styles/prism.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@

:root {
--prism-font-family: var(--slidev-code-font-family);
--slidev-code-background: var(--prism-background);
--prism-background: var(--slidev-code-background);
}

html:not(.dark) {
--prism-foreground: #393a34;
--prism-background: #f8f8f8;
--prism-comment: #a0ada0;
--prism-string: #b56959;
--prism-literal: #2f8a89;
Expand All @@ -31,7 +30,6 @@ html:not(.dark) {

html.dark {
--prism-foreground: #d4cfbf;
--prism-background: #202020;
--prism-comment: #758575;
--prism-string: #d48372;
--prism-literal: #429988;
Expand All @@ -54,13 +52,3 @@ html.dark {
--prism-line-highlight-background: #444444;
--prism-selection-background: #444444;
}

:not(pre) > code {
font-size: 0.9em;
background: var(--prism-background);
@apply font-light py-0.5 rounded;
}

:not(pre) > code:before {
margin-right: -0.08em;
}
7 changes: 0 additions & 7 deletions packages/theme-bricks/styles/shiki.css

This file was deleted.

9 changes: 3 additions & 6 deletions packages/theme-default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
],
"engines": {
"node": ">=14.0.0",
"slidev": ">=0.19.2"
"slidev": ">=v0.47.0"
},
"slidev": {
"colorSchema": "both",
"highlighter": "all",
"defaults": {
"fonts": {
"mono": "Fira Code",
Expand All @@ -31,9 +29,8 @@
}
},
"dependencies": {
"@slidev/types": "^0.46.3",
"@slidev/types": "^0.47.0",
"codemirror-theme-vars": "^0.1.2",
"prism-theme-vars": "^0.2.4",
"theme-vitesse": "^0.7.5"
"prism-theme-vars": "^0.2.4"
}
}
1 change: 0 additions & 1 deletion packages/theme-default/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import '@slidev/client/styles/layouts-base.css'
import './layouts.css'
import './prism.css'
import './shiki.css'
14 changes: 1 addition & 13 deletions packages/theme-default/styles/prism.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@

:root {
--prism-font-family: var(--slidev-code-font-family);
--slidev-code-background: var(--prism-background);
--prism-background: var(--slidev-code-background);
}

html:not(.dark) {
--prism-foreground: #393a34;
--prism-background: #f8f8f8;
--prism-comment: #a0ada0;
--prism-string: #b56959;
--prism-literal: #2f8a89;
Expand All @@ -31,7 +30,6 @@ html:not(.dark) {

html.dark {
--prism-foreground: #d4cfbf;
--prism-background: #202020;
--prism-comment: #758575;
--prism-string: #d48372;
--prism-literal: #429988;
Expand All @@ -54,13 +52,3 @@ html.dark {
--prism-line-highlight-background: #444444;
--prism-selection-background: #444444;
}

:not(pre) > code {
font-size: 0.9em;
background: var(--prism-background);
@apply font-light py-0.5 rounded;
}

:not(pre) > code:before {
margin-right: -0.08em;
}
7 changes: 0 additions & 7 deletions packages/theme-default/styles/shiki.css

This file was deleted.

9 changes: 3 additions & 6 deletions packages/theme-seriph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
],
"engines": {
"node": ">=14.0.0",
"slidev": ">=0.19.3"
"slidev": ">=v0.47.0"
},
"slidev": {
"colorSchema": "both",
"highlighter": "all",
"defaults": {
"fonts": {
"mono": "PT Mono",
Expand All @@ -33,9 +31,8 @@
}
},
"dependencies": {
"@slidev/types": "^0.46.3",
"@slidev/types": "^0.47.0",
"codemirror-theme-vars": "^0.1.2",
"prism-theme-vars": "^0.2.4",
"theme-vitesse": "^0.7.5"
"prism-theme-vars": "^0.2.4"
}
}
1 change: 0 additions & 1 deletion packages/theme-seriph/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import '@slidev/client/styles/layouts-base.css'
import './layouts.css'
import './prism.css'
import './shiki.css'
20 changes: 1 addition & 19 deletions packages/theme-seriph/styles/prism.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@

:root {
--prism-font-family: var(--slidev-code-font-family);
--slidev-code-background: var(--prism-background);
--prism-background: var(--slidev-code-background);
}

html:not(.dark) {
--prism-foreground: #393a34;
--prism-background: #fafafa;
--prism-comment: #a0ada0;
--prism-string: #b56959;
--prism-literal: #2f8a89;
Expand All @@ -31,7 +30,6 @@ html:not(.dark) {

html.dark {
--prism-foreground: #d4cfbf;
--prism-background: #202020;
--prism-comment: #758575;
--prism-string: #d48372;
--prism-literal: #429988;
Expand All @@ -54,19 +52,3 @@ html.dark {
--prism-line-highlight-background: #444444;
--prism-selection-background: #444444;
}

:not(pre) > code {
font-size: 0.9em;
background: var(--prism-background);
@apply font-light py-0.5;
}

:not(pre) > code:before,
:not(pre) > code:after {
content: '`';
opacity: 0.50;
}

:not(pre) > code:before {
margin-right: -0.08em;
}
7 changes: 0 additions & 7 deletions packages/theme-seriph/styles/shiki.css

This file was deleted.

9 changes: 4 additions & 5 deletions packages/theme-shibainu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"slidev"
],
"engines": {
"node": ">=14.0.0"
"node": ">=14.0.0",
"slidev": ">=v0.47.0"
},
"slidev": {
"colorSchema": "dark",
"highlighter": "all",
"defaults": {
"fonts": {
"sans": "Titillium Web",
Expand All @@ -28,9 +28,8 @@
}
},
"dependencies": {
"@slidev/types": "^0.46.3",
"@slidev/types": "^0.47.0",
"codemirror-theme-vars": "^0.1.2",
"prism-theme-vars": "^0.2.4",
"theme-vitesse": "^0.7.5"
"prism-theme-vars": "^0.2.4"
}
}
1 change: 0 additions & 1 deletion packages/theme-shibainu/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import '@slidev/client/styles/layouts-base.css'
import './layouts.css'
import './prism.css'
import './shiki.css'
16 changes: 2 additions & 14 deletions packages/theme-shibainu/styles/prism.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@

:root {
--prism-font-family: var(--slidev-code-font-family);
--slidev-code-background: var(--prism-background);
--prism-background: var(--slidev-code-background);
}

html:not(.dark) {
--prism-foreground: #393a34;
--prism-background: #fafafa20;
--prism-comment: #a0ada0;
--prism-string: #b56959;
--prism-literal: #2f8a89;
Expand All @@ -29,9 +28,8 @@ html:not(.dark) {
--prism-json-property: #698c96;
}

.dark {
html.dark {
--prism-foreground: #d4cfbf;
--prism-background: #1b1b1b20;
--prism-comment: #758575;
--prism-string: #d48372;
--prism-literal: #429988;
Expand All @@ -54,13 +52,3 @@ html:not(.dark) {
--prism-line-highlight-background: #444444;
--prism-selection-background: #444444;
}

:not(pre) > code {
font-size: 0.9em;
background: var(--prism-background);
@apply font-light py-0.5 rounded;
}

:not(pre) > code:before {
margin-right: -0.08em;
}
7 changes: 0 additions & 7 deletions packages/theme-shibainu/styles/shiki.css

This file was deleted.

Loading

0 comments on commit b583773

Please sign in to comment.