Convert Figma logo to code with AI

slidevjs logoslidev

Presentation Slides for Developers

32,612
1,307
32,612
83

Top Related Projects

67,545

The HTML Presentation Framework

It's a presentation framework based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com.

12,681

A simple, in-browser, markdown-driven slideshow tool.

reveal.js on steroids! Get beautiful reveal.js presentations from any Markdown file

PDF exporter for HTML presentations

7,595

The entrance repository of Markdown presentation ecosystem

Quick Overview

Slidev is a presentation framework that allows you to create modern, feature-rich presentations using Markdown and Vue.js. It provides a seamless and efficient way to build and present slides, with a focus on developer-friendly workflows and customization.

Pros

  • Markdown-based: Slidev uses Markdown as the primary input format, making it easy for developers to create and maintain presentations.
  • Vue.js Integration: Slidev is built on top of Vue.js, allowing for the integration of dynamic and interactive elements within the slides.
  • Customization: Slidev offers a high degree of customization, enabling users to create unique and visually appealing presentations.
  • Live Reloading: Slidev supports live reloading, allowing presenters to see changes in real-time as they work on their slides.

Cons

  • Learning Curve: While Markdown is relatively straightforward, the integration with Vue.js and the overall Slidev ecosystem may have a steeper learning curve for some users.
  • Dependency on Vue.js: Slidev's reliance on Vue.js may be a drawback for developers who are not familiar with or prefer not to use the Vue.js framework.
  • Limited Themes: While Slidev offers a range of built-in themes, the selection may be limited compared to other presentation tools.
  • Potential Performance Issues: Depending on the complexity of the slides and the number of interactive elements, Slidev presentations may experience performance issues on older or less powerful devices.

Getting Started

To get started with Slidev, follow these steps:

  1. Install Node.js and npm (the Node.js package manager) on your system.
  2. Install the Slidev CLI globally using npm:
    npm install -g @slidev/cli
    
  3. Create a new Slidev presentation by running the following command:
    slidev
    
  4. This will generate a new Slidev project with a sample presentation. You can now start editing the slides by modifying the slides.md file.
  5. To preview your presentation, run the following command:
    slidev
    
    This will start a development server and open your presentation in the default web browser.
  6. As you make changes to your slides, the browser will automatically reload, allowing you to see the updates in real-time.
  7. When you're ready to export your presentation, you can use the following command:
    slidev build
    
    This will generate a standalone HTML file that you can share or deploy.

Competitor Comparisons

67,545

The HTML Presentation Framework

Pros of Reveal.js

  • Mature and widely adopted, with a large community and extensive documentation
  • Supports a wide range of browsers and devices
  • Offers a plugin system for extending functionality

Cons of Reveal.js

  • Requires more manual HTML and CSS coding for complex layouts
  • Less integrated development experience compared to modern frameworks

Code Comparison

Reveal.js:

<div class="reveal">
  <div class="slides">
    <section>
      <h1>Slide Title</h1>
      <p>Slide content</p>
    </section>
  </div>
</div>

Slidev:

# Slide Title

Slide content

Key Differences

  • Slidev uses Markdown for content creation, while Reveal.js primarily uses HTML
  • Slidev offers built-in themes and layouts, whereas Reveal.js requires more manual styling
  • Slidev provides a more integrated development experience with hot reloading and Vue.js components
  • Reveal.js has a longer track record and broader browser support

Use Cases

  • Choose Reveal.js for maximum flexibility and broad compatibility
  • Opt for Slidev if you prefer a modern, developer-friendly workflow with Markdown and Vue.js integration

It's a presentation framework based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com.

Pros of impress.js

  • More flexible and creative presentation layouts with 3D transformations
  • Lightweight and dependency-free, easy to integrate into existing projects
  • Longer history and larger community support

Cons of impress.js

  • Steeper learning curve, especially for non-developers
  • Less built-in features and themes compared to modern alternatives
  • Manual setup required for responsive designs and mobile support

Code Comparison

impress.js:

<div id="impress">
    <div class="step" data-x="0" data-y="0">Slide 1</div>
    <div class="step" data-x="1000" data-y="500" data-scale="2">Slide 2</div>
</div>
<script src="impress.js"></script>
<script>impress().init();</script>

Slidev:

# Slide 1

Content for slide 1

---

# Slide 2

Content for slide 2

Key Differences

  • impress.js uses HTML and JavaScript for slide creation, while Slidev uses Markdown
  • impress.js offers more control over slide positioning and transitions, but requires more manual setup
  • Slidev provides a more streamlined development experience with built-in themes and features
12,681

A simple, in-browser, markdown-driven slideshow tool.

Pros of Remark

  • Lightweight and simple to use
  • Supports Markdown syntax for creating slides
  • Can be easily integrated into existing web projects

Cons of Remark

  • Limited built-in themes and customization options
  • Lacks advanced features like presenter mode or PDF export
  • Requires more manual setup for complex presentations

Code Comparison

Remark:

class: center, middle

# My Presentation

---

## Slide 1

- Point 1
- Point 2
- Point 3

Slidev:

---
theme: seriph
background: https://source.unsplash.com/collection/94734566/1920x1080
class: text-center
highlighter: shiki
lineNumbers: false
---

# My Presentation

---

# Slide 1

- Point 1
- Point 2
- Point 3

Key Differences

  • Slidev offers more built-in features and customization options
  • Remark uses pure Markdown, while Slidev combines Markdown with YAML frontmatter
  • Slidev provides a more opinionated structure and theming system
  • Remark is more flexible for integration into existing projects
  • Slidev offers better developer experience with hot-reloading and Vue.js integration

reveal.js on steroids! Get beautiful reveal.js presentations from any Markdown file

Pros of reveal-md

  • Simpler setup and usage, ideal for quick Markdown-based presentations
  • Built on the popular Reveal.js framework, offering a familiar experience
  • Supports static HTML export for easy sharing and hosting

Cons of reveal-md

  • Limited customization options compared to Slidev's Vue-based approach
  • Fewer built-in features and integrations for developer-focused presentations
  • Less active development and smaller community

Code Comparison

reveal-md:

# Title Slide

---

## Second Slide

- Bullet point 1
- Bullet point 2

Slidev:

# Title Slide

---

# Second Slide

- Bullet point 1
- Bullet point 2

<style>
h1 {
  color: #4a5568;
}
</style>

Key Differences

  • Slidev offers more advanced features for developers, including code highlighting, diagrams, and Vue component integration
  • reveal-md focuses on simplicity and ease of use, making it suitable for quick Markdown-based presentations
  • Slidev provides a more modern and customizable presentation experience, while reveal-md leverages the established Reveal.js framework
  • Both tools support Markdown syntax, but Slidev extends it with additional functionality and styling options

PDF exporter for HTML presentations

Pros of Decktape

  • Supports a wide range of existing HTML presentation frameworks
  • Can export presentations to PDF format
  • Works with static HTML files, no need for a development server

Cons of Decktape

  • Requires separate tools for creating presentations
  • Limited customization options for the export process
  • May have compatibility issues with some complex presentations

Code Comparison

Slidev (Vue.js-based slide creation):

<template>
  <div class="slidev-layout default">
    <h1>Hello World</h1>
    <p>This is a Slidev slide</p>
  </div>
</template>

Decktape (CLI command for exporting):

decktape reveal https://example.com/presentation.html presentation.pdf

Slidev focuses on creating presentations using Vue.js components and Markdown, offering a modern development experience with hot-reloading and custom themes. It generates HTML presentations that can be exported to PDF using its built-in export feature.

Decktape, on the other hand, is primarily a tool for exporting existing HTML presentations to PDF. It doesn't provide presentation creation capabilities but offers broad compatibility with various HTML presentation frameworks.

While Slidev provides an all-in-one solution for creating and exporting presentations, Decktape excels at converting existing HTML presentations to PDF, making it useful for archiving or sharing presentations created with other tools.

7,595

The entrance repository of Markdown presentation ecosystem

Pros of Marp

  • Simpler learning curve with Markdown-centric approach
  • Supports multiple output formats (HTML, PDF, PPTX)
  • Lightweight and faster rendering for large presentations

Cons of Marp

  • Less interactive and dynamic slide features
  • Limited customization options compared to Slidev
  • Fewer built-in themes and layouts

Code Comparison

Marp:

---
marp: true
theme: default
---

# Slide 1
Content for slide 1

---

# Slide 2
Content for slide 2

Slidev:

---
theme: default
---

# Slide 1
Content for slide 1

---

# Slide 2
Content for slide 2

Key Differences

  • Syntax: Marp uses frontmatter for global settings, while Slidev uses it for both global and per-slide settings
  • Customization: Slidev offers more advanced customization options through Vue components and CSS
  • Interactivity: Slidev provides built-in support for animations, transitions, and interactive elements
  • Development experience: Slidev offers hot module reloading and a dev server for real-time preview

Both tools are excellent choices for creating slide decks using Markdown, but they cater to different user needs. Marp is ideal for quick, simple presentations, while Slidev is better suited for more complex, interactive slide decks with advanced customization requirements.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README


Slidev

Presentation slides for developers 🧑‍💻👩‍💻👨‍💻

NPM version NPM Downloads Docs & Demos Themes
GitHub stars

Video Preview | Documentation


Made possible by my Sponsor Program 💖

Features

  • 📝 Markdown-based - foucus on content and use your favorite editor
  • 🧑‍💻 Developer Friendly - built-in code highlighting, live coding, etc.
  • 🎨 Themable - theme can be shared and used with npm packages
  • 🌈 Stylish - on-demand utilities via UnoCSS.
  • 🤹 Interactive - embedding Vue components seamlessly
  • 🎙 Presenter Mode - use another window, or even your phone to control your slides
  • 🎨 Drawing - draw and annotate on your slides
  • 🧮 LaTeX - built-in LaTeX math equations support
  • 📰 Diagrams - creates diagrams using textual descriptions with Mermaid.js
  • 🌟 Icons - access to icons from any icon set directly
  • 💻 Editor - integrated editor, or the VSCode extension
  • 🎥 Recording - built-in recording and camera view
  • 📤 Portable - export into PDF, PNGs, or PPTX
  • ⚡️ Fast - instant reloading powered by Vite
  • 🛠 Hackable - using Vite plugins, Vue components, or any npm packages

Getting Started

Try it Online ⚡️

sli.dev/new

Init Project Locally

Install Node.js >=18 and run the following command:

npm init slidev

Documentation: English | 中文文档 | Français | Español | Русский | Português-BR

Discord: chat.sli.dev

For a full example, you can check the demo folder, which is also the source file for my previous talk.

Tech Stack

  • Vite - An extremely fast frontend tooling
  • Vue 3 powered Markdown - Focus on the content while having the power of HTML and Vue components whenever needed
  • UnoCSS - On-demand utility-first CSS engine, style your slides at ease
  • Shiki, Monaco Editor - First-class code snippets support with live coding capability
  • RecordRTC - Built-in recording and camera view
  • VueUse family - @vueuse/core, @vueuse/motion, etc.
  • Iconify - Icon sets collection.
  • Drauu - Drawing and annotations support
  • KaTeX - LaTeX math rendering.
  • Mermaid - Textual Diagrams.

Sponsors

This project is made possible by all the sponsors supporting my work:

Logos from Sponsors

License

MIT License © 2021 Anthony Fu

NPM DownloadsLast 30 Days