0.4.0 • Published 2 months ago

slidev-theme-storyblok v0.4.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

slidev-theme-storyblok

NPM version

A Storyblok theme for Slidev.

Install

npm i slidev-theme-storyblok

Add the following frontmatter to your slides.md. Start Slidev then it will prompt you to install the theme automatically.

Learn more about how to use a theme.

ThemeConfig

---
themeConfig:
  presenter: 'Alvaro Saburido'
  presenterTitle: 'DevRel Engineer'
  presenterAvatar: 'https://res.cloudinary.com/alvarosaburido/image/upload/v1690529819/avatar_storyblok.png'
  presenterEmail: 'alvaro.saburido@storyblok.com'
---

Layouts

This theme provides the following layouts:

Intro intro

Usage:

  • Add intro in the layout field.
---
layout: intro
---

Layout-intro

Cover cover

Cover is the default layout when none is specified.

Usage:

  • Add cover in the layout field.
---
layout: cover
---

Layout-cover

Presenter presenter

Usage:

  • Add presenter in the layout field.
---
layout: presenter
---

Layout-presenter

Image Right image-right

Shows an image on the right side of the screen, the content will be placed on the left side.

Usage:

---
layout: image-right

# the image source
image: ./path/to/the/image

---

Layout-image-right

Image left image-left

Shows an image on the left side of the screen, the content will be placed on the right side.

Usage:

---
layout: image-left

# the image source
image: ./path/to/the/image

---

Layout-image-left

New Section section

Usage:

  • Add section in the layout field.
---
layout: section
---

Layout-section

Text Window text-window

Usage:

  • Add text-window in the layout field.
---
layout: text-window
---

# Consoles

Use code snippets and get the highlighting directly into a nice looking window!

::window::

```ts
// main.ts

import { defineNuxtConfig } from "nuxt";

export default defineNuxtConfig({
  modules: ["@storyblok/nuxt"],
  storyblok: {
    accessToken: "<your-access-token>"
  }
});

Layout-section

Two Columns two-cols

Separates the page content in two columns.

Usage:

---
layout: two-cols
---

# Left

This shows on the left

::right::

# Right

This shows on the right

Layout-two-cols

TODO

  • Add more layouts (iframe)
  • Better shiki theme

Contributing

  • npm install
  • npm run dev to start theme preview of example.md
  • Edit the example.md and style to see the changes
  • npm run export to generate the preview PDF
  • npm run screenshot to generate the preview PNG
0.4.0

2 months ago

0.3.0

6 months ago

0.3.1

6 months ago

0.2.1

9 months ago

0.2.0

9 months ago

0.1.0

9 months ago

0.0.1

9 months ago