Using Other Typst Packages
You can add any Typst packages into your document using the package import syntax:
#import "@preview/my-package:version": foo, bar
Many packages are available in the Typst Universe. Go check them out!
Package Support
Packages have varying levels of HTML support. If you generally use Haita for the PDF export, this won’t be a major problem. If you use Haita primarily for HTML export, check if your package supports HTML.
Additionally, if you draw diagrams with Typst, it is a good idea to wrap your diagram in html.frame(). In HTML export, it turns the content into an SVG illustration that gets embedded into your HTML page; in PDF export, this emits regular PDF content.
#let cetz-illustration = { /* Draw your content here */ }
#figure(caption: [Your Caption], html.frame(cetz-illustration))
Integration with Tidy
Tidy is a Typst documentation tool. Haita’s default theme, New Hamber, provides built-in integration for rendering Tidy modules.