@sp-days-framework/create-sp-days 1.0.4 → 1.1.0-beta2

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.
Files changed (75) hide show
  1. package/README.md +14 -0
  2. package/bin/index.js +2 -0
  3. package/docs/advanced-config.mdx +412 -0
  4. package/docs/changelog.mdx +129 -0
  5. package/docs/index.mdx +206 -0
  6. package/docs/install.mdx +199 -0
  7. package/docs/sidebar-sections.mdx +268 -0
  8. package/docs/sp-days-plugin-color-light.svg +53 -0
  9. package/lib/.tsbuildinfo +1 -0
  10. package/lib/.tsbuildinfo-build +1 -0
  11. package/lib/index.d.ts +1 -0
  12. package/lib/index.js +36 -7
  13. package/package.json +31 -7
  14. package/publish-package-docs.js +12 -0
  15. package/templates/addon-resources/resources/api-reference.mdx +132 -0
  16. package/templates/addon-resources/resources/best-practice.mdx +407 -0
  17. package/templates/addon-resources/resources/cheat-sheet.mdx +120 -0
  18. package/templates/addon-resources/resources/cli-reference.mdx +280 -0
  19. package/templates/addon-resources/resources/configuration-guide.mdx +211 -0
  20. package/templates/addon-resources/resources/environment-setup.mdx +317 -0
  21. package/templates/addon-resources/resources/faq.mdx +146 -0
  22. package/templates/addon-resources/resources/glossary.mdx +78 -0
  23. package/templates/addon-resources/resources/index.mdx +67 -16
  24. package/templates/addon-resources/resources/quick-start.mdx +193 -0
  25. package/templates/addon-resources/resources/troubleshooting.mdx +263 -0
  26. package/templates/addon-resources/resources/useful-links.mdx +61 -0
  27. package/templates/page-course/README.md +87 -0
  28. package/templates/page-course/docusaurus.config.ts +103 -10
  29. package/templates/page-course/package.json +12 -2
  30. package/templates/page-course/sidebarSections.js +118 -0
  31. package/templates/page-course/src/css/sp-days-theme.scss +428 -211
  32. package/tsconfig.base.client.json +10 -0
  33. package/tsconfig.base.json +71 -0
  34. package/tsconfig.build.json +9 -0
  35. package/sp-days-framework-create-sp-days-1.0.3.tgz +0 -0
  36. package/templates/addon-resources/resources/interactive-tasks/creating-tasks.mdx +0 -254
  37. package/templates/addon-resources/resources/interactive-tasks/examples/_category_.yml +0 -3
  38. package/templates/addon-resources/resources/interactive-tasks/examples/advanced-usage.mdx +0 -304
  39. package/templates/addon-resources/resources/interactive-tasks/examples/basic-usage.mdx +0 -128
  40. package/templates/addon-resources/resources/interactive-tasks/index.mdx +0 -93
  41. package/templates/addon-resources/resources/interactive-tasks/setup/advanced-configuration.mdx +0 -273
  42. package/templates/addon-resources/resources/interactive-tasks/setup/index.mdx +0 -120
  43. package/templates/addon-resources/resources/interactive-tasks/task-progression.mdx +0 -140
  44. package/templates/addon-resources/resources/slidev-integration/index.mdx +0 -106
  45. package/templates/addon-resources/resources/slidev-integration/setup/advanced-configuration.mdx +0 -144
  46. package/templates/addon-resources/resources/slidev-integration/setup/index.mdx +0 -200
  47. package/templates/addon-resources/resources/sykehuspartner-theme/index.mdx +0 -105
  48. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/_category_.yml +0 -2
  49. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/content/_category_.yml +0 -2
  50. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/content/center.mdx +0 -33
  51. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/content/default.mdx +0 -59
  52. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/content/full.mdx +0 -49
  53. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/image/_category_.yml +0 -2
  54. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/image/image-left.mdx +0 -37
  55. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/image/image-right.mdx +0 -37
  56. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/image/image.mdx +0 -56
  57. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/multi-column/_category_.yml +0 -2
  58. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/multi-column/three-cols-header.mdx +0 -49
  59. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/multi-column/three-cols.mdx +0 -47
  60. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/multi-column/two-cols-header.mdx +0 -43
  61. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/multi-column/two-cols.mdx +0 -38
  62. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/section/_category_.yml +0 -2
  63. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/section/cover.mdx +0 -43
  64. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/section/end.mdx +0 -33
  65. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/section/intro.mdx +0 -49
  66. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/section/section.mdx +0 -41
  67. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/special/_category_.yml +0 -2
  68. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/special/about-me.mdx +0 -92
  69. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/special/fact.mdx +0 -47
  70. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/special/quote.mdx +0 -27
  71. package/templates/addon-resources/resources/sykehuspartner-theme/layouts/special/statement.mdx +0 -28
  72. package/templates/addon-resources/resources/sykehuspartner-theme/setup/advanced-configuration.mdx +0 -79
  73. package/templates/addon-resources/resources/sykehuspartner-theme/setup/index.mdx +0 -104
  74. package/templates/addon-resources/resources/sykehuspartner-theme/syntax-and-icons.mdx +0 -89
  75. package/templates/addon-slidev/package.json +0 -54
@@ -8,11 +8,11 @@
8
8
 
9
9
  // Functions to calculate color variations using the modern color.scale approach
10
10
  @function lighten-percentage($color, $percentage) {
11
- @return color.scale($color, $lightness: $percentage * 1%);
11
+ @return color.scale($color, $lightness: $percentage * 1%);
12
12
  }
13
13
 
14
14
  @function darken-percentage($color, $percentage) {
15
- @return color.scale($color, $lightness: -$percentage * 1%);
15
+ @return color.scale($color, $lightness: -$percentage * 1%);
16
16
  }
17
17
 
18
18
  // Define base colors for light and dark themes
@@ -25,7 +25,7 @@ $danger-color-light-theme: #fa383e;
25
25
  $secondary-color-light-theme: #ebedf0;
26
26
 
27
27
  // Dark theme colors
28
- $primary-color-dark-theme: #6CACE4;
28
+ $primary-color-dark-theme: #6cace4;
29
29
  $success-color-dark-theme: #88e36b;
30
30
  $info-color-dark-theme: #5dccf0;
31
31
  $warning-color-dark-theme: #ffc93d;
@@ -34,150 +34,339 @@ $secondary-color-dark-theme: #afafaf;
34
34
 
35
35
  // Code syntax highlighting theme
36
36
  :root {
37
- --docusaurus-highlighted-code-line-bg: rgb(143 142 69 / 11%);
38
- // --ifm-code-font-size: 95%;
37
+ --docusaurus-highlighted-code-line-bg: rgb(143 142 69 / 11%);
38
+ // --ifm-code-font-size: 95%;
39
39
  }
40
40
 
41
41
  /* You can override the default Infima variables here. */
