# slidev-theme-antfu-vite-conf-2023

> [![NPM version](https://img.shields.io/npm/v/slidev-theme-antfu-vite-conf-2023?color=3AB9D4&label=)](https://www.npmjs.com/package/slidev-theme-antfu-vite-conf-2023)

Latest version **0.1.9** (published 2023-11-22) · 0 weekly downloads

## Install

```sh
npm install slidev-theme-antfu-vite-conf-2023
pnpm add slidev-theme-antfu-vite-conf-2023
yarn add slidev-theme-antfu-vite-conf-2023
bun add slidev-theme-antfu-vite-conf-2023
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.9 |
| Published | 2023-11-22 |
| First published | 2023-11-19 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM |
| Node | >=18.0.0 |
| Dependencies | 5 |
| Unpacked size | 4.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | li_qingyun |
| Keywords | slidev-theme, slidev |

## Links

- npm: https://www.npmjs.com/package/slidev-theme-antfu-vite-conf-2023
- Repository: https://github.com/LQYld/slidev-theme-antfuViteConf-2023
- Homepage: https://github.com/LQYld/slidev-theme-antfuViteConf-2023#readme
- Issues: https://github.com/LQYld/slidev-theme-antfuViteConf-2023/issues
- npm.io page: https://npm.io/package/slidev-theme-antfu-vite-conf-2023

## Dependencies (5)

- [@slidev/types](https://npm.io/package/@slidev/types.md) ^0.43.15
- [theme-vitesse](https://npm.io/package/theme-vitesse.md) ^0.7.3
- [vite-svg-loader](https://npm.io/package/vite-svg-loader.md) ^4.0.0
- [prism-theme-vars](https://npm.io/package/prism-theme-vars.md) ^0.2.4
- [codemirror-theme-vars](https://npm.io/package/codemirror-theme-vars.md) ^0.1.2

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.9 (latest) — 2023-11-22
- 0.1.8 — 2023-11-21
- 0.1.7 — 2023-11-21
- 0.1.6 — 2023-11-19
- 0.1.5 — 2023-11-19
- 0.1.4 — 2023-11-19
- 0.1.3 — 2023-11-19
- 0.1.2 — 2023-11-19
- 0.1.1 — 2023-11-19
- 0.1.0 — 2023-11-19

## README

# slidev-theme-antfu-vite-conf-2023

[![NPM version](https://img.shields.io/npm/v/slidev-theme-antfu-vite-conf-2023?color=3AB9D4&label=)](https://www.npmjs.com/package/slidev-theme-antfu-vite-conf-2023)

A reproduce the ppt style of antfu's speech at viteConf2023 theme for [Slidev](https://github.com/slidevjs/slidev).

Live demo: [here](https://slidev-theme-antfu-vite-conf-2023.fe-ecosphere.com/)

## Install

Add the following frontmatter to your `slides.md`. Start Slidev then it will prompt you to install the theme automatically.

<pre><code>---
theme: <b>antfu-vite-conf-2023</b>
---</code></pre>

It is also required to install the npm package vite-svg-loader and adding a vite.config.js in your project with the following:

```ts
import svgLoader from 'vite-svg-loader'

export default {
  plugins: [svgLoader()],
}
```

Learn more about [how to use a theme](https://sli.dev/themes/use).

## Layouts

This theme provides the following layouts:

### Custom light gradient color
> Gradient color is implemented using CSS

Gradient color default value: 
```css
.defaltLinearGradient {
    background-image: linear-gradient(to right , rgb(207 200 89 / 1 ) 0% , rgb(77 189 127 / 1 ) 50% , rgb(77 189 172 / 1 ) 100%)
}
```

```md
---
themeConfig:
 linearGradient: 'linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%)'
---
```

### Configure lighting direction

Provides 8 different angles of lighting directions 
> The default value is right-up

> Number mapping in position matches ppt page number

```md
---
themeConfig:
 linearGradient: 'linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%)'
 position: 
  1: right-up
  2: right-middle
  3: right-down
  4: left-down
  5: left-middle
  6: left-up
  7: top-up
  8: top-down
---
```

You can also set it to none and it will not have any lighting

```md
---
themeConfig:
 linearGradient: 'linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%)'
 position: 
  1: none
---
```

## Case

Start                       | End
:-------------------------:|:-------------------------:
![Start](./public/case-1.png) | ![End](./public/case-8.png)

## Thank

- https://talks.antfu.me/2023/viteconf/1
- https://antfu.me/posts/roads-to-oss-set-theory-viteconf-2023
- https://sli.dev/

---
_Source: https://npm.io/package/slidev-theme-antfu-vite-conf-2023 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
