slidev-theme-the-unnamed 0.0.3 → 0.0.4
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/changelog.md +10 -0
- package/package.json +1 -1
- package/setup/mermaid.ts +35 -0
- package/styles/index.ts +1 -0
- package/styles/layout.css +5 -0
- package/styles/mermaid.css +9 -0
package/changelog.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.4] - 2023-02-02
|
|
4
|
+
|
|
5
|
+
- Added mermaid styles for `sequenceDiagram`
|
|
6
|
+
- Small fixes
|
|
7
|
+
|
|
8
|
+
## [0.0.3] - 2023-02-02
|
|
9
|
+
|
|
10
|
+
- Updated styles for all layouts
|
|
11
|
+
- Added screenshots and documentation
|
|
12
|
+
|
|
3
13
|
## [0.0.2] - 2023-01-31
|
|
4
14
|
|
|
5
15
|
- New layouts
|
package/package.json
CHANGED
package/setup/mermaid.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { MermaidOptions } from '@slidev/types'
|
|
2
|
+
import { defineMermaidSetup } from '@slidev/types'
|
|
3
|
+
|
|
4
|
+
export default defineMermaidSetup(() => {
|
|
5
|
+
// eslint-disable-next-line prefer-const
|
|
6
|
+
let injection_return: MermaidOptions = {
|
|
7
|
+
theme: 'forest',
|
|
8
|
+
themeVariables: {
|
|
9
|
+
// General theme variables
|
|
10
|
+
noteBkgColor: "#181d29",
|
|
11
|
+
noteTextColor: "#F3EFF5cc",
|
|
12
|
+
noteBorderColor: "#404551",
|
|
13
|
+
|
|
14
|
+
// Sequence diagram variables
|
|
15
|
+
actorBkg: "#0E131F",
|
|
16
|
+
actorBorder: "#44FFD2",
|
|
17
|
+
actorTextColor: "#F3EFF5",
|
|
18
|
+
actorLineColor: "#F3EFF5",
|
|
19
|
+
signalColor: "#F3EFF5",
|
|
20
|
+
signalTextColor: "#F3EFF5",
|
|
21
|
+
sequenceNumberColor: "#F3EFF5",
|
|
22
|
+
labelBoxBorderColor: "#5EADF2",
|
|
23
|
+
activationBkgColor: "#181d29",
|
|
24
|
+
activationBorderColor: "#5EADF2",
|
|
25
|
+
},
|
|
26
|
+
themeCSS: `
|
|
27
|
+
polygon.labelBox,
|
|
28
|
+
polygon.labelBox + text {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
`
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return injection_return
|
|
35
|
+
})
|
package/styles/index.ts
CHANGED
package/styles/layout.css
CHANGED