feature: vor und nachteile

This commit is contained in:
Hikyu
2026-05-31 13:54:31 +02:00
parent 552a947a1c
commit e3dad17446
23270 changed files with 3024794 additions and 200 deletions
+507
View File
@@ -0,0 +1,507 @@
# 0.25.0 (2024-02-02)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* handleBackground helper colors all themes ([#6](https://github.com/slidevjs/themes/issues/6)) ([60a38f2](https://github.com/slidevjs/themes/commit/60a38f253b05df7c8408de84289867914411345a))
* remove `defineProps` imports ([9c02acf](https://github.com/slidevjs/themes/commit/9c02acf6353edfc81d88a5255306f126d06f148d))
* **seriph:** correct boldface and italics ([#10](https://github.com/slidevjs/themes/issues/10)) ([30353e1](https://github.com/slidevjs/themes/commit/30353e1ca1e638a5d5e0f5ba9809f414ade8b403))
* subheader style ([25491db](https://github.com/slidevjs/themes/commit/25491db815ac89f1cc1a952751e918e808164a48))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* new themes ([#3](https://github.com/slidevjs/themes/issues/3)) ([cbd0a1a](https://github.com/slidevjs/themes/commit/cbd0a1ac29ab4e7c5d5be24c55ee90a3945245d3))
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
* update theme ([5ce60c6](https://github.com/slidevjs/themes/commit/5ce60c6a139a497acde5f4cbceb456854599f4f9))
* upgrade to slidev 0.14 ([5b97e29](https://github.com/slidevjs/themes/commit/5b97e29c45c51ef724252df2b711d1b30c7208cd))
* use webfonts auto importing ([f3091e2](https://github.com/slidevjs/themes/commit/f3091e2f4fac1137bafaa841050690b956f607a4))
# 0.24.0 (2024-02-02)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* handleBackground helper colors all themes ([#6](https://github.com/slidevjs/themes/issues/6)) ([60a38f2](https://github.com/slidevjs/themes/commit/60a38f253b05df7c8408de84289867914411345a))
* remove `defineProps` imports ([9c02acf](https://github.com/slidevjs/themes/commit/9c02acf6353edfc81d88a5255306f126d06f148d))
* **seriph:** correct boldface and italics ([#10](https://github.com/slidevjs/themes/issues/10)) ([30353e1](https://github.com/slidevjs/themes/commit/30353e1ca1e638a5d5e0f5ba9809f414ade8b403))
* subheader style ([25491db](https://github.com/slidevjs/themes/commit/25491db815ac89f1cc1a952751e918e808164a48))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* new themes ([#3](https://github.com/slidevjs/themes/issues/3)) ([cbd0a1a](https://github.com/slidevjs/themes/commit/cbd0a1ac29ab4e7c5d5be24c55ee90a3945245d3))
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
* update theme ([5ce60c6](https://github.com/slidevjs/themes/commit/5ce60c6a139a497acde5f4cbceb456854599f4f9))
* upgrade to slidev 0.14 ([5b97e29](https://github.com/slidevjs/themes/commit/5b97e29c45c51ef724252df2b711d1b30c7208cd))
* use webfonts auto importing ([f3091e2](https://github.com/slidevjs/themes/commit/f3091e2f4fac1137bafaa841050690b956f607a4))
# 0.23.0 (2024-02-02)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* handleBackground helper colors all themes ([#6](https://github.com/slidevjs/themes/issues/6)) ([60a38f2](https://github.com/slidevjs/themes/commit/60a38f253b05df7c8408de84289867914411345a))
* remove `defineProps` imports ([9c02acf](https://github.com/slidevjs/themes/commit/9c02acf6353edfc81d88a5255306f126d06f148d))
* **seriph:** correct boldface and italics ([#10](https://github.com/slidevjs/themes/issues/10)) ([30353e1](https://github.com/slidevjs/themes/commit/30353e1ca1e638a5d5e0f5ba9809f414ade8b403))
* subheader style ([25491db](https://github.com/slidevjs/themes/commit/25491db815ac89f1cc1a952751e918e808164a48))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* new themes ([#3](https://github.com/slidevjs/themes/issues/3)) ([cbd0a1a](https://github.com/slidevjs/themes/commit/cbd0a1ac29ab4e7c5d5be24c55ee90a3945245d3))
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
* update theme ([5ce60c6](https://github.com/slidevjs/themes/commit/5ce60c6a139a497acde5f4cbceb456854599f4f9))
* upgrade to slidev 0.14 ([5b97e29](https://github.com/slidevjs/themes/commit/5b97e29c45c51ef724252df2b711d1b30c7208cd))
* use webfonts auto importing ([f3091e2](https://github.com/slidevjs/themes/commit/f3091e2f4fac1137bafaa841050690b956f607a4))
## 0.21.3 (2022-07-19)
### Bug Fixes
* **seriph:** correct boldface and italics ([#10](https://github.com/slidevjs/themes/issues/10)) ([30353e1](https://github.com/slidevjs/themes/commit/30353e1ca1e638a5d5e0f5ba9809f414ade8b403))
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* handleBackground helper colors all themes ([#6](https://github.com/slidevjs/themes/issues/6)) ([60a38f2](https://github.com/slidevjs/themes/commit/60a38f253b05df7c8408de84289867914411345a))
* remove `defineProps` imports ([9c02acf](https://github.com/slidevjs/themes/commit/9c02acf6353edfc81d88a5255306f126d06f148d))
* subheader style ([25491db](https://github.com/slidevjs/themes/commit/25491db815ac89f1cc1a952751e918e808164a48))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* new themes ([#3](https://github.com/slidevjs/themes/issues/3)) ([cbd0a1a](https://github.com/slidevjs/themes/commit/cbd0a1ac29ab4e7c5d5be24c55ee90a3945245d3))
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* update theme ([5ce60c6](https://github.com/slidevjs/themes/commit/5ce60c6a139a497acde5f4cbceb456854599f4f9))
* upgrade to slidev 0.14 ([5b97e29](https://github.com/slidevjs/themes/commit/5b97e29c45c51ef724252df2b711d1b30c7208cd))
* use webfonts auto importing ([f3091e2](https://github.com/slidevjs/themes/commit/f3091e2f4fac1137bafaa841050690b956f607a4))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
## 0.21.2 (2022-03-05)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* handleBackground helper colors all themes ([#6](https://github.com/slidevjs/themes/issues/6)) ([60a38f2](https://github.com/slidevjs/themes/commit/60a38f253b05df7c8408de84289867914411345a))
* remove `defineProps` imports ([9c02acf](https://github.com/slidevjs/themes/commit/9c02acf6353edfc81d88a5255306f126d06f148d))
* subheader style ([25491db](https://github.com/slidevjs/themes/commit/25491db815ac89f1cc1a952751e918e808164a48))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* new themes ([#3](https://github.com/slidevjs/themes/issues/3)) ([cbd0a1a](https://github.com/slidevjs/themes/commit/cbd0a1ac29ab4e7c5d5be24c55ee90a3945245d3))
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* update theme ([5ce60c6](https://github.com/slidevjs/themes/commit/5ce60c6a139a497acde5f4cbceb456854599f4f9))
* upgrade to slidev 0.14 ([5b97e29](https://github.com/slidevjs/themes/commit/5b97e29c45c51ef724252df2b711d1b30c7208cd))
* use webfonts auto importing ([f3091e2](https://github.com/slidevjs/themes/commit/f3091e2f4fac1137bafaa841050690b956f607a4))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
## 0.21.1 (2021-11-22)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* remove `defineProps` imports ([9c02acf](https://github.com/slidevjs/themes/commit/9c02acf6353edfc81d88a5255306f126d06f148d))
* subheader style ([25491db](https://github.com/slidevjs/themes/commit/25491db815ac89f1cc1a952751e918e808164a48))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* new themes ([#3](https://github.com/slidevjs/themes/issues/3)) ([cbd0a1a](https://github.com/slidevjs/themes/commit/cbd0a1ac29ab4e7c5d5be24c55ee90a3945245d3))
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* update theme ([5ce60c6](https://github.com/slidevjs/themes/commit/5ce60c6a139a497acde5f4cbceb456854599f4f9))
* upgrade to slidev 0.14 ([5b97e29](https://github.com/slidevjs/themes/commit/5b97e29c45c51ef724252df2b711d1b30c7208cd))
* use webfonts auto importing ([f3091e2](https://github.com/slidevjs/themes/commit/f3091e2f4fac1137bafaa841050690b956f607a4))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
# 0.21.0 (2021-09-13)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* remove `defineProps` imports ([9c02acf](https://github.com/slidevjs/themes/commit/9c02acf6353edfc81d88a5255306f126d06f148d))
* subheader style ([25491db](https://github.com/slidevjs/themes/commit/25491db815ac89f1cc1a952751e918e808164a48))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* new themes ([#3](https://github.com/slidevjs/themes/issues/3)) ([cbd0a1a](https://github.com/slidevjs/themes/commit/cbd0a1ac29ab4e7c5d5be24c55ee90a3945245d3))
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* update theme ([5ce60c6](https://github.com/slidevjs/themes/commit/5ce60c6a139a497acde5f4cbceb456854599f4f9))
* upgrade to slidev 0.14 ([5b97e29](https://github.com/slidevjs/themes/commit/5b97e29c45c51ef724252df2b711d1b30c7208cd))
* use webfonts auto importing ([f3091e2](https://github.com/slidevjs/themes/commit/f3091e2f4fac1137bafaa841050690b956f607a4))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
# 0.20.0 (2021-09-07)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* subheader style ([25491db](https://github.com/slidevjs/themes/commit/25491db815ac89f1cc1a952751e918e808164a48))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* new themes ([#3](https://github.com/slidevjs/themes/issues/3)) ([cbd0a1a](https://github.com/slidevjs/themes/commit/cbd0a1ac29ab4e7c5d5be24c55ee90a3945245d3))
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* update theme ([5ce60c6](https://github.com/slidevjs/themes/commit/5ce60c6a139a497acde5f4cbceb456854599f4f9))
* upgrade to slidev 0.14 ([5b97e29](https://github.com/slidevjs/themes/commit/5b97e29c45c51ef724252df2b711d1b30c7208cd))
* use webfonts auto importing ([f3091e2](https://github.com/slidevjs/themes/commit/f3091e2f4fac1137bafaa841050690b956f607a4))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
## 0.19.1 (2021-06-06)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* subheader style ([25491db](https://github.com/slidevjs/themes/commit/25491db815ac89f1cc1a952751e918e808164a48))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* update theme ([5ce60c6](https://github.com/slidevjs/themes/commit/5ce60c6a139a497acde5f4cbceb456854599f4f9))
* upgrade to slidev 0.14 ([5b97e29](https://github.com/slidevjs/themes/commit/5b97e29c45c51ef724252df2b711d1b30c7208cd))
* use webfonts auto importing ([f3091e2](https://github.com/slidevjs/themes/commit/f3091e2f4fac1137bafaa841050690b956f607a4))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
# 0.19.0 (2021-06-04)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* update theme ([5ce60c6](https://github.com/slidevjs/themes/commit/5ce60c6a139a497acde5f4cbceb456854599f4f9))
* upgrade to slidev 0.14 ([5b97e29](https://github.com/slidevjs/themes/commit/5b97e29c45c51ef724252df2b711d1b30c7208cd))
* use webfonts auto importing ([f3091e2](https://github.com/slidevjs/themes/commit/f3091e2f4fac1137bafaa841050690b956f607a4))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
# 0.17.0 (2021-06-03)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* update theme ([5ce60c6](https://github.com/slidevjs/themes/commit/5ce60c6a139a497acde5f4cbceb456854599f4f9))
* upgrade to slidev 0.14 ([5b97e29](https://github.com/slidevjs/themes/commit/5b97e29c45c51ef724252df2b711d1b30c7208cd))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
## 0.14.1 (2021-05-27)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* upgrade to slidev 0.14 ([5b97e29](https://github.com/slidevjs/themes/commit/5b97e29c45c51ef724252df2b711d1b30c7208cd))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
# 0.14.0 (2021-05-27)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* upgrade to slidev 0.14 ([5b97e29](https://github.com/slidevjs/themes/commit/5b97e29c45c51ef724252df2b711d1b30c7208cd))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
## 0.7.10 (2021-05-27)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
## 0.7.9 (2021-05-27)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
## 0.7.8 (2021-05-27)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
## 0.7.7 (2021-05-27)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
## 0.7.6 (2021-05-26)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
## 0.7.5 (2021-05-22)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
## 0.7.4 (2021-05-22)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
* windicss extract glob not valid ([#1](https://github.com/slidevjs/themes/issues/1)) ([875fcc9](https://github.com/slidevjs/themes/commit/875fcc9c8ac6edf75fc49f7640a56acb9d438d2f))
### Features
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
## 0.7.3 (2021-05-22)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
### Features
* primary color customization ([df299cf](https://github.com/slidevjs/themes/commit/df299cf7c06fbc556fead0e11feeaf58142d5a20))
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
## 0.7.1 (2021-05-20)
### Bug Fixes
* embbed layout helper ([ee4cd9a](https://github.com/slidevjs/themes/commit/ee4cd9a1456da59ddb8baafb6a4783f94200f42c))
### Features
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
## 0.7.1 (2021-05-15)
### Features
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
## 0.7.1 (2021-05-13)
### Features
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
# 0.7.0 (2021-05-13)
### Features
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
* **style:** update slidev code background using prism values ([3c9da06](https://github.com/slidevjs/themes/commit/3c9da061865d15ea40efffd550b8c1ccbcd95c61))
# 0.7.0 (2021-05-11)
### Features
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
# 0.7.0 (2021-05-11)
### Features
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
# 0.7.0 (2021-05-11)
### Features
* **seriph:** new layouts ([2cd898b](https://github.com/slidevjs/themes/commit/2cd898b207f1de0aa593ec442f2cd4e12f0eafe8))
## 0.6.7 (2021-05-10)
## 0.6.7 (2021-05-10)
## 0.6.7 (2021-05-10)
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2021 Slidev.js Team
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+29
View File
@@ -0,0 +1,29 @@
# @slidev/theme-seriph
[![NPM version](https://img.shields.io/npm/v/@slidev/theme-seriph?color=3AB9D4&label=)](https://www.npmjs.com/package/@slidev/theme-seriph)
An official theme for [Slidev](https://github.com/slidevjs/slidev) using serif fonts.
## Install
Add the following frontmatter to your `slides.md`. Start Slidev then it will prompt you to install the theme automatically.
<pre><code>---
theme: <b>seriph</b>
---</code></pre>
Learn more about [how to use a theme](https://sli.dev/themes/use).
## Customization
```yaml
---
theme: serif
themeConfig:
primary: '#5d8392'
---
```
## License
MIT License © 2021 [Anthony Fu](https://github.com/antfu)
+95
View File
@@ -0,0 +1,95 @@
---
theme: ./
layout: cover
background: https://images.unsplash.com/photo-1530819568329-97653eafbbfa?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=2092&q=80
themeConfig:
primary: '#4d7534'
---
# Presentation title
Presentation subtitle
---
# Slide Title
Slide Subtitle
* Slide bullet text
* Slide bullet text
* Slide bullet text
* Slide bullet text
* Slide bullet text
---
layout: image-right
image: https://source.unsplash.com/collection/94734566/1920x1080
---
# Slide Title
Colons can be used to align columns.
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
---
layout: section
---
# Section Title
---
layout: statement
---
# Statement
---
layout: fact
---
# 100%
Fact information
---
layout: quote
---
# "Notable quote"
Attribution
---
layout: image-left
image: https://source.unsplash.com/collection/94734566/1920x1080
---
# Code
```ts {all|2|1-6|all}
interface User {
id: number
firstName: string
lastName: string
role: string
}
function updateUser(id: number, update: Partial<User>) {
const user = getUser(id)
const newUser = { ...user, ...update }
saveUser(id, newUser)
}
```
---
layout: center
class: "text-center"
---
# Learn More
[Documentations](https://sli.dev) / [GitHub Repo](https://github.com/slidevjs/slidev)
+38
View File
@@ -0,0 +1,38 @@
import type { CSSProperties } from 'vue'
/**
* Resolve urls from frontmatter and append with the base url
*/
export function resolveAssetUrl(url: string) {
if (url.startsWith('/'))
return import.meta.env.BASE_URL + url.slice(1)
return url
}
export function handleBackground(background?: string, dim = false): CSSProperties {
const isColor = background && ['#', 'rgb', 'hsl'].some(v => background.indexOf(v) === 0)
const style = {
background: isColor
? background
: undefined,
color: (background && !isColor)
? 'white'
: undefined,
backgroundImage: isColor
? undefined
: background
? dim
? `linear-gradient(#0005, #0008), url(${resolveAssetUrl(background)})`
: `url("${resolveAssetUrl(background)}")`
: undefined,
backgroundRepeat: 'no-repeat',
backgroundPosition: 'center',
backgroundSize: 'cover',
}
if (!style.background)
delete style.background
return style
}
+24
View File
@@ -0,0 +1,24 @@
<script setup lang="ts">
import { computed } from 'vue'
import { handleBackground } from '../layoutHelper'
const props = defineProps({
background: {
// random image from a curated Unsplash collection by Anthony
default: 'https://source.unsplash.com/collection/94734566/1920x1080',
},
})
const style = computed(() => handleBackground(props.background, true))
</script>
<template>
<div
class="slidev-layout cover text-center"
:style="style"
>
<div class="my-auto w-full">
<slot />
</div>
</div>
</template>
+7
View File
@@ -0,0 +1,7 @@
<template>
<div class="slidev-layout fact">
<div class="my-auto">
<slot />
</div>
</div>
</template>
+7
View File
@@ -0,0 +1,7 @@
<template>
<div class="slidev-layout intro">
<div class="my-auto">
<slot />
</div>
</div>
</template>
+7
View File
@@ -0,0 +1,7 @@
<template>
<div class="slidev-layout quote">
<div class="my-auto">
<slot />
</div>
</div>
</template>
+7
View File
@@ -0,0 +1,7 @@
<template>
<div class="slidev-layout section w-full h-full grid">
<div class="my-auto text-center">
<slot />
</div>
</div>
</template>
@@ -0,0 +1,7 @@
<template>
<div class="slidev-layout statement">
<div class="my-auto">
<slot />
</div>
</div>
</template>
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020-2021 Anthony Fu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,9 @@
# @slidev/types
[![NPM version](https://img.shields.io/npm/v/@slidev/types?color=3AB9D4&label=)](https://www.npmjs.com/package/@slidev/types)
Shared types for [Slidev](https://sli.dev).
## License
MIT License © 2021 [Anthony Fu](https://github.com/antfu)
@@ -0,0 +1,5 @@
declare module '/@slidev/configs' {
import { SlidevConfig } from './types'
export default SlidevConfig
}
@@ -0,0 +1,472 @@
import { TransitionGroupProps, App, Ref } from 'vue';
import { Awaitable } from '@antfu/utils';
import * as monaco from 'monaco-editor';
import { Router } from 'vue-router';
import mermaid from 'mermaid';
import { KatexOptions } from 'katex';
import { CodeToHastOptions, Highlighter } from 'shiki';
import { VitePluginConfig } from 'unocss/vite';
interface CommonArgs {
entry: string;
theme?: string;
}
interface ExportArgs extends CommonArgs {
output?: string;
format?: string;
timeout?: number;
range?: string;
dark?: boolean;
'with-clicks'?: boolean;
'executable-path'?: string;
'with-toc'?: boolean;
'per-slide'?: boolean;
scale?: number;
}
interface BuildArgs extends ExportArgs {
watch: boolean;
out: string;
base?: string;
download?: boolean;
inspect: boolean;
}
interface SlidevConfig {
title: string;
/**
* String template to compose title
*
* @example "%s - Slidev" - to suffix " - Slidev" to all pages
* @default '%s - Slidev'
*/
titleTemplate: string;
/**
* Theme to use for the slides
*
* @see https://sli.dev/themes/use.html
* @default 'default'
*/
theme: string;
/**
* List of Slidev addons
*
* @default []
*/
addons: string[];
/**
* Download remote assets in local using vite-plugin-remote-assets
*
* @default false
*/
remoteAssets: boolean | 'dev' | 'build';
/**
* Enable Monaco
*
* @see https://sli.dev/custom/config-monaco.html
* @default 'dev'
*/
monaco: boolean | 'dev' | 'build';
/**
* Show a download button in the SPA build,
* could also be a link to custom pdf
*
* @default false
*/
download: boolean | string;
/**
* Options for export
*
* @default {}
*/
export: ResolvedExportOptions;
/**
* Show a copy button in code blocks
*
* @default true
*/
codeCopy: boolean;
/**
* Information shows on the built SPA
* Can be a markdown string
*
* @default false
*/
info: string | boolean;
/**
* Prefer highlighter
*
* @see https://sli.dev/custom/highlighters.html
* @default shiki
*/
highlighter: 'prism' | 'shiki';
/**
* Show line numbers in code blocks
*
* @default false
*/
lineNumbers: boolean;
/**
* Force slides color schema
*
* @default 'auto'
*/
colorSchema: 'dark' | 'light' | 'all' | 'auto';
/**
* Router mode for vue-router
*
* @default 'history'
*/
routerMode: 'hash' | 'history';
/**
* Aspect ratio for slides
* should be like `16/9` or `1:1`
*
* @default '16/9'
*/
aspectRatio: number;
/**
* The actual width for slides canvas.
* unit in px.
*
* @default '980'
*/
canvasWidth: number;
/**
* Force the filename used when exporting the presentation.
* The extension, e.g. .pdf, gets automatically added.
*
* @default ''
*/
exportFilename: string | null;
/**
* Controls whether texts in slides are selectable
*
* @default true
*/
selectable: boolean;
/**
* Configure for themes, will inject intro root styles as
* `--slidev-theme-x` for attribute `x`
*
* This allows themes to have customization options in frontmatter
* Refer to themes' document for options avaliable
*
* @default {}
*/
themeConfig: SlidevThemeConfig;
/**
* Configure fonts for the slides and app
*
* @default {}
*/
fonts: ResolvedFontOptions;
/**
* Configure the icon for app
*
* @default 'https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png'
*/
favicon: string;
/**
* Options for drawings
*
* @default {}
*/
drawings: ResolvedDrawingsOptions;
/**
* URL of PlantUML server used to render diagrams
*
* @default https://www.plantuml.com/plantuml
*/
plantUmlServer: string;
/**
* Enable slides recording
*
* @default 'dev'
*/
record: boolean | 'dev' | 'build';
/**
* Expose the server to inbound requests (listen to `0.0.0.0`)
*
* Pass a string to set the password for accessing presenter mode.
*
* @default false
*/
remote?: string | boolean;
/**
* Engine for Atomic CSS
*
* @see https://unocss.dev/
* @default 'unocss'
*/
css: 'unocss' | 'none';
/**
* Enable presenter mode
*
* @default true
*/
presenter: boolean | 'dev' | 'build';
/**
* Attributes to apply to the HTML element
*
* @default {}
*/
htmlAttrs: Record<string, string>;
/**
* Page transition, powered by Vue's <TransitionGroup/>
*
* Built-in transitions:
* - fade
* - fade-out
* - slide-left
* - slide-right
* - slide-up
* - slide-down
*
* @see https://sli.dev/guide/animations.html#pages-transitions
* @see https://vuejs.org/guide/built-ins/transition.html
*/
transition?: BuiltinSlideTransition | string | TransitionGroupProps;
/**
* Suppport MDC syntax
*
* @see https://github.com/antfu/markdown-it-mdc
* @see https://content.nuxtjs.org/guide/writing/mdc
* @experimental
* @default false
*/
mdc?: boolean;
/**
* Enable built-in editor
*
* @default true
*/
editor: boolean;
}
interface FontOptions {
/**
* Sans serif fonts (default fonts for most text)
*/
sans?: string | string[];
/**
* Serif fonts
*/
serif?: string | string[];
/**
* Monospace fonts, for code blocks and etc.
*/
mono?: string | string[];
/**
* Load webfonts for custom CSS (does not apply anywhere by default)
*/
custom?: string | string[];
/**
* Weights for fonts
*
* @default [200, 400, 600]
*/
weights?: string | (string | number)[];
/**
* Import italic fonts
*
* @default false
*/
italic?: boolean;
/**
* @default 'google'
*/
provider?: 'none' | 'google';
/**
* Specify web fonts names, will detect from `sans`, `mono`, `serif` if not provided
*/
webfonts?: string[];
/**
* Specify local fonts names, be excluded from webfonts
*/
local?: string[];
/**
* Use fonts fallback
*
* @default true
*/
fallbacks?: boolean;
}
interface DrawingsOptions {
/**
* Persist the drawings to disk
* Passing string to specify the directory (default to `.slidev/drawings`)
*
* @default false
*/
persist?: boolean | string;
/**
* @default true
*/
enabled?: boolean | 'dev' | 'build';
/**
* Only allow drawing from presenter mode
*
* @default false
*/
presenterOnly?: boolean;
/**
* Sync drawing for all instances
*
* @default true
*/
syncAll?: boolean;
}
interface ResolvedFontOptions {
sans: string[];
mono: string[];
serif: string[];
weights: string[];
italic: boolean;
provider: 'none' | 'google';
webfonts: string[];
local: string[];
}
interface ResolvedDrawingsOptions {
persist: string | false;
enabled: boolean | 'dev' | 'build';
presenterOnly: boolean;
syncAll: boolean;
}
interface ResolvedExportOptions extends Omit<ExportArgs, 'entry' | 'theme'> {
withClicks?: boolean;
executablePath?: string;
withToc?: boolean;
}
type BuiltinSlideTransition = 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right' | 'fade' | 'zoom' | 'none';
type FrontmatterStyle = 'frontmatter' | 'yaml';
interface SlideInfoBase {
raw: string;
content: string;
note?: string;
frontmatter: Record<string, any>;
frontmatterRaw?: string;
frontmatterStyle?: FrontmatterStyle;
title?: string;
level?: number;
}
interface SlideInfo extends SlideInfoBase {
index: number;
start: number;
end: number;
inline?: SlideInfoBase;
source?: SlideInfoWithPath;
snippetsUsed?: LoadedSnippets;
}
interface SlideInfoWithPath extends SlideInfoBase {
filepath: string;
}
interface SlideInfoExtended extends SlideInfo {
noteHTML: string;
}
/**
* Metadata for "slidev" field in themes' package.json
*/
interface SlidevThemeMeta {
defaults?: Partial<SlidevConfig>;
colorSchema?: 'dark' | 'light' | 'both';
highlighter?: 'prism' | 'shiki' | 'both';
}
type SlidevThemeConfig = Record<string, string | number>;
interface SlidevFeatureFlags {
katex: boolean;
monaco: boolean;
tweet: boolean;
mermaid: boolean;
}
interface SlidevMarkdown {
slides: SlideInfo[];
raw: string;
config: SlidevConfig;
features: SlidevFeatureFlags;
headmatter: Record<string, unknown>;
filepath?: string;
entries?: string[];
themeMeta?: SlidevThemeMeta;
}
interface SlidevPreparserExtension {
name: string;
transformRawLines?: (lines: string[]) => Promise<void> | void;
transformSlide?: (content: string, frontmatter: any) => Promise<string | undefined>;
}
type PreparserExtensionLoader = (headmatter?: Record<string, unknown>, filepath?: string) => Promise<SlidevPreparserExtension[]>;
type PreparserExtensionFromHeadmatter = (headmatter: any, exts: SlidevPreparserExtension[], filepath?: string) => Promise<SlidevPreparserExtension[]>;
type RenderContext = 'slide' | 'overview' | 'presenter' | 'previewNext';
type LoadedSnippets = Record<string, string>;
interface AppContext {
app: App;
router: Router;
}
interface MonacoSetupReturn {
theme?: {
light?: string;
dark?: string;
};
editorOptions?: monaco.editor.IEditorOptions;
}
type MermaidOptions = (typeof mermaid.initialize) extends (a: infer A) => any ? A : never;
interface NavOperations {
next: () => void;
prev: () => Promise<void>;
nextSlide: () => void;
prevSlide: () => Promise<void>;
go: (index: number) => void;
goFirst: () => void;
goLast: () => void;
downloadPDF: () => Promise<void>;
toggleDark: () => void;
toggleOverview: () => void;
toggleDrawing: () => void;
escapeOverview: () => void;
showGotoDialog: () => void;
}
interface ShortcutOptions {
key: string | Ref<boolean>;
fn?: () => void;
autoRepeat?: boolean;
name?: string;
}
interface ShikiContext {
/**
* @deprecated Pass directly the theme name it's supported by Shiki.
* For custom themes, load it manually via `JSON.parse(fs.readFileSync(path, 'utf-8'))` and pass the raw JSON object instead.
*/
loadTheme: (path: string) => Promise<any>;
}
type ShikiSetupReturn = Partial<CodeToHastOptions> & {
setup?: (highlighter: Highlighter) => Awaitable<void>;
};
type ShikiSetup = (shiki: ShikiContext) => Awaitable<ShikiSetupReturn | void>;
type KatexSetup = () => Awaitable<Partial<KatexOptions> | void>;
type UnoSetup = () => Awaitable<Partial<VitePluginConfig> | void>;
type PreparserSetup = (filepath: string) => SlidevPreparserExtension;
type MonacoSetup = (m: typeof monaco) => Awaitable<MonacoSetupReturn>;
type AppSetup = (context: AppContext) => Awaitable<void>;
type MermaidSetup = () => Partial<MermaidOptions> | void;
type ShortcutsSetup = (nav: NavOperations, defaultShortcuts: ShortcutOptions[]) => Array<ShortcutOptions>;
declare function defineShikiSetup(fn: ShikiSetup): ShikiSetup;
declare function defineUnoSetup(fn: UnoSetup): UnoSetup;
declare function defineMonacoSetup(fn: MonacoSetup): MonacoSetup;
declare function defineAppSetup(fn: AppSetup): AppSetup;
declare function defineMermaidSetup(fn: MermaidSetup): MermaidSetup;
declare function defineKatexSetup(fn: KatexSetup): KatexSetup;
declare function defineShortcutsSetup(fn: ShortcutsSetup): ShortcutsSetup;
declare function definePreparserSetup(fn: PreparserSetup): PreparserSetup;
interface TocItem {
active?: boolean;
activeParent?: boolean;
children: TocItem[];
hasActiveParent?: boolean;
level: number;
path: string;
hideInToc?: boolean;
title?: string;
}
export { type AppContext, type AppSetup, type BuildArgs, type BuiltinSlideTransition, type CommonArgs, type DrawingsOptions, type ExportArgs, type FontOptions, type FrontmatterStyle, type KatexSetup, type LoadedSnippets, type MermaidOptions, type MermaidSetup, type MonacoSetup, type MonacoSetupReturn, type NavOperations, type PreparserExtensionFromHeadmatter, type PreparserExtensionLoader, type PreparserSetup, type RenderContext, type ResolvedDrawingsOptions, type ResolvedExportOptions, type ResolvedFontOptions, type ShikiContext, type ShikiSetup, type ShikiSetupReturn, type ShortcutOptions, type ShortcutsSetup, type SlideInfo, type SlideInfoBase, type SlideInfoExtended, type SlideInfoWithPath, type SlidevConfig, type SlidevFeatureFlags, type SlidevMarkdown, type SlidevPreparserExtension, type SlidevThemeConfig, type SlidevThemeMeta, type TocItem, type UnoSetup, defineAppSetup, defineKatexSetup, defineMermaidSetup, defineMonacoSetup, definePreparserSetup, defineShikiSetup, defineShortcutsSetup, defineUnoSetup };
@@ -0,0 +1,35 @@
// src/setups.ts
function defineShikiSetup(fn) {
return fn;
}
function defineUnoSetup(fn) {
return fn;
}
function defineMonacoSetup(fn) {
return fn;
}
function defineAppSetup(fn) {
return fn;
}
function defineMermaidSetup(fn) {
return fn;
}
function defineKatexSetup(fn) {
return fn;
}
function defineShortcutsSetup(fn) {
return fn;
}
function definePreparserSetup(fn) {
return fn;
}
export {
defineAppSetup,
defineKatexSetup,
defineMermaidSetup,
defineMonacoSetup,
definePreparserSetup,
defineShikiSetup,
defineShortcutsSetup,
defineUnoSetup
};
@@ -0,0 +1,3 @@
import './client'
export * from './dist/index.d.mts'
@@ -0,0 +1,29 @@
{
"name": "@slidev/types",
"version": "0.47.5",
"description": "Shared types declarations for Slidev",
"author": "antfu <anthonyfu117@hotmail.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/antfu",
"homepage": "https://sli.dev",
"repository": {
"type": "git",
"url": "https://github.com/slidevjs/slidev"
},
"bugs": "https://github.com/slidevjs/slidev/issues",
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "index.d.ts",
"files": [
"client.d.ts",
"dist",
"index.d.ts"
],
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"build": "tsup src/index.ts",
"dev": "nr build --watch"
}
}
+38
View File
@@ -0,0 +1,38 @@
{
"name": "@slidev/theme-seriph",
"version": "0.25.0",
"description": "Seriph theme for Slidev",
"author": "antfu <anthonyfu117@hotmail.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/antfu",
"homepage": "https://sli.dev",
"repository": {
"type": "git",
"url": "https://github.com/slidevjs/themes"
},
"bugs": "https://github.com/slidevjs/themes/issues",
"keywords": [
"slidev-theme",
"slidev"
],
"engines": {
"node": ">=14.0.0",
"slidev": ">=v0.47.0"
},
"slidev": {
"defaults": {
"fonts": {
"mono": "PT Mono",
"sans": "PT Serif",
"serif": "PT Serif",
"italic": true,
"weights": "400, 700"
}
}
},
"dependencies": {
"@slidev/types": "^0.47.0",
"codemirror-theme-vars": "^0.1.2",
"prism-theme-vars": "^0.2.4"
}
}
+3
View File
@@ -0,0 +1,3 @@
import '@slidev/client/styles/layouts-base.css'
import './layouts.css'
import './prism.css'
+88
View File
@@ -0,0 +1,88 @@
:root {
--slidev-theme-primary: #5d8392;
}
.slidev-layout {
h1 {
color: var(--slidev-theme-primary);
}
h1 + p {
@apply -mt-2 opacity-50 mb-4;
}
p + h2, ul + h2, table + h2 {
@apply mt-10;
}
h1 {
@apply text-4xl mb-4 -ml-[0.05em];
}
h2 {
@apply text-3xl;
}
h3 {
@apply text-2xl;
}
h4 {
@apply text-xl;
}
h5 {
@apply text-base;
}
h6 {
@apply text-sm pt-1 uppercase tracking-widest font-500 -ml-[0.05em];
}
h6:not(.opacity-100) {
@apply opacity-40;
}
}
.slidev-layout.cover,
.slidev-layout.intro {
@apply h-full grid;
h1 {
color: inherit;
@apply text-6xl leading-20;
}
}
.slidev-layout.fact {
@apply text-center grid h-full;
h1 {
@apply text-8xl font-700;
}
h1 + p {
@apply font-700 text-2xl;
}
}
.slidev-layout.statement {
@apply text-center grid h-full;
h1 {
@apply text-6xl font-700;
}
}
.slidev-layout.quote {
@apply grid h-full;
h1 + p {
@apply mt-2;
}
}
.slidev-layout.section {
h1 {
@apply text-6xl font-500 leading-20;
}
}
+54
View File
@@ -0,0 +1,54 @@
@import 'prism-theme-vars/base.css';
@import 'codemirror-theme-vars/base.css';
@import 'prism-theme-vars/to-codemirror.css';
:root {
--prism-font-family: var(--slidev-code-font-family);
--prism-background: var(--slidev-code-background);
}
html:not(.dark) {
--prism-foreground: #393a34;
--prism-comment: #a0ada0;
--prism-string: #b56959;
--prism-literal: #2f8a89;
--prism-number: #296aa3;
--prism-keyword: #1c6b48;
--prism-function: #6c7834;
--prism-boolean: #1c6b48;
--prism-constant: #a65e2b;
--prism-deleted: #a14f55;
--prism-class: #2993a3;
--prism-builtin: #ab5959;
--prism-property: #b58451;
--prism-namespace: #b05a78;
--prism-punctuation: #8e8f8b;
--prism-decorator: #bd8f8f;
--prism-regex: #ab5e3f;
--prism-json-property: #698c96;
}
html.dark {
--prism-foreground: #d4cfbf;
--prism-comment: #758575;
--prism-string: #d48372;
--prism-literal: #429988;
--prism-keyword: #4d9375;
--prism-boolean: #1c6b48;
--prism-number: #6394bf;
--prism-variable: #c2b36e;
--prism-function: #a1b567;
--prism-deleted: #a14f55;
--prism-class: #54b1bf;
--prism-builtin: #e0a569;
--prism-property: #dd8e6e;
--prism-namespace: #db889a;
--prism-punctuation: #858585;
--prism-decorator: #bd8f8f;
--prism-regex: #ab5e3f;
--prism-json-property: #6b8b9e;
--prism-line-number: #888888;
--prism-line-number-gutter: #eeeeee;
--prism-line-highlight-background: #444444;
--prism-selection-background: #444444;
}