Skip to content

Repository files navigation

Slidev Theme Scholarly

NPM Version NPM Downloads VS Code Extension Version NPM Next

GitHub issues GitHub pull requests GitHub stars License

中文版 · Live Demo · Documentation

A professional presentation theme for Slidev, designed specifically for academic presentations with LaTeX Beamer-inspired styling.

⚠️ Major Upgrade in Progress

Upcoming versions may include breaking changes. Please check the Upgrade Notes before updating.

Try the pre-release:

npm i -D slidev-theme-scholarly@next

✨ Key Features

Feature Description
🎓 Professional Design LaTeX Beamer-inspired with academic styling
📐 34 Layouts Structure, Content, Emphasis, and Academic categories
🧩 Rich Components Theorem, Block, Citations, Metrics, Evidence, Paper Cards, Lists
🎨 9 Color Themes Classic Blue, Oxford, Cambridge, Yale, Princeton, Nordic, Monochrome, Sepia, High Contrast
🌓 Explicit Surface Modes Separate contentMode, chromeMode, and sectionMode controls
📚 Citations & Footnotes BibTeX bibliography plus academic Markdown footnotes with inline preview
📝 Syntax Sugar Simplified Markdown directives for components
🔧 VS Code Extension Snippets, previews, and BibTeX integration

🚀 Quick Start

Requirements

Install Node.js 20 or newer.

Create with CLI (Recommended)

Use the package name for a one-time npx run:

npx -y slidev-theme-scholarly init my-talk --template academic
cd my-talk
pnpm install
pnpm run dev

npx must download the CLI code before it can run it. When the package is not already available locally, npm installs it into its cache, not into your project or global packages. The -y flag accepts that temporary cache installation without an interactive prompt.

List the available templates without creating a project:

npx -y slidev-theme-scholarly template list

Generated starters work out of the box with Scholarly's built-in citation support. Normal theme usage does not require a project-level vite.config.

Use the Project-Local CLI

Generated projects already declare Scholarly as a development dependency. For an existing Slidev project, install it first:

pnpm add -D slidev-theme-scholarly

Then run the short sch binary through the project package manager:

pnpm exec sch --version

With npm, use npm i -D slidev-theme-scholarly and npx sch. The sts and scholarly binaries are aliases of sch.

Common commands:

# show help
pnpm exec sch help
pnpm exec sch help theme

# list Scholarly presets and assets
pnpm exec sch theme list
pnpm exec sch layout list
pnpm exec sch component list
pnpm exec sch snippet list

# apply Scholarly visual preset to slides frontmatter
pnpm exec sch theme apply oxford-burgundy --font traditional --file slides.md
pnpm exec sch theme preset apply oxford --file slides.md

# append academic snippet blocks into slides
pnpm exec sch snippet append theorem --file slides.md
pnpm exec sch snippet append references --file slides.md

# append full scholarly workflow skeleton
pnpm exec sch workflow list
pnpm exec sch workflow apply paper --file slides.md

# generate a paper summary from BibTeX
pnpm exec sch paper summary --bib references.bib --key sample2026

# check environment and project readiness (includes Scholarly checks)
pnpm exec sch doctor
pnpm exec sch doctor --json

Optional Global CLI

A global install is not required, but it makes the short binaries available outside a project:

npm i -g slidev-theme-scholarly
sch template list
# aliases: sts, scholarly

Create Manually

---
theme: scholarly
authors:
  - name: Your Name
    institution: Your University
themeConfig:
  colorTheme: classic-blue
  chromeMode: dark
  sectionMode: dark
footerMiddle: Conference 2026
---

# Your Presentation Title

Subtitle or description

---

# Introduction

- Point 1
- Point 2
- Point 3

BibTeX citations and the references layout work automatically once the theme is enabled. Use layout: references for a generated bibliography slide, or add [[bibliography]] only when you need custom placement inside that slide.

Preview

npx slidev

📐 Layouts

Layouts are organized into four categories:

Structure Layouts

Layout Description
cover Title slide with authors
default Standard content slide
intro Section introduction
section Chapter divider
center Centered content
auto-center Auto-centered content
auto-size Default flow with fit-to-page sizing
end Closing slide

Content Layouts

Layout Description
two-cols Two-column layout
image-left Image on left, text on right
image-right Image on right, text on left
bullets Enhanced bullet list
figure Academic figure with caption
split-image Split image layout

Emphasis Layouts

Layout Description
quote Styled quotation
fact Single fact/statistic
statement Important statement
focus Focused statement with icon

Academic Layouts

Layout Description
compare Side-by-side comparison
methodology Research methodology
results Research results
timeline Timeline visualization
agenda Presentation agenda
acknowledgments Acknowledgments
references Bibliography

View Layout Documentation →


🧩 Components

Component Description Example
Theorem Theorems, lemmas, definitions <Theorem type="theorem">...</Theorem>
Block Beamer-style info blocks <Block type="info">...</Block>
Citations BibTeX citations @citekey or !@citekey
Steps Process visualization <Steps :steps="[...]" />
Keywords Keyword tags <Keywords :keywords="[...]" />
Columns Multi-column layout <Columns :columns="2">...</Columns>
Highlight Text highlighting <Highlight>text</Highlight>

View Component Documentation →


🎨 Theme Gallery

Classic Blue (Default)
Cover Section Content Quote

At the top of each slide, add:

Oxford Burgundy
Cover Section Content Quote
Cambridge Green
Cover Section Content Quote
More Themes...
  • Yale Blue
  • Princeton Orange
  • Nordic Blue
  • Monochrome
  • Warm Sepia
  • High Contrast

View All Themes →

Use for: Most of your slides (this is automatic!)


🔧 VS Code Extension

Boost your productivity with our VS Code extension:

  • 🎯 Secondary Side Bar panel for layouts/components
  • ✨ Snippets: type ss- to insert layouts/components
  • ⚡ Smart completion for layout:, themeConfig, <components>, and ::: directives
  • 📚 BibTeX integration with auto-complete
  • 👁️ Visual Previews: Directly preview layouts, components, and themes in the sidebar

Download from Releases →


🤝 Contributing

We welcome contributions!

# Install dependencies
pnpm install

# Start development server
pnpm run dev

# Build
pnpm run build

View Contributing Guide →


📄 License

MIT License - see LICENSE for details.


🙏 Credit

Slidev Theme Scholarly is inspired by the visual language of LaTeX Beamer.

Special thanks to the linux.do community for sharing practical insights and thoughtful feedback on AI tooling.


🔗 Links


About

A professional presentation theme for Slidev, designed specifically for academic presentations with LaTeX Beamer-inspired styling.

Resources

Stars

35 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages