slidev-theme-swiss-ai-hub
v0.0.6
Published
A professional Slidev theme with Swiss AI-Hub branding, featuring gradient backgrounds and flexible layouts
Maintainers
Readme
Slidev Theme Swiss AI-Hub
A professional, dark-themed Slidev presentation template designed with the Swiss AI-Hub branding. Features gradient backgrounds, flexible section layouts, and comprehensive Slidev functionality support.

Features
🎨 Swiss AI-Hub Branding
- Dark gradient backgrounds with customizable primary colors
- Professional bbv Software Services AG footer branding
- Clean, modern typography with Outfit sans-serif font
📐 Flexible Section Layouts
- Multiple positioning options: left, right, or centered content
- Column support: Split content into multiple columns
- Customizable section headers: Add prefix, postfix, and section numbers
- Smooth transitions: Built-in slide transition effects

🚀 Rich Content Support
- Code highlighting: Syntax highlighting with line emphasis support
- Interactive code editor: Monaco editor integration for live code editing
- Mermaid diagrams: Flowcharts, sequence diagrams, git graphs, and more
- Mathematical expressions: LaTeX math support for formulas and equations
- Media embedding: YouTube videos and social media embeds
- Animations: Smooth entrance effects and click-through reveals

Installation
Option 1: NPM
pnpm install slidev-theme-swiss-ai-hubOption 2: Add to your package.json
{
"devDependencies": {
"slidev-theme-swiss-ai-hub": "^0.0.1"
}
}Then run:
pnpm installUsage
Add the theme to your Slidev presentation's frontmatter:
---
theme: swiss-ai-hub
title: 'Your Presentation Title'
author: Your Name
mdc: true
lineNumbers: true
themeConfig:
primary: '#440000' # Optional: customize primary color
---Layouts
Section Layout
The section layout provides a flexible container for organizing content with visual hierarchy:
---
layout: section
position: left # left or right
transition: slide-left
prefix: "Chapter 1" # Optional: Small text above title
postfix: "Introduction" # Optional: Small text below title
sectionTitle: "Getting Started"
sectionNumber: 1
columnCount: 2 # Optional: Split content into columns
---
# Your Content Here
Content for the first column
<ColumnBreak />
Content for the second columnAvailable options:
position:leftorrightalignmenttransition: Slide transition effectprefix: Small text displayed above the section titlepostfix: Small text displayed below the section titlesectionTitle: Main section titlesectionNumber: Section number for navigationcolumnCount: Number of columns (1 or 2)
Default Layout
The standard layout includes header and footer with gradient background:
---
layout: default
---
# Slide Title
Your content hereCover Layout
A clean cover slide for your presentation intro:
---
layout: cover
---
# Presentation Title
## Subtitle or descriptionComponents
ColumnBreak
Split content into multiple columns within section layouts:
<ColumnBreak />Gradient Background
The theme automatically applies gradient backgrounds to all slides. The gradient adapts based on the configured primary color.
Available Scripts
# Development server
pnpm run dev
# Build presentation
pnpm run build
# Export to PDF
pnpm run export
# Export to PNG images
pnpm run screenshot
# Run linter
pnpm run lintTheme Configuration
Customize the theme in your presentation's frontmatter:
themeConfig:
primary: '#440000' # Primary color for gradients and accentsExample Presentation
Check out example.md for a comprehensive showcase of all theme features, including:
- Table of contents
- Code highlighting with line emphasis
- Mermaid diagrams (sequence, git graphs, pie charts)
- Mathematical formulas
- Media embedding
- Interactive components
- Animation effects
- Export options
Feature Highlights from Example
Code Highlighting
def fibonacci(n):
if n <= 0:
return []
elif n == 1:
return [0]
else:
fib = [0, 1]
for i in range(2, n):
fib.append(fib[i-1] + fib[i-2])
return fibMermaid Diagrams
sequenceDiagram
participant User
participant Slidev
participant Browser
User->>Slidev: Write Markdown
Slidev->>Slidev: Parse & Transform
Slidev->>Browser: Hot Reload
Browser->>User: Live PreviewMathematical Expressions
- Block math: $$\int_{0}^{\infty} e^{-x^2} dx = \frac{\sqrt{\pi}}{2}$$
- Inline math: $E = mc^2$
Tech Stack
- Slidev: Presentation framework
- Vue 3: Component framework
- UnoCSS: Atomic CSS engine
- TypeScript: Type safety
- Shiki: Syntax highlighting
- Monaco Editor: Code editing
- Mermaid: Diagram support
Development
To contribute or customize the theme:
- Clone the repository
- Install dependencies:
pnpm install - Start development:
pnpm run dev - Make your changes in the theme files
- Test with the example presentation
Project Structure
slidev-theme-swiss-ai-hub/
├── layouts/ # Slide layouts
│ ├── cover.vue
│ ├── default.vue
│ └── section.vue
├── components/ # Reusable components
│ ├── default-header.vue
│ ├── default-footer.vue
│ ├── gradient-background.vue
│ └── ColumnBreak.vue
├── setup/ # Setup files
│ ├── monaco.ts
│ ├── mermaid.ts
│ └── shiki.ts
├── uno.config.ts # UnoCSS configuration
├── example.md # Example presentation
└── package.jsonContributing
pnpm install- Install dependenciespnpm run dev- Start theme preview ofexample.md- Edit the
example.mdand style files to see changes pnpm run export- Generate preview PDFpnpm run screenshot- Generate preview PNG
Demo
View the live demo: https://bbvch-ai.github.io/slidev-theme-swiss-ai-hub/
License
Apache-2.0
Credits
Created for Swiss AI-Hub by bbv Software Services AG
Support
For issues, questions, or contributions, please visit our GitHub repository.
