UNPKG

@elgato/icons

Version:

Icons used throughout the Elgato ecosystem.

104 lines (73 loc) 4.58 kB
<div align="center"> [![Elgato icons banner](https://raw.githubusercontent.com/elgatosf/icons/refs/heads/main/assets/banner.png)](https://docs.elgato.com/resources/icons) # Elgato Icons [![Elgato homepage](https://img.shields.io/badge/Elgato-3431cf?labelColor=grey&logo=data:image/svg+xml;base64,PHN2ZyByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+RWxnYXRvPC90aXRsZT48cGF0aCBmaWxsPSIjZmZmZmZmIiBkPSJtMTMuODgxOCA4LjM5NjQuMDI2MS4wMTk2IDkuOTQ5NCA1LjcxNzJjLS40ODg0IDIuNzI5LTEuOTE5NiA1LjIyMjMtNC4wMzg0IDcuMDI1M0ExMS45MjYyIDExLjkyNjIgMCAwIDEgMTIuMDk3IDI0Yy0zLjE5MjUgMC02LjE5MzktMS4yNDc3LTguNDUyNy0zLjUxNDRDMS4zODY4IDE4LjIxODguMTQyNyAxNS4yMDQ0LjE0MjcgMTJjMC0zLjIwNDIgMS4yNDQtNi4yMTg3IDMuNTAxNS04LjQ4NTRDNS45MDE5IDEuMjQ4IDguOTAzMiAwIDEyLjA5NyAwYzIuNDM5NCAwIDQuNzg0Ny43MzMzIDYuNzgzIDIuMTE4NyAxLjk1MjYgMS4zNTQgMy40NDY2IDMuMjM1NyA0LjMyMjcgNS40NDIyLjExMTIuMjgyOS4yMTQ5LjU3MzYuMzA1MS44NjU3bC0yLjEyNTUgMS4yMzU5YTkuNDkyNCA5LjQ5MjQgMCAwIDAtLjI2MTktLjg2OTRjLTEuMzU0LTMuODMwMy00Ljk4MTMtNi40MDQ4LTkuMDIzNy02LjQwNDhDNi44MTcxIDIuMzg4MyAyLjUyMiA2LjcwMDUgMi41MjIgMTJjMCA1LjI5OTUgNC4yOTUgOS42MTE1IDkuNTc0OCA5LjYxMTUgMi4wNTIgMCA0LjAwODQtLjY0NDIgNS42NTk2LTEuODY0NyAxLjYxNzItMS4xOTU1IDIuODAzNi0yLjgzMzcgMy40MzA5LTQuNzM2NGwuMDA2NS0uMDQxOUw5LjU5MDYgOC4zMDQ4djcuMjI1Nmw0LjAwMDQtMi4zMTM4IDIuMDYgMS4xODExLTUuOTk2MiAzLjQ2ODgtMi4xMi0xLjIxMjZWNy4xOTQzbDIuMTE3NC0xLjIyNDUgNC4yMzA5IDIuNDI3OS0uMDAxMy0uMDAxMyIvPjwvc3ZnPg==)](https://elgato.com) [![Join the Marketplace Makers Discord](https://img.shields.io/badge/Marketplace%20Makers-5662f6?labelColor=grey&logo=discord&logoColor=white)](https://discord.gg/GehBUcu627) [![Build status](https://img.shields.io/github/actions/workflow/status/elgatosf/icons/build.yml?branch=main&label=Build&logo=GitHub)](https://github.com/elgatosf/icons/actions) </div> Discover icons used throughout the Elgato ecosystem, commonly found in Stream Deck, Wave Link, Camera Hub, Capture, and Marketplace. Mix, match, and curate your own icon packs based on our design language. ## Usage ```bash npm install @elgato/icons ``` ### JavaScript Variables Icons can be imported as SVG strings from `@elgato/icons/{s,m,l}`, for example: ```ts import { iconLogoElgato } from "@elgato/icons/l"; iconLogoElgato; // SVG string of the Elgato logo, large (l) size. ``` Icons are available in up to three sizes, small (s), medium (m), and large (l). - `@elgato/icons/s` — optimized for 16 × 16 px. - `@elgato/icons/m` — optimized for 20 × 20 px. - `@elgato/icons/l` — optimized for 24 × 24 px. ### React Components Icons can be imported as React components from `@elgato/icons/react`, for example ```tsx import { IconLogoElgato } from "@elgato/icons/react"; export default function MyComponent() { return ( <div className="icon-wrapper"> <IconLogoElgato size="m" /> </div> ); }; ``` Icons are available in up to three sizes, small (s), medium (m), and large (l), and the preferred size can be specified using the `size` property. If the preferred size does not exist, the default size will be used. ### SVG Files All original SVG files are distributed with this package, and can be found within the `svg/` directory. ``` . ├── svg/ | └── l/ │ ├── m/ │ ├── s/ | │ ├── ... | │ ├── warning.svg | │ ├── window--filled.svg | │ └── window.svg └── ... ``` ### Font An icon font is distributed in the `font/` directory, in TTF, WOFF, and WOFF2 formats, with a ready-to-use CSS stylesheet. ``` . ├── font/ │ ├── elgato-icons.css │ ├── elgato-icons.ttf │ ├── elgato-icons.woff │ ├── elgato-icons.woff2 │ └── info.json └── ... ``` Import the stylesheet from the package and use icon class names directly: ```ts import "@elgato/icons/font"; ``` Or reference it directly in HTML via a CDN: ```html <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@elgato/icons/font/elgato-icons.css" /> <i class="elgato-icons-accessories-l"></i> <i class="elgato-icons-camera-l"></i> <i class="elgato-icons-settings-l"></i> ``` Class names follow the patterns `elgato-icons-{icon-name}-{size}` for regular icons and `elgato-icons-{icon-name}--filled-{size}` for filled variants, where `{size}` is one of `l`, `m`, or `s`. A full mapping of icon names (including filled variants) to unicode code points can be found in `font/info.json`.