Skip to content

Commit 44149fe

Browse files
committed
theme updates
1 parent f95fd95 commit 44149fe

30 files changed

+444
-313
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.github
2+
assets

README.md

Lines changed: 87 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,93 @@
22

33
[![NPM version](https://img.shields.io/npm/v/slidev-theme-the-unnamed?color=F141A8&label=)](https://www.npmjs.com/package/slidev-theme-the-unnamed)
44

5-
TBA
5+
A [Slidev](https://sli.dev/) theme based on the [The unnamed - VS Code theme](https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-unnamed-theme) by [Elio Struyf](https://elio.dev).
6+
7+
## Usage
8+
9+
Add the following frontmatter to your `slides.md`. Start Slidev then it will prompt you to install the theme automatically.
10+
11+
```yaml
12+
---
13+
theme: the-unnamed
14+
---
15+
```
616

717
## Layouts
818

9-
## Components
19+
The theme currently has the following layouts:
20+
21+
- `default`
22+
- `cover`
23+
- `section`
24+
- `about-me`
25+
- and the ones from Slidev itself
26+
27+
### Cover
28+
29+
![](./assets/001.png)
30+
31+
**Usage**
32+
33+
```yaml
34+
---
35+
layout: cover
36+
background: <image url> (optional)
37+
---
38+
```
39+
40+
### About me
41+
42+
![](./assets/002.png)
43+
44+
**Usage**
45+
46+
```yaml
47+
---
48+
layout: about-me
49+
50+
helloMsg: Hello!
51+
name: <name>
52+
imageSrc: <image url>
53+
job: <job title>
54+
line1:
55+
line2:
56+
social1:
57+
social2:
58+
social3:
59+
---
60+
```
61+
62+
### Default
63+
64+
![](./assets/005.png)
65+
66+
67+
## Cusomizations
68+
69+
You can customize the theme by adding the following frontmatter to your `slides.md`.
70+
71+
```yaml
72+
themeConfig:
73+
background: "#161C2C"
74+
color: "#F3EFF5"
75+
76+
accents-teal: "#44FFD2"
77+
accents-yellow: "#FFE45E"
78+
accents-red: "#FE4A49"
79+
accents-lightblue: "#15C2CB"
80+
accents-blue: "#5EADF2"
81+
accents-vulcan: "#0E131F"
82+
83+
code-background: "#0F131E"
84+
code-border: "#242d34"
85+
```
86+
87+
## Components
88+
89+
*Coming later*
90+
91+
<br />
92+
<br />
93+
94+
[![Visitors](https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2Festruyf%2Fslidev-theme-the-unnamed&countColor=%23F141A8)](https://visitorbadge.io/status?path=https%3A%2F%2Fgithub.com%2Festruyf%2Fslidev-theme-the-unnamed)

assets/001.png

667 KB
Loading

assets/002.png

470 KB
Loading

assets/003.png

15.4 KB
Loading

assets/004.png

13.4 KB
Loading

assets/005.png

53.5 KB
Loading

assets/006.png

49.5 KB
Loading

assets/007.png

21.1 KB
Loading

assets/008.png

90 KB
Loading

assets/009.png

41.5 KB
Loading

assets/010.png

553 KB
Loading

assets/011.png

13.9 KB
Loading

components/.gitkeep

Whitespace-only changes.

components/Box.vue

Lines changed: 0 additions & 45 deletions
This file was deleted.

components/Oval.vue

Lines changed: 0 additions & 45 deletions
This file was deleted.

components/ShowHide.vue

Lines changed: 0 additions & 48 deletions
This file was deleted.

example.md

Lines changed: 92 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,104 @@
11
---
22
theme: ./
33
background: https://source.unsplash.com/collection/94734566/1920x1080
4+
5+
themeConfig:
6+
background: "#161C2C"
7+
color: "#F3EFF5"
8+
accents-teal: "#44FFD2"
9+
accents-yellow: "#FFE45E"
10+
accents-red: "#FE4A49"
11+
accents-lightblue: "#15C2CB"
12+
accents-blue: "#5EADF2"
13+
accents-vulcan: "#0E131F"
14+
code-background: "#0F131E"
15+
code-border: "#242d34"
416
---
517

618
# Slidev - The Unnamed
719

820
Created by [Elio Struyf](https://elio.dev)
921

22+
---
23+
layout: about-me
24+
25+
helloMsg: Hello!
26+
name: Elio Struyf
27+
imageSrc: https://elio.dev/eliostruyf_2022.jpg
28+
job: Lead DevTools Engineer @ Rapid
29+
line1: "#Stickerpreneur @ pyod.shop"
30+
line2: "#Maintainer @ Front Matter CMS"
31+
social1: "@eliostruyf"
32+
social2: eliostruyf.com
33+
social3: elio@struyfconsulting.be
34+
---
35+
36+
---
37+
layout: cover
38+
---
39+
40+
# Cover title
41+
42+
Subtitle for the cover
43+
44+
---
45+
layout: section
46+
---
47+
48+
# Section title
49+
50+
Subtitle for the section
51+
52+
---
53+
54+
# Code with Shiki and The unnamed theme
55+
56+
The code highlighting is powered by Shiki and [The unnamed - VS Code theme](https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-unnamed-theme)
57+
58+
```ts
59+
interface User {
60+
id: number
61+
firstName: string
62+
lastName: string
63+
role: string
64+
}
65+
66+
function updateUser(id: number, update: Partial<User>) {
67+
const user = getUser(id)
68+
const newUser = { ...user, ...update }
69+
saveUser(id, newUser)
70+
}
71+
```
72+
73+
---
74+
75+
# Table
76+
77+
| Title | Description | Default |
78+
| --- | --- | --- |
79+
| `layout` | The layout to use for the slide | `default` |
80+
| `theme` | The theme to use for the slide | `the-unnamed` |
81+
| `highlighter` | The highlighter to use for the slide | `shiki` |
82+
| `background` | The background to use for the slide | `none` |
83+
84+
## Content test underneath
85+
86+
Some content to place here
87+
88+
---
89+
90+
# Heading 1
91+
92+
## Heading 2
93+
94+
### Heading 3
95+
96+
#### Heading 4
97+
98+
##### Heading 5
99+
100+
> **Info**: This is a note
101+
10102
---
11103

12104
# What is Slidev?
@@ -74,13 +166,3 @@ class: "text-center"
74166
# Learn More
75167

76168
[Documentations](https://sli.dev) / [GitHub Repo](https://github.com/slidevjs/slidev)
77-
78-
---
79-
layout: flex
80-
---
81-
82-
# `flex` layout
83-
84-
The `flex` layout is similar to cover, but with a bit more space for the content. Opacity is set to `1`.
85-
86-
> **Info**: This is a note

0 commit comments

Comments
 (0)