Universe

Box shadows for Typst.

Usage

#import "@preview/shadowed:0.1.0": shadowed

#set par(justify: true)

#shadowed(radius: 4pt, inset: 12pt)[
    #lorem(50)
]

Example

Reference

The shadowed function takes the following arguments:

  • blur: Length - The blur radius of the shadow. Also adds a padding of the same size.
  • radius: Length - The corner radius of the inner block and shadow.
  • color: Color - The color of the shadow.
  • inset: Length - The inset of the inner block.
  • fill: Color - The color of the inner block.

Credits

This project was inspired by Harbinger.