slidev-theme-whulug
v0.0.2
Published
[](https://www.npmjs.com/package/slidev-theme-whulug)
Readme
slidev-theme-whulug
A WHULUG standard presentation theme for Slidev.
Install
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.
Layouts
This theme provides the following layouts:
| Layout | Description | Usage |
|--------|-------------|-------|
| cover | Cover page with background image support | layout: cover |
| disclaimer | Disclaimer/attribution page | layout: disclaimer |
| toc | Table of contents with auto-numbering | layout: toc |
| page | Standard content page | layout: page |
| section | Chapter/section divider with PART letter | layout: section |
| two-cols | Two-column layout | layout: two-cols |
| center | Centered content layout | layout: center |
Cover Layout
---
layout: cover
background: https://example.com/image.jpg
---
# Title
:: subtitle ::
Subtitle textTOC Layout
---
layout: toc
start: 0 # Start numbering from 0 (optional, default: 1)
---
- Chapter 1: Introduction
- Chapter 2: Main Content
- Chapter 3: ConclusionSection Layout
---
layout: section
number: '01'
---
# Chapter Title
:: subtitle ::
Chapter SubtitleConfigure PART letter mapping in frontmatter:
---
sectionOffset: 1 # 01->A (default), set to 0 for 00->A
---Two-Cols Layout
---
layout: two-cols
---
:: left ::
Left column content
:: right ::
Right column content
:: header ::
Page HeaderPage Layout
---
layout: page
---
# Page Title
Content here...
:: header ::
Header TextCenter Layout
---
layout: center
---
# Centered Title
## Subtitle
Centered content...
:: header ::
Header TextComponents
This theme provides the following components:
BottomBar
A fixed bottom bar that appears on all pages showing:
- Current mode/status
- Logo/brand
- File path
- Current date
The BottomBar is automatically included in all layouts.
Configuration
Global Settings
Add these to your slides.md frontmatter:
---
# Theme settings
theme: whulug
canvasWidth: 980
# Fonts
fonts:
sans: 'Noto Sans SC'
mono: 'Fira Code'
# Section numbering offset
# 1: 01->A, 02->B (default)
# 0: 00->A, 01->B
sectionOffset: 1
---Cover Background
---
layout: cover
background: https://your-image-url.com/image.jpg
---Contributing
npm installnpm run devto start theme preview ofexample.md- Edit the
example.mdand style to see the changes npm run exportto generate the preview PDFnpm run screenshotto generate the preview PNG
