slidev-theme-the-unnamed 0.0.21 → 0.0.23

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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Elio Struyf
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -54,6 +54,7 @@ layout: about-me
54
54
  helloMsg: Hello!
55
55
  name: <name>
56
56
  imageSrc: <image url>
57
+ position: <left or right>
57
58
  job: <job title>
58
59
  line1:
59
60
  line2:
package/changelog.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.23] - 2026-04-16
4
+
5
+ - [#11](https://github.com/estruyf/slidev-theme-the-unnamed/issues/11): Fix custom font size not working for section, center, and about-me layouts
6
+
7
+ ## [0.0.22] - 2024-11-08
8
+
9
+ - Added support for the `about-me` slide to position the image
10
+ - Updated theme name to support Monaco Editor
11
+
3
12
  ## [0.0.21] - 2024-09-28
4
13
 
5
14
  - Update dependencies and example
package/example.md CHANGED
@@ -50,7 +50,8 @@ layout: about-me
50
50
 
51
51
  helloMsg: Hello!
52
52
  name: Elio Struyf
53
- imageSrc: https://elio.dev/eliostruyf_2023.jpg
53
+ imageSrc: https://elio.dev/eliostruyf_2024.webp
54
+ position: left
54
55
  job: Struyf Consulting
55
56
  line1: "#Stickerpreneur @ pyod.shop"
56
57
  line2: "#Maintainer @ Front Matter CMS"
@@ -214,6 +215,33 @@ function updateUser(id: number, update: Partial<User>) {
214
215
  }
215
216
  ```
216
217
 
218
+ ---
219
+
220
+ # Monaco Editor
221
+
222
+ ```ts {monaco}
223
+ interface User {
224
+ id: number
225
+ firstName: string
226
+ lastName: string
227
+ role: string
228
+ }
229
+
230
+ function updateUser(id: number, update: Partial<User>) {
231
+ const user = getUser(id)
232
+ const newUser = { ...user, ...update }
233
+ saveUser(id, newUser)
234
+ }
235
+ ```
236
+
237
+ ---
238
+
239
+ # Monaco Editor
240
+
241
+ ```ts {monaco-run} {autorun:false}
242
+ console.log('Click the play button to run me')
243
+ ```
244
+
217
245
  ---
218
246
  layout: center
219
247
  class: "text-center"
package/example2.md ADDED
@@ -0,0 +1,21 @@
1
+ ---
2
+ theme: ./
3
+ layout: cover
4
+ themeConfig:
5
+ default-font-size: 1.5rem
6
+ cover-font-size: 1.5rem
7
+ section-font-size: 1.5rem
8
+ center-font-size: 1.5rem
9
+ two-columns-font-size: 1.5rem
10
+ aboutme-font-size: 1.1rem
11
+ ---
12
+
13
+ # Left
14
+
15
+ This shows on the left
16
+
17
+ ::right::
18
+
19
+ # Right
20
+
21
+ This shows on the right
@@ -13,29 +13,33 @@
13
13
  social1?: string
14
14
  social2?: string
15
15
  social3?: string
16
+ position?: string
16
17
  }>()
17
18
 
18
19
  const style = computed(() => handleBackground(props.imageSrc, false))
20
+ const flexRow = computed(() => props.position === 'left' ? 'flex-row-reverse' : 'flex-row')
21
+ const textItems = computed(() => props.position === 'left' ? 'items-start' : 'items-end')
22
+ const textAlign = computed(() => props.position === 'left' ? 'text-left' : 'text-right')
19
23
  </script>
20
24
 
21
25
  <template>
22
26
  <div class="slidev-layout about-me p-0">
23
- <div class="flex h-full">
27
+ <div class="flex h-full" :class="flexRow">
24
28
  <div class="w-1/2 h-full flex flex-col justify-end" :style="style">
25
29
  </div>
26
- <div class="w-1/2 flex flex-col justify-between items-end px-8 py-16">
30
+ <div class="w-1/2 flex flex-col justify-between px-8 py-16" :class="textItems">
27
31
  <h1 v-if="helloMsg" class="flex">{{ helloMsg }}</h1>
28
32
 
29
- <div class="flex flex-col justify-end items-end text-right py-16">
33
+ <div class="flex flex-col flex flex-col justify-end py-16" :class="[textItems, textAlign]">
30
34
  <h2 class="font-extrabold">{{ name }}</h2>
31
35
 
32
- <div class="text-2xl space-y-2 mt-4">
36
+ <div class="aboutme-details space-y-2 mt-4">
33
37
  <p class="job">{{ job }}</p>
34
38
  <p class="line-1">{{ line1 }}</p>
35
39
  <p class="line-2">{{ line2 }}</p>
36
40
  </div>
37
41
 
38
- <div class="text-2xl space-y-2 mt-4">
42
+ <div class="aboutme-details space-y-2 mt-4">
39
43
  <p class="social social-1">{{ social1 }}</p>
40
44
  <p class="social social-2">{{ social2 }}</p>
41
45
  <p class="social social-3">{{ social3 }}</p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slidev-theme-the-unnamed",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "keywords": [
5
5
  "slidev-theme",
6
6
  "slidev"
@@ -16,13 +16,13 @@
16
16
  "screenshot": "slidev export example.md --format png"
17
17
  },
18
18
  "dependencies": {
19
- "@slidev/types": "^0.49.0",
19
+ "@slidev/types": "^0.50.0-beta.5",
20
20
  "codemirror-theme-vars": "^0.1.1",
21
21
  "prism-theme-vars": "^0.2.4",
22
22
  "theme-vitesse": "^0.6.2"
23
23
  },
24
24
  "devDependencies": {
25
- "@slidev/cli": "^0.49.0",
25
+ "@slidev/cli": "^0.50.0-beta.5",
26
26
  "@types/node": "^18.13.0"
27
27
  },
28
28
  "//": "Learn more: https://sli.dev/themes/write-a-theme.html",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "vscode://schemas/color-theme",
3
- "name": "The unnamed",
3
+ "name": "the-unnamed",
4
4
  "type": "dark",
5
5
  "colors": {
6
6
  "foreground": "#F3EFF5",
@@ -156,8 +156,7 @@
156
156
  "terminal.ansiBrightCyan": "#15c2cb",
157
157
  "terminal.ansiBrightWhite": "#f3eff5"
158
158
  },
159
- "tokenColors": [
160
- {
159
+ "tokenColors": [{
161
160
  "scope": [
162
161
  "meta.paragraph.markdown",
163
162
  "string.other.link.description.title.markdown"
package/styles/layout.css CHANGED
@@ -300,7 +300,6 @@
300
300
  justify-content: center;
301
301
 
302
302
  height: 100%;
303
- font-size: 1.1rem;
304
303
  line-height: 1;
305
304
  padding-left: 3.5rem;
306
305
  padding-right: 3.5rem;
@@ -323,7 +322,7 @@
323
322
  }
324
323
 
325
324
  p {
326
- font-size: 1.25rem;
325
+ font-size: 1.15em;
327
326
  margin-bottom: 1em;
328
327
  line-height: 1.25em;
329
328
  }
@@ -350,7 +349,7 @@
350
349
  }
351
350
 
352
351
  p {
353
- font-size: 1.25rem;
352
+ font-size: 1.15em;
354
353
  }
355
354
  }
356
355
 
@@ -390,6 +389,10 @@
390
389
  font-size: 2.5em;
391
390
  }
392
391
 
392
+ .aboutme-details {
393
+ font-size: 1.5em;
394
+ }
395
+
393
396
  p {
394
397
  margin-bottom: 0;
395
398
  }