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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slidev-theme-the-unnamed",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "keywords": [
5
5
  "slidev-theme",
6
6
  "slidev"
@@ -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
@@ -2,3 +2,4 @@
2
2
  import '@slidev/client/styles/layouts-base.css'
3
3
  import './layout.css'
4
4
  import './code.css'
5
+ import './mermaid.css'
package/styles/layout.css CHANGED
@@ -71,6 +71,11 @@
71
71
  }
72
72
  }
73
73
 
74
+ h2 + p,
75
+ h2 + ul {
76
+ @apply mt-4;
77
+ }
78
+
74
79
  p + h2,
75
80
  ul + h2,
76
81
  table + h2,
@@ -0,0 +1,9 @@
1
+ .mermaid {
2
+ display: flex;
3
+ justify-content: center;
4
+ align-items: center;
5
+
6
+ svg {
7
+ margin: 0 auto;
8
+ }
9
+ }