b

booticons

@preview

A Typst library for Bootstrap icons.

v0.0.1
MIT

Package Information

Last Updated
Categories
components

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/booticons:0.0.1

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/booticons:0.0.1": *

Version History

0.0.1
6f2638251dc5...

Bootstrap Icons for Typst

The booticons package is a bundle of Bootstrap icons.
Bootstrap icons is a collection of icons provided by the Bootstrap project with over 2000 icons.

A full list of icons is provided at https://icons.getbootstrap.com/.
This typst package uses version v1.13.1 of the Bootstrap icons.

Usage

#import "@preview/booticons:0.0.1": bsicons

Minimal Working Example

#import "@preview/booticons:0.0.1": bsicons
#show link: underline

Weather Conditions: #bsicon("cloud-fog2-fill") with some #bsicon("sun-fill", color: color.hsl(51deg, 100%, 50%))

Mode of Transport: #bsicon("airplane", color: red)

A very large checkbox:

#bsicon("check2-square", height: 3em, color: rgb("#ff0000"))


// define a function that adds the Github icon before the URL
#let gh-link(src) = {
  link(src)[#bsicon("github") #src]
}
Find the source of this project at #gh-link("https://github.com/DavZim/booticons")

Which will generate this PDF.

Screenshot of the PDF with icons

Contribution

You are welcome to open an issue if you find any error or open a pull request if you feel any functionality is missing.

License

This package is licensed under the MIT license, the same license that the Bootstrap project uses.