1 line
No EOL
2.4 KiB
Markdown
1 line
No EOL
2.4 KiB
Markdown
# Rust Vibe Theme for Slidev\n\nA custom Slidev theme designed for Rust presentations with vibrant orange colors, modern animations, and a dark aesthetic.\n\n## Features\n\n- 🦀 Rust-inspired color palette (orange #f74c00 as primary)\n- 🌙 Dark mode optimized\n- ✨ Custom animations (Ferris wave, pulse effects)\n- 🎨 Styled code blocks with Rust syntax highlighting\n- 📊 Performance cards and badges\n- 🏢 Company cards for showcasing adopters\n- 📱 Poll options with hover effects\n- 💻 Terminal simulation styles\n\n## Usage\n\nIn your `slides.md` frontmatter:\n\n```yaml\n---\ntheme: rust-vibe\ncolorSchema: dark\nfonts:\n mono: 'Victor Mono'\n---\n```\n\n## Custom Classes\n\n### Text Colors\n\n- `.orange` - Rust orange color (#CE412B)\n\n### Layout Components\n\n- `.poll-option` - Interactive poll option with hover effects\n- `.performance-card` - Card for displaying benchmark results\n- `.company-card` - Card for company logos/names\n- `.tool-category` - Category sections for tools\n- `.terminal-simulation` - Terminal-like display\n- `.interactive-demo` - Interactive demo sections\n- `.rust-button` - Rust-styled button\n\n### Result Badges\n\n- `.result-badge.slow` - Red badge for slow results\n- `.result-badge.medium` - Orange badge for medium results\n- `.result-badge.fast` - Green badge for fast results\n\n### Animations\n\n- `.ferris-animate` - Waving animation for Ferris mascot\n\n## Code Blocks\n\nThe theme includes enhanced syntax highlighting for Rust code with:\n\n- Keywords in red (#ff6b6b)\n- Strings in teal (#4ecdc4)\n- Functions in yellow (#ffe66d)\n- Types in orange with bold weight\n- Comments in gray with italic style\n\n### Line Numbers\n\nBy default, code blocks **do not show line numbers**. To enable line numbers for specific code blocks, wrap them in a div with the `code-line-num` class:\n\n````markdown\n<div class="code-line-num">\n\n```rust\nfn main() {\n println!("This code will have line numbers");\n}\n```{$detected_lang}\n\n</div>\n````\n\nTo disable line numbers globally in your slides, add to frontmatter:\n\n```yaml\n---\nlineNumbers: false\n---\n```\n\n## Color Palette\n\n```css\n--rust-orange: #f74c00\n--rust-dark: #8b2500\n--rust-light: #ffa366\n--rust-gray: #2d3748\n--rust-dark-gray: #1a202c\n--rust-accent: #48bb78\n```\n\n## Requirements\n\n- Slidev >= 0.48.0\n- Victor Mono font (recommended for code)\n- JetBrains Mono font (fallback for terminals)\n\n## License\n\nMIT |