s

sicons

@preview

SVG icons for popular brands

v16.0.0
MIT

Package Information

Last Updated
Minimum Typst Version
0.14.0
Categories
utilitycomponents
Disciplines
design

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/sicons:16.0.0

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/sicons:16.0.0": *

Version History

16.0.00.14.0
90263374850e...
15.13.00.13.1
225ed352d544...
15.12.00.13.1
b4b0725961a3...
simpleicons-rs banner

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")

Example page of sicons

License

This package is under MIT LICENSE

Simple Icons is under CC0-1.0 and additional legal disclaimer