p

pillole

@preview

Multi-line bi-colored GitLab-style scoped labels (pills).

v0.1.0
MIT

Package Information

Last Updated
Minimum Typst Version
0.14.0
Categories
components

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/pillole:0.1.0

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/pillole:0.1.0": *

Version History

0.1.00.14.0
780a0ebc93b2...

Pillole

Multi-line bi-colored "pills" (GitLab-style scoped labels) for Typst.

Compact, breakable two-part labels with a key/value structure, rounded
end-caps, and a square-cornered, breakable middle that flows naturally across
line breaks.

The name "pillole" is Italian for "pills", and is pronounced like "pill-oh-leh".

Usage

Import from the Typst package registry:

#import "@preview/pillole:0.1.0": pill

A #pill("priority")[critical] item should be done first.

You can also pass the value as a trailing block: #pill("env")[prod].

Change the colors via the `primary` and `secondary` arguments:
#pill("status", primary: rgb("#386641"))[ready].
Pick a fully-rounded shape: #pill("tag", radius: 100%)[round].

Documentation

See manual.pdf for the full manual: every option, more
examples, and the current known limitations.

License

MIT.