Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lumeland/icon-plugins
Lume plugins to get icons from different collections
https://github.com/lumeland/icon-plugins
icons lume lume-plugin
Last synced: 3 months ago
JSON representation
Lume plugins to get icons from different collections
- Host: GitHub
- URL: https://github.com/lumeland/icon-plugins
- Owner: lumeland
- License: mit
- Created: 2024-06-15T11:57:21.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-09-15T09:24:58.000Z (5 months ago)
- Last Synced: 2024-11-10T02:25:08.465Z (3 months ago)
- Topics: icons, lume, lume-plugin
- Language: TypeScript
- Homepage: https://deno.land/x/lume_icon_plugins
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-lume - Icon plugins
README
# Lume icon plugins
Plugins to work with different icon collections in Lume.
## Usage
### [SimpleIcon](https://simpleicons.org/)
```ts
import lume from "lume/mod.ts";
import simpleIcons from "lume_icon_plugins/simpleicons.ts";const site = lume();
site.use(simpleIcons());
export site;
```In your templates:
```
{{ "facebook" |> simpleicons }} # SVG code of the icon
{{ "facebook" |> simpleicons("hex") }} # Returns icon info (hex color in this example)
```### [Phosphor](https://phosphoricons.com/)
```ts
import lume from "lume/mod.ts";
import phosphor from "lume_icon_plugins/phosphor.ts";const site = lume();
site.use(phosphor());
export site;
```In your templates:
```
{{ "acorn" |> phosphor }} # SVG code of the icon
{{ "acorn" |> phosphor("duotone") }} # Returns the icon with duotone style
```### [Heroicons](https://heroicons.com/)
```ts
import lume from "lume/mod.ts";
import heroicons from "lume_icon_plugins/heroicons.ts";const site = lume();
site.use(heroicons());
export site;
```In your templates:
```
{{ "face-smile" |> heroicons }} # SVG code of the icon
{{ "face-smile" |> heroicons("outline") }} # Returns the icon with outline style
```### [Material icons](https://fonts.google.com/icons?icon.set=Material+Icons)
> [!note]
>
> Material icons are deprecated. Use Material Symbols instead.```ts
import lume from "lume/mod.ts";
import material from "lume_icon_plugins/material.ts";const site = lume();
site.use(material());
export site;
```In your templates:
```
{{ "home" |> material }} # SVG code of the icon
{{ "home" |> material("rounded") }} # Returns the icon with rounded style
```### [Material symbols](https://fonts.google.com/icons?icon.set=Material+Symbols)
```ts
import lume from "lume/mod.ts";
import material from "lume_icon_plugins/material_symbols.ts";const site = lume();
site.use(material());
export site;
```In your templates:
```
{{ "home" |> material }} # SVG code of the icon
{{ "home" |> material("rounded") }} # Returns the icon with rounded style
```### [Lucide](https://lucide.dev/)
```ts
import lume from "lume/mod.ts";
import lucide from "lume_icon_plugins/lucide.ts";const site = lume();
site.use(lucide());
export site;
```In your templates:
```
{{ "activity" |> lucide }} # SVG code of the icon
```### [Tabler](https://tabler.io/icons)
```ts
import lume from "lume/mod.ts";
import tabler from "lume_icon_plugins/tabler.ts";const site = lume();
site.use(tabler());
export site;
```In your templates:
```
{{ "ad-circle" |> tabler }} # SVG code of the icon
```### [MingCute](https://www.mingcute.com/)
```ts
import lume from "lume/mod.ts";
import mingcute from "lume_icon_plugins/mingcute.ts";const site = lume();
site.use(mingcute());
export site;
```In your templates:
```
{{ "arrow/align_arrow_up_fill" |> mingcute }} # SVG code of the icon
```### [Remix](https://remixicon.com/)
```ts
import lume from "lume/mod.ts";
import remix from "lume_icon_plugins/remix.ts";const site = lume();
site.use(remix());
export site;
```In your templates:
```
{{ "arrows/arrow-up-fill" |> remix }} # SVG code of the icon
```### [Bootstrap](https://icons.getbootstrap.com/)
```ts
import lume from "lume/mod.ts";
import bootstrap from "lume_icon_plugins/bootstrap.ts";const site = lume();
site.use(bootstrap());
export site;
```In your templates:
```
{{ "0-circle" |> bootstrap }} # SVG code of the icon
```