An open API service indexing awesome lists of open source software.

https://github.com/lightvue/slidev-theme-light-icons

A light and Elegant theme for Slidev
https://github.com/lightvue/slidev-theme-light-icons

hacktoberfest hacktoberfest2021 icons light-icons slidev slidev-theme

Last synced: over 1 year ago
JSON representation

A light and Elegant theme for Slidev

Awesome Lists containing this project

README

          

# slidev-theme-light-icons

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

- A light and Elegant theme for [Slidev](https://github.com/slidevjs/slidev).
- This theme contains collection of amazing & light-weighted icons called the `light-icons`.

#### Live demo: [Click Here](https://slidev.icons.lightvue.org).

For more information about `light-icons`. Visit [Light Icons](https://lightvue.org/getting-started/light-icons).

---

### 100% Light & Dark Compatible
All themes are compatible with `light` & `dark` mode

![image-header-intro](screenshot/overall.gif)

## Install

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

---

theme: light-icons
---

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

## Layouts

This theme provides the following layouts:
#### Intro `intro`
Usage:

```
---
layout: intro
image: 'https://source.unsplash.com/collection/94734566/1920x1080'
---
```

![intro](screenshot/1-layout-intro.png)

---

#### Intro with icon `image-header-intro`
Usage:

```
---
layout: image-header-intro
imageHeader: '../assets/images/light-icon-logo.svg'
imageRight: '../assets/images/light-icons-landing.svg'
---
```

![image-header-intro](screenshot/2-layout-image-header-intro-light.png)

---

#### Dynamic Image `dynamic-image`
Usage:

```
---
layout: dynamic-image
image: 'https://source.unsplash.com/collection/94734566/1920x1080'
equal: true
left: false
---
```

![dynamic-image](screenshot/3-layout-dynamic-image-dark.png)

---

#### Dynamic Image `dynamic-image`
Usage:

```
---
layout: dynamic-image
image: 'https://source.unsplash.com/collection/94734566/1920x1080'
equal: false
left: false
---
```

![dynamic-image](screenshot/4-layout-dynamic-image-dark.png)

---

#### Dynamic Image `dynamic-image`
Usage:

```
---
layout: dynamic-image
image: 'https://source.unsplash.com/collection/94734566/1920x1080'
equal: false
left: true
---
```

![dynamic-image](screenshot/5-layout-dynamic-image-dark.png)

---

#### Dynamic Image `dynamic-image`
Usage:

```
---
layout: dynamic-image
image: 'https://source.unsplash.com/collection/94734566/1920x1080'
equal: true
left: false
---
```

![dynamic-image](screenshot/6-layout-dynamic-image-dark.png)

---

#### Dynamic Image `dynamic-image`
Usage:

```
---
layout: dynamic-image
image: 'https://source.unsplash.com/collection/94734566/1920x1080'
upperImage: 'https://source.unsplash.com/collection/94734566/1920x1080'
equal: true
left: false
---
```

![dynamic-image](screenshot/7-layout-dynamic-image-dark.png)

---

#### Image at center `dynamic-image`
Usage:

```
---
layout: center-image
image: '../assets/images/light-icons-landing2.png'
---
```

![center-image](screenshot/8-layout-center-image-light.png)

---

#### Dynamic Image `dynamic-image`
Usage:

```
---
layout: dynamic-image
image: 'https://source.unsplash.com/collection/94734566/1920x1080'
equal: false
left: false
---
```

![dynamic-image](screenshot/9-layout-dynamic-image-light.png)

---

---

#### Image at left `left-image`
Usage:

```
---
layout: left-image
image: '../assets/images/light-vue-landing.svg'
equal: true
---
```

![image-left](screenshot/10-layout-left-image-light.png)

#### Image at center `dynamic-image`
Usage:

```
---
layout: center-image
---
```

![center-image](screenshot/11-layout-center-image-light.png)

## Components

This theme provides the following components:

### `LightIcon` & `IconBox`
- For using `light-icons` wherever needed inside the theme.
- Also packed with additional `IconBox` to make the icons look elegant.

![dynamic-image](screenshot/9-layout-dynamic-image-light.png)

## Contributing

- `npm install`
- `npm run dev` to start theme preview of `example.md`
- Edit the `example.md` and style to see the changes
- `npm run export` to genreate the preview PDF
- `npm run screenshot` to genrate the preview PNG