42
42
  :root {
43
- // Primary color and its variations
44
- --ifm-color-primary: #{$primary-color-light-theme};
45
- --ifm-color-primary-dark: #{darken-percentage($primary-color-light-theme, 5)};
46
- --ifm-color-primary-darker: #{darken-percentage($primary-color-light-theme, 10)};
47
- --ifm-color-primary-darkest: #{darken-percentage($primary-color-light-theme, 15)};
48
- --ifm-color-primary-light: #{lighten-percentage($primary-color-light-theme, 5)};
49
- --ifm-color-primary-lighter: #{lighten-percentage($primary-color-light-theme, 10)};
50
- --ifm-color-primary-lightest: #{lighten-percentage($primary-color-light-theme, 30)};
51
- --ifm-color-primary-contrast-background: #{lighten-percentage($primary-color-light-theme, 95)};
52
- --ifm-color-primary-contrast-foreground: #{darken-percentage($primary-color-light-theme, 95)};
53
-
54
- // // Secondary color and its variations
55
- // --ifm-color-secondary: #{$secondary-color-light-theme};
56
- // --ifm-color-secondary-dark: #{darken-percentage($secondary-color-light-theme, 5)};
57
- // --ifm-color-secondary-darker: #{darken-percentage($secondary-color-light-theme, 10)};
58
- // --ifm-color-secondary-darkest: #{darken-percentage($secondary-color-light-theme, 15)};
59
- // --ifm-color-secondary-light: #{lighten-percentage($secondary-color-light-theme, 5)};
60
- // --ifm-color-secondary-lighter: #{lighten-percentage($secondary-color-light-theme, 10)};
61
- // --ifm-color-secondary-lightest: #{lighten-percentage($secondary-color-light-theme, 15)};
62
- // --ifm-color-secondary-contrast-background: #{lighten-percentage($secondary-color-light-theme, 95)};
63
- // --ifm-color-secondary-contrast-foreground: #{darken-percentage($secondary-color-light-theme, 95)};
64
-
65
- // Success color and its variations
66
- --ifm-color-success: #{$success-color-light-theme};
67
- --ifm-color-success-dark: #{darken-percentage($success-color-light-theme, 5)};
68
- --ifm-color-success-darker: #{darken-percentage($success-color-light-theme, 10)};
69
- --ifm-color-success-darkest: #{darken-percentage($success-color-light-theme, 15)};
70
- --ifm-color-success-light: #{lighten-percentage($success-color-light-theme, 10)};
71
- --ifm-color-success-lighter: #{lighten-percentage($success-color-light-theme, 20)};
72
- --ifm-color-success-lightest: #{lighten-percentage($success-color-light-theme, 30)};
73
- --ifm-color-success-contrast-background: #{lighten-percentage($success-color-light-theme, 95)};
74
- --ifm-color-success-contrast-foreground: #{darken-percentage($success-color-light-theme, 95)};
75
-
76
- // Info color and its variations
77
- --ifm-color-info: #{$info-color-light-theme};
78
- --ifm-color-info-dark: #{darken-percentage($info-color-light-theme, 5)};
79
- --ifm-color-info-darker: #{darken-percentage($info-color-light-theme, 10)};
80
- --ifm-color-info-darkest: #{darken-percentage($info-color-light-theme, 15)};
81
- --ifm-color-info-light: #{lighten-percentage($info-color-light-theme, 5)};
82
- --ifm-color-info-lighter: #{lighten-percentage($info-color-light-theme, 10)};
83
- --ifm-color-info-lightest: #{lighten-percentage($info-color-light-theme, 20)};
84
- --ifm-color-info-contrast-background: #{lighten-percentage($info-color-light-theme, 95)};
85
- --ifm-color-info-contrast-foreground: #{darken-percentage($info-color-light-theme, 95)};
86
-
87
- // Warning color and its variations
88
- --ifm-color-warning: #{$warning-color-light-theme};
89
- --ifm-color-warning-dark: #{darken-percentage($warning-color-light-theme, 5)};
90
- --ifm-color-warning-darker: #{darken-percentage($warning-color-light-theme, 10)};
91
- --ifm-color-warning-darkest: #{darken-percentage($warning-color-light-theme, 15)};
92
- --ifm-color-warning-light: #{lighten-percentage($warning-color-light-theme, 5)};
93
- --ifm-color-warning-lighter: #{lighten-percentage($warning-color-light-theme, 10)};
94
- --ifm-color-warning-lightest: #{lighten-percentage($warning-color-light-theme, 20)};
95
- --ifm-color-warning-contrast-background: #{lighten-percentage($warning-color-light-theme, 95)};
96
- --ifm-color-warning-contrast-foreground: #{darken-percentage($warning-color-light-theme, 95)};
97
-
98
- // Danger color and its variations
99
- --ifm-color-danger: #{$danger-color-light-theme};
100
- --ifm-color-danger-dark: #{darken-percentage($danger-color-light-theme, 5)};
101
- --ifm-color-danger-darker: #{darken-percentage($danger-color-light-theme, 10)};
102
- --ifm-color-danger-darkest: #{darken-percentage($danger-color-light-theme, 15)};
103
- --ifm-color-danger-light: #{lighten-percentage($danger-color-light-theme, 5)};
104
- --ifm-color-danger-lighter: #{lighten-percentage($danger-color-light-theme, 10)};
105
- --ifm-color-danger-lightest: #{lighten-percentage($danger-color-light-theme, 20)};
106
- --ifm-color-danger-contrast-background: #{lighten-percentage($danger-color-light-theme, 95)};
107
- --ifm-color-danger-contrast-foreground: #{darken-percentage($danger-color-light-theme, 95)};
43
+ // Primary color and its variations
44
+ --ifm-color-primary: #{$primary-color-light-theme};
45
+ --ifm-color-primary-dark: #{darken-percentage($primary-color-light-theme, 5)};
46
+ --ifm-color-primary-darker: #{darken-percentage(
47
+ $primary-color-light-theme,
48
+ 10
49
+ )};
50
+ --ifm-color-primary-darkest: #{darken-percentage(
51
+ $primary-color-light-theme,
52
+ 15
53
+ )};
54
+ --ifm-color-primary-light: #{lighten-percentage(
55
+ $primary-color-light-theme,
56
+ 5
57
+ )};
58
+ --ifm-color-primary-lighter: #{lighten-percentage(
59
+ $primary-color-light-theme,
60
+ 10
61
+ )};
62
+ --ifm-color-primary-lightest: #{lighten-percentage(
63
+ $primary-color-light-theme,
64
+ 30
65
+ )};
66
+ --ifm-color-primary-contrast-background: #{lighten-percentage(
67
+ $primary-color-light-theme,
68
+ 95
69
+ )};
70
+ --ifm-color-primary-contrast-foreground: #{darken-percentage(
71
+ $primary-color-light-theme,
72
+ 95
73
+ )};
74
+
75
+ // // Secondary color and its variations
76
+ // --ifm-color-secondary: #{$secondary-color-light-theme};
77
+ // --ifm-color-secondary-dark: #{darken-percentage($secondary-color-light-theme, 5)};
78
+ // --ifm-color-secondary-darker: #{darken-percentage($secondary-color-light-theme, 10)};
79
+ // --ifm-color-secondary-darkest: #{darken-percentage($secondary-color-light-theme, 15)};
80
+ // --ifm-color-secondary-light: #{lighten-percentage($secondary-color-light-theme, 5)};
81
+ // --ifm-color-secondary-lighter: #{lighten-percentage($secondary-color-light-theme, 10)};
82
+ // --ifm-color-secondary-lightest: #{lighten-percentage($secondary-color-light-theme, 15)};
83
+ // --ifm-color-secondary-contrast-background: #{lighten-percentage($secondary-color-light-theme, 95)};
84
+ // --ifm-color-secondary-contrast-foreground: #{darken-percentage($secondary-color-light-theme, 95)};
85
+
86
+ // Success color and its variations
87
+ --ifm-color-success: #{$success-color-light-theme};
88
+ --ifm-color-success-dark: #{darken-percentage($success-color-light-theme, 5)};
89
+ --ifm-color-success-darker: #{darken-percentage(
90
+ $success-color-light-theme,
91
+ 10
92
+ )};
93
+ --ifm-color-success-darkest: #{darken-percentage(
94
+ $success-color-light-theme,
95
+ 15
96
+ )};
97
+ --ifm-color-success-light: #{lighten-percentage(
98
+ $success-color-light-theme,
99
+ 10
100
+ )};
101
+ --ifm-color-success-lighter: #{lighten-percentage(
102
+ $success-color-light-theme,
103
+ 20
104
+ )};
105
+ --ifm-color-success-lightest: #{lighten-percentage(
106
+ $success-color-light-theme,
107
+ 30
108
+ )};
109
+ --ifm-color-success-contrast-background: #{lighten-percentage(
110
+ $success-color-light-theme,
111
+ 95
112
+ )};
113
+ --ifm-color-success-contrast-foreground: #{darken-percentage(
114
+ $success-color-light-theme,
115
+ 95
116
+ )};
117
+
118
+ // Info color and its variations
119
+ --ifm-color-info: #{$info-color-light-theme};
120
+ --ifm-color-info-dark: #{darken-percentage($info-color-light-theme, 5)};
121
+ --ifm-color-info-darker: #{darken-percentage($info-color-light-theme, 10)};
122
+ --ifm-color-info-darkest: #{darken-percentage($info-color-light-theme, 15)};
123
+ --ifm-color-info-light: #{lighten-percentage($info-color-light-theme, 5)};
124
+ --ifm-color-info-lighter: #{lighten-percentage($info-color-light-theme, 10)};
125
+ --ifm-color-info-lightest: #{lighten-percentage($info-color-light-theme, 20)};
126
+ --ifm-color-info-contrast-background: #{lighten-percentage(
127
+ $info-color-light-theme,
128
+ 95
129
+ )};
130
+ --ifm-color-info-contrast-foreground: #{darken-percentage(
131
+ $info-color-light-theme,
132
+ 95
133
+ )};
134
+
135
+ // Warning color and its variations
136
+ --ifm-color-warning: #{$warning-color-light-theme};
137
+ --ifm-color-warning-dark: #{darken-percentage($warning-color-light-theme, 5)};
138
+ --ifm-color-warning-darker: #{darken-percentage(
139
+ $warning-color-light-theme,
140
+ 10
141
+ )};
142
+ --ifm-color-warning-darkest: #{darken-percentage(
143
+ $warning-color-light-theme,
144
+ 15
145
+ )};
146
+ --ifm-color-warning-light: #{lighten-percentage(
147
+ $warning-color-light-theme,
148
+ 5
149
+ )};
150
+ --ifm-color-warning-lighter: #{lighten-percentage(
151
+ $warning-color-light-theme,
152
+ 10
153
+ )};
154
+ --ifm-color-warning-lightest: #{lighten-percentage(
155
+ $warning-color-light-theme,
156
+ 20
157
+ )};
158
+ --ifm-color-warning-contrast-background: #{lighten-percentage(
159
+ $warning-color-light-theme,
160
+ 95
161
+ )};
162
+ --ifm-color-warning-contrast-foreground: #{darken-percentage(
163
+ $warning-color-light-theme,
164
+ 95
165
+ )};
166
+
167
+ // Danger color and its variations
168
+ --ifm-color-danger: #{$danger-color-light-theme};
169
+ --ifm-color-danger-dark: #{darken-percentage($danger-color-light-theme, 5)};
170
+ --ifm-color-danger-darker: #{darken-percentage($danger-color-light-theme, 10)};
171
+ --ifm-color-danger-darkest: #{darken-percentage(
172
+ $danger-color-light-theme,
173
+ 15
174
+ )};
175
+ --ifm-color-danger-light: #{lighten-percentage($danger-color-light-theme, 5)};
176
+ --ifm-color-danger-lighter: #{lighten-percentage(
177
+ $danger-color-light-theme,
178
+ 10
179
+ )};
180
+ --ifm-color-danger-lightest: #{lighten-percentage(
181
+ $danger-color-light-theme,
182
+ 20
183
+ )};
184
+ --ifm-color-danger-contrast-background: #{lighten-percentage(
185
+ $danger-color-light-theme,
186
+ 95
187
+ )};
188
+ --ifm-color-danger-contrast-foreground: #{darken-percentage(
189
+ $danger-color-light-theme,
190
+ 95
191
+ )};
108
192
  }
