Skip to content

cscnk52/simple-icons-typst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simpleicons-rs banner

simple-icons-typst

Access High quality Simple Icons SVGs from Typst.

Note

Since the compiled WASM module is relatively large (~5 MB), this package is only updated with new major releases of Simple Icons.

Note

For previous user with package name "sicons", i'm trying move package name to "simple-icons", for better consistent, will be changed in v17.0.0(about release in May 2026)

Usage

Function:

  • simple-icon: return icon in SVG format
  • simple-title: return icon name
  • simple-label: return icon and name
  • simple-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

#simple-icon(slug: "typst", size: 1em, icon-color: "default")

#simple-title(slug: "typst", size: 1em, text-color: "#000000")

#simple-label(slug: "typst", size: 1em,icon-color: "default", text-color: "#000000")

#simple-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

About

Typst Simple Icons Package

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 2

  •  
  •