Package Information
- Last Updated
- Minimum Typst Version
- 0.14.0
- Authors
- Cason Kervis
- Categories
- utilitycomponents
- Disciplines
- design
1. Get the package
Download the package using the TPIX CLI:
tpix get @preview/sicons:16.0.02. Import in your Typst file
Add this to your .typ file:
#import "@preview/sicons:16.0.0": *Version History
sicons
Access High quality Simple Icons SVGs from Typst.
Since the compiled WASM module is relatively large (~5 MB), this package is only updated with new major releases of Simple Icons.
Usage
Function:
- sicon: return icon in SVG format
- stitle: return icon name
- sicon-label: return icon and name
- sicon-raw: return Icon SVG code
Parameters:
- slug: icon slug, can be found at https://simpleicons.org
- size: the icon size
- icon-color: icons hex color, default is "default", representation Simple Icons Color
- text-color: text color, default to
#000000
Example
#import "@preview/sicons:16.0.0": *
= typst sicons package Example
#sicon(slug: "typst", size: 1em, icon-color: "default")
#stitle(slug: "typst", size: 1em, text-color: "#000000")
#sicon-label(slug: "typst", size: 1em,icon-color: "default", text-color: "#000000")
#sicon-raw(slug: "typst")
License
This package is under MIT LICENSE
Simple Icons is under CC0-1.0 and additional legal disclaimer