109
193
 
110
194
  /* For readability concerns, you should choose a lighter palette in dark mode. */
111
- [data-theme='dark'] {
112
- // Primary color and its variations for dark mode
113
- --ifm-color-primary: #{$primary-color-dark-theme};
114
- --ifm-color-primary-dark: #{darken-percentage($primary-color-dark-theme, 10)};
115
- --ifm-color-primary-darker: #{darken-percentage($primary-color-dark-theme, 15)};
116
- --ifm-color-primary-darkest: #{darken-percentage($primary-color-dark-theme, 30)};
117
- --ifm-color-primary-light: #{lighten-percentage($primary-color-dark-theme, 10)};
118
- --ifm-color-primary-lighter: #{lighten-percentage($primary-color-dark-theme, 15)};
119
- --ifm-color-primary-lightest: #{lighten-percentage($primary-color-dark-theme, 30)};
120
- --ifm-color-primary-contrast-background: #{darken-percentage($primary-color-dark-theme, 90)};
121
- --ifm-color-primary-contrast-foreground: #{lighten-percentage($primary-color-dark-theme, 90)};
122
-
123
- // Secondary color and its variations
124
- --ifm-color-secondary: #{$secondary-color-dark-theme};
125
- --ifm-color-secondary-dark: #{darken-percentage($secondary-color-dark-theme, 5)};
126
- --ifm-color-secondary-darker: #{darken-percentage($secondary-color-dark-theme, 10)};
127
- --ifm-color-secondary-darkest: #{darken-percentage($secondary-color-dark-theme, 15)};
128
- --ifm-color-secondary-light: #{lighten-percentage($secondary-color-dark-theme, 5)};
129
- --ifm-color-secondary-lighter: #{lighten-percentage($secondary-color-dark-theme, 10)};
130
- --ifm-color-secondary-lightest: #{lighten-percentage($secondary-color-dark-theme, 15)};
131
- --ifm-color-secondary-contrast-background: #{darken-percentage($secondary-color-dark-theme, 90)};
132
- --ifm-color-secondary-contrast-foreground: #{lighten-percentage($secondary-color-dark-theme, 90)};
133
-
134
- // Success color for dark mode
135
- --ifm-color-success: #{$success-color-dark-theme};
136
- --ifm-color-success-dark: #{darken-percentage($success-color-dark-theme, 10)};
137
- --ifm-color-success-darker: #{darken-percentage($success-color-dark-theme, 15)};
138
- --ifm-color-success-darkest: #{darken-percentage($success-color-dark-theme, 35)};
139
- --ifm-color-success-light: #{lighten-percentage($success-color-dark-theme, 10)};
140
- --ifm-color-success-lighter: #{lighten-percentage($success-color-dark-theme, 15)};
141
- --ifm-color-success-lightest: #{lighten-percentage($success-color-dark-theme, 30)};
142
- --ifm-color-success-contrast-background: #{darken-percentage($success-color-dark-theme, 90)};
143
- --ifm-color-success-contrast-foreground: #{lighten-percentage($success-color-dark-theme, 90)};
144
-
145
- // Info color and its variations
146
- --ifm-color-info: #{$info-color-dark-theme};
147
- --ifm-color-info-dark: #{darken-percentage($info-color-dark-theme, 10)};
148
- --ifm-color-info-darker: #{darken-percentage($info-color-dark-theme, 15)};
149
- --ifm-color-info-darkest: #{darken-percentage($info-color-dark-theme, 30)};
150
- --ifm-color-info-light: #{lighten-percentage($info-color-dark-theme, 10)};
151
- --ifm-color-info-lighter: #{lighten-percentage($info-color-dark-theme, 15)};
152
- --ifm-color-info-lightest: #{lighten-percentage($info-color-dark-theme, 30)};
153
- --ifm-color-info-contrast-background: #{darken-percentage($info-color-dark-theme, 90)};
154
- --ifm-color-info-contrast-foreground: #{lighten-percentage($info-color-dark-theme, 90)};
155
-
156
- // Warning color and its variations
157
- --ifm-color-warning: #{$warning-color-dark-theme};
158
- --ifm-color-warning-dark: #{darken-percentage($warning-color-dark-theme, 10)};
159
- --ifm-color-warning-darker: #{darken-percentage($warning-color-dark-theme, 15)};
160
- --ifm-color-warning-darkest: #{darken-percentage($warning-color-dark-theme, 30)};
161
- --ifm-color-warning-light: #{lighten-percentage($warning-color-dark-theme, 10)};
162
- --ifm-color-warning-lighter: #{lighten-percentage($warning-color-dark-theme, 15)};
163
- --ifm-color-warning-lightest: #{lighten-percentage($warning-color-dark-theme, 30)};
164
- --ifm-color-warning-contrast-background: #{darken-percentage($warning-color-dark-theme, 90)};
165
- --ifm-color-warning-contrast-foreground: #{lighten-percentage($warning-color-dark-theme, 90)};
166
-
167
- // Danger color and its variations
168
- --ifm-color-danger: #{$danger-color-dark-theme};
169
- --ifm-color-danger-dark: #{darken-percentage($danger-color-dark-theme, 10)};
170
- --ifm-color-danger-darker: #{darken-percentage($danger-color-dark-theme, 15)};
171
- --ifm-color-danger-darkest: #{darken-percentage($danger-color-dark-theme, 30)};
172
- --ifm-color-danger-light: #{lighten-percentage($danger-color-dark-theme, 10)};
173
- --ifm-color-danger-lighter: #{lighten-percentage($danger-color-dark-theme, 15)};
174
- --ifm-color-danger-lightest: #{lighten-percentage($danger-color-dark-theme, 30)};
175
- --ifm-color-danger-contrast-background: #{darken-percentage($danger-color-dark-theme, 90)};
176
- --ifm-color-danger-contrast-foreground: #{lighten-percentage($danger-color-dark-theme, 90)};
195
+ [data-theme="dark"] {
196
+ // Primary color and its variations for dark mode
197
+ --ifm-color-primary: #{$primary-color-dark-theme};
198
+ --ifm-color-primary-dark: #{darken-percentage($primary-color-dark-theme, 10)};
199
+ --ifm-color-primary-darker: #{darken-percentage(
200
+ $primary-color-dark-theme,
201
+ 15
202
+ )};
203
+ --ifm-color-primary-darkest: #{darken-percentage(
204
+ $primary-color-dark-theme,
205
+ 30
206
+ )};
207
+ --ifm-color-primary-light: #{lighten-percentage(
208
+ $primary-color-dark-theme,
209
+ 10
210
+ )};
211
+ --ifm-color-primary-lighter: #{lighten-percentage(
212
+ $primary-color-dark-theme,
213
+ 15
214
+ )};
215
+ --ifm-color-primary-lightest: #{lighten-percentage(
216
+ $primary-color-dark-theme,
217
+ 30
218
+ )};
219
+ --ifm-color-primary-contrast-background: #{darken-percentage(
220
+ $primary-color-dark-theme,
221
+ 90
222
+ )};
223
+ --ifm-color-primary-contrast-foreground: #{lighten-percentage(
224
+ $primary-color-dark-theme,
225
+ 90
226
+ )};
227
+
228
+ // Secondary color and its variations
229
+ --ifm-color-secondary: #{$secondary-color-dark-theme};
230
+ --ifm-color-secondary-dark: #{darken-percentage(
231
+ $secondary-color-dark-theme,
232
+ 5
233
+ )};
234
+ --ifm-color-secondary-darker: #{darken-percentage(
235
+ $secondary-color-dark-theme,
236
+ 10
237
+ )};
238
+ --ifm-color-secondary-darkest: #{darken-percentage(
239
+ $secondary-color-dark-theme,
240
+ 15
241
+ )};
242
+ --ifm-color-secondary-light: #{lighten-percentage(
243
+ $secondary-color-dark-theme,
244
+ 5
245
+ )};
246
+ --ifm-color-secondary-lighter: #{lighten-percentage(
247
+ $secondary-color-dark-theme,
248
+ 10
249
+ )};
250
+ --ifm-color-secondary-lightest: #{lighten-percentage(
251
+ $secondary-color-dark-theme,
252
+ 15
253
+ )};
254
+ --ifm-color-secondary-contrast-background: #{darken-percentage(
255
+ $secondary-color-dark-theme,
256
+ 90
257
+ )};
258
+ --ifm-color-secondary-contrast-foreground: #{lighten-percentage(
259
+ $secondary-color-dark-theme,
260
+ 90
261
+ )};
262
+
263
+ // Success color for dark mode
264
+ --ifm-color-success: #{$success-color-dark-theme};
265
+ --ifm-color-success-dark: #{darken-percentage($success-color-dark-theme, 10)};
266
+ --ifm-color-success-darker: #{darken-percentage(
267
+ $success-color-dark-theme,
268
+ 15
269
+ )};
270
+ --ifm-color-success-darkest: #{darken-percentage(
271
+ $success-color-dark-theme,
272
+ 35
273
+ )};
274
+ --ifm-color-success-light: #{lighten-percentage(
275
+ $success-color-dark-theme,
276
+ 10
277
+ )};
278
+ --ifm-color-success-lighter: #{lighten-percentage(
279
+ $success-color-dark-theme,
280
+ 15
281
+ )};
282
+ --ifm-color-success-lightest: #{lighten-percentage(
283
+ $success-color-dark-theme,
284
+ 30
285
+ )};
286
+ --ifm-color-success-contrast-background: #{darken-percentage(
287
+ $success-color-dark-theme,
288
+ 90
289
+ )};
290
+ --ifm-color-success-contrast-foreground: #{lighten-percentage(
291
+ $success-color-dark-theme,
292
+ 90
293
+ )};
294
+
295
+ // Info color and its variations
296
+ --ifm-color-info: #{$info-color-dark-theme};
297
+ --ifm-color-info-dark: #{darken-percentage($info-color-dark-theme, 10)};
298
+ --ifm-color-info-darker: #{darken-percentage($info-color-dark-theme, 15)};
299
+ --ifm-color-info-darkest: #{darken-percentage($info-color-dark-theme, 30)};
300
+ --ifm-color-info-light: #{lighten-percentage($info-color-dark-theme, 10)};
301
+ --ifm-color-info-lighter: #{lighten-percentage($info-color-dark-theme, 15)};
302
+ --ifm-color-info-lightest: #{lighten-percentage($info-color-dark-theme, 30)};
303
+ --ifm-color-info-contrast-background: #{darken-percentage(
304
+ $info-color-dark-theme,
305
+ 90
306
+ )};
307
+ --ifm-color-info-contrast-foreground: #{lighten-percentage(
308
+ $info-color-dark-theme,
309
+ 90
310
+ )};
311
+
312
+ // Warning color and its variations
313
+ --ifm-color-warning: #{$warning-color-dark-theme};
314
+ --ifm-color-warning-dark: #{darken-percentage($warning-color-dark-theme, 10)};
315
+ --ifm-color-warning-darker: #{darken-percentage(
316
+ $warning-color-dark-theme,
317
+ 15
318
+ )};
319
+ --ifm-color-warning-darkest: #{darken-percentage(
320
+ $warning-color-dark-theme,
321
+ 30
322
+ )};
323
+ --ifm-color-warning-light: #{lighten-percentage(
324
+ $warning-color-dark-theme,
325
+ 10
326
+ )};
327
+ --ifm-color-warning-lighter: #{lighten-percentage(
328
+ $warning-color-dark-theme,
329
+ 15
330
+ )};
331
+ --ifm-color-warning-lightest: #{lighten-percentage(
332
+ $warning-color-dark-theme,
333
+ 30
334
+ )};
335
+ --ifm-color-warning-contrast-background: #{darken-percentage(
336
+ $warning-color-dark-theme,
337
+ 90
338
+ )};
339
+ --ifm-color-warning-contrast-foreground: #{lighten-percentage(
340
+ $warning-color-dark-theme,
341
+ 90
342
+ )};
343
+
344
+ // Danger color and its variations
345
+ --ifm-color-danger: #{$danger-color-dark-theme};
346
+ --ifm-color-danger-dark: #{darken-percentage($danger-color-dark-theme, 10)};
347
+ --ifm-color-danger-darker: #{darken-percentage($danger-color-dark-theme, 15)};
348
+ --ifm-color-danger-darkest: #{darken-percentage($danger-color-dark-theme, 30)};
349
+ --ifm-color-danger-light: #{lighten-percentage($danger-color-dark-theme, 10)};
350
+ --ifm-color-danger-lighter: #{lighten-percentage(
351
+ $danger-color-dark-theme,
352
+ 15
353
+ )};
354
+ --ifm-color-danger-lightest: #{lighten-percentage(
355
+ $danger-color-dark-theme,
356
+ 30
357
+ )};
358
+ --ifm-color-danger-contrast-background: #{darken-percentage(
359
+ $danger-color-dark-theme,
360
+ 90
361
+ )};
362
+ --ifm-color-danger-contrast-foreground: #{lighten-percentage(
363
+ $danger-color-dark-theme,
364
+ 90
365
+ )};
177
366
  }
