slidev-theme-excali-slide
v1.4.0
Published
[](https://www.npmjs.com/package/slidev-theme-excali-slide)
Readme
slidev-theme-excali-slide
A Excalidraw-like theme for Slidev.

Theme works in dark mode too. In this case, the highlight color have the opacity set to 0.9.

Theme comes with animated heading highlights. You can customize their colors by setting up following properties:
Handwritten Text
The theme includes a v-draw directive that animates text with a handwriting effect using the Virgil font.

<div v-draw>Hello World</div>
<!-- Font size and text alignment are inherited from the element's CSS -->
<div class="text-4xl text-center" v-draw="{ color: '#ff657a', duration: 3000 }">Custom text</div>Available options:
| Option | Default | Description |
| --- | --- | --- |
| strokeWidth | 2 | Stroke width |
| color | currentColor | Text color |
| duration | 2000 | Animation duration in ms |
| delay | 0 | Animation delay in ms |
The directive also works with v-click — the animation will play when the element is revealed.
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.
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