178
367
 
179
368
  .navbar-github-link::before {
180
- content: '';
369
+ content: "";
181
370
  width: 24px;
182
371
  height: 24px;
183
372
  display: flex;
@@ -187,57 +376,63 @@ $secondary-color-dark-theme: #afafaf;
187
376
 
188
377
  // Custom styles for resource landing page
189
378
  .resourceLandingPage {
190
- display: flex;
191
- align-items: center;
192
- justify-content: center;
193
- margin: 0 80px;
194
- width: min-content;
379
+ display: flex;
380
+ align-items: center;
381
+ justify-content: center;
382
+ margin: 0 80px;
383
+ width: min-content;
195
384
  }
196
385
 
197
386
  // Styles for preview components
198
387
  .preview {
199
- position: relative;
200
- margin-top: 2rem;
201
- // margin-bottom: 2rem;
202
- display: flex;
203
- justify-content: center;
388
+ position: relative;
389
+ margin-top: 2rem;
390
+ // margin-bottom: 2rem;
391
+ display: flex;
392
+ justify-content: center;
204
393
 
205
- &::before {
206
- content: 'Preview';
207
- position: absolute;
208
- top: -0.75rem;
209
- left: 50%;
210
- transform: translateX(-50%);
211
- padding: 0 0.5rem;
212
- background-color: var(--ifm-background-surface-color);
213
- font-size: 0.875rem;
214
- font-weight: 500;
215
- color: var(--ifm-color-emphasis-700);
216
- z-index: 1;
217
- }
394
+ &::before {
395
+ content: "Preview";
396
+ position: absolute;
397
+ top: -0.75rem;
398
+ left: 50%;
399
+ transform: translateX(-50%);
400
+ padding: 0 0.5rem;
401
+ background-color: var(--ifm-background-surface-color);
402
+ font-size: 0.875rem;
403
+ font-weight: 500;
404
+ color: var(--ifm-color-emphasis-700);
405
+ z-index: 1;
406
+ }
218
407
 
219
- .container {
220
- border: 1px solid var(--ifm-color-emphasis-300);
221
- border-radius: 8px;
222
- // padding-bottom: 1.5rem;
223
- padding-top: 1.5rem;
224
- width: fit-content;
225
- position: relative;
226
- }
408
+ .container {
409
+ border: 1px solid var(--ifm-color-emphasis-300);
410
+ border-radius: 8px;
411
+ // padding-bottom: 1.5rem;
412
+ padding-top: 1.5rem;
413
+ width: fit-content;
414
+ position: relative;
415
+ }
227
416
  }
228
417
 
229
- [data-theme='dark'] {
230
- .preview {
231
- &::before {
232
- background-color: var(--ifm-background-color);
233
- }
418
+ [data-theme="dark"] {
419
+ .preview {
420
+ &::before {
421
+ background-color: var(--ifm-background-color);
234
422
  }
423
+ }
235
424
  }
236
425
 
237
- // Sidebar logo styles
238
- $sidebar-logo-icon-size: 20px;
426
+ // Title logo styles - unified system for sidebar and navbar logos
427
+ $title-logo-icon-size: 20px;
239
428
 
240
- @mixin sidebar-logo-link {
429
+ // Mixin for adding logo icons to sidebar items
430
+ @mixin title-logo-sidebar {
431
+ // Only target the immediate menu link for the matching item, not its children
432
+ > .menu__link,
433
+ > .menu__list-item-collapsible > .menu__link,
434
+ > .menu__list-item-collapsible > a,
435
+ > div > a {
241
436
  display: flex;
242
437
  align-items: center;
243
438
  gap: 8px;
@@ -245,53 +440,75 @@ $sidebar-logo-icon-size: 20px;
245
440
  min-width: 0;
246
441
 
247
442
  &::before {
248
- content: '';
249
- display: inline-block;
250
- width: $sidebar-logo-icon-size;
251
- height: $sidebar-logo-icon-size;
252
- background-image: var(--sidebar-logo-image, none);
253
- background-size: contain;
254
- background-repeat: no-repeat;
255
- background-position: center;
256
- flex-shrink: 0;
443
+ content: "";
444
+ display: inline-block;
445
+ width: $title-logo-icon-size;
446
+ height: $title-logo-icon-size;
447
+ background-image: var(--title-logo-image, none);
448
+ background-size: contain;
449
+ background-repeat: no-repeat;
450
+ background-position: center;
451
+ flex-shrink: 0;
257
452
  }
453
+ }
258
454
  }
259
455
 
260
- .sidebar-logo,
261
- [class*='sidebar-logo-'] {
262
- // Only target the immediate menu link for the matching item, not its children
263
- > .menu__link,
264
- > .menu__list-item-collapsible > .menu__link,
265
- > .menu__list-item-collapsible > a,
266
- > div > a {
267
- @include sidebar-logo-link;
268
- }
456
+ // Mixin for adding logo icons to navbar items
457
+ @mixin title-logo-navbar {
458
+ display: flex;
459
+ align-items: center;
460
+ gap: 8px;
461
+
462
+ &::before {
463
+ content: "";
464
+ display: inline-block;
465
+ width: $title-logo-icon-size;
466
+ height: $title-logo-icon-size;
467
+ background-image: var(--title-logo-image, none);
468
+ background-size: contain;
469
+ background-repeat: no-repeat;
470
+ background-position: center;
471
+ flex-shrink: 0;
472
+ }
269
473
  }
270
474
 
271
- .sidebar-logo-slidev {
272
- --sidebar-logo-image: url(../../static/img/sidebar/slidev.svg);
475
+ // Apply sidebar logo styles to elements with title-logo-sidebar-* classes
476
+ [class*="title-logo-sidebar-"] {
477
+ @include title-logo-sidebar;
273
478
  }
274
479
 
275
- .sidebar-logo-docusaurus {
276
- --sidebar-logo-image: url(../../static/img/sidebar/docusaurus.svg);
480
+ // Apply navbar logo styles to elements with title-logo-navbar-* classes
481
+ [class*="title-logo-navbar-"] {
482
+ @include title-logo-navbar;
277
483
  }
278
484
 
279
- .sidebar-logo-sp-days {
280
- --sidebar-logo-image: url(../../static/img/sp-days-logo-color-light.svg);
485
+ // Legacy support - map old sidebar-logo-* classes to new system
486
+ .sidebar-logo,
487
+ [class*="sidebar-logo-"] {
488
+ @include title-logo-sidebar;
281
489
  }
282
490
 
283
- [data-theme='dark'] {
284
- .sidebar-logo-sp-days {
285
- --sidebar-logo-image: url(../../static/img/sp-days-logo-color-dark.svg);
286
- }
491
+ // Logo definitions - shared between sidebar and navbar
492
+ // Slidev logo
493
+ .title-logo-sidebar-slidev,
494
+ .title-logo-navbar-slidev {
495
+ --title-logo-image: url(../../static/img/sidebar/slidev.svg);
287
496
  }
288
497
 
289
- .sidebar-logo-sp-days-plugin {
290
- --sidebar-logo-image: url(../../static/img/sp-days-plugin-color-light.svg);
498
+ // Docusaurus logo
499
+ .title-logo-sidebar-docusaurus,
500
+ .title-logo-navbar-docusaurus {
501
+ --title-logo-image: url(../../static/img/sidebar/docusaurus.svg);
291
502
  }
292
503
 
293
- [data-theme='dark'] {
294
- .sidebar-logo-sp-days-plugin {
295
- --sidebar-logo-image: url(../../static/img/sp-days-plugin-color-dark.svg);
296
- }
297
- }
504
+ // SP Days logo (with theme support)
505
+ .title-logo-sidebar-sp-days,
506
+ .title-logo-navbar-sp-days {
507
+ --title-logo-image: url(../../static/img/sp-days-logo-color-light.svg);
508
+ }
509
+
510
+ // SP Days Plugin logo (with theme support)
511
+ .title-logo-sidebar-sp-days-plugin,
512
+ .title-logo-navbar-sp-days-plugin {
513
+ --title-logo-image: url(../../static/img/sp-days-plugin-color-light.svg);
514
+ }