Colorful boxes in Typst. Copy and import the typst-boxes.typ file to use in your own projects.
Check out the example project to see all boxes in action.
Current features include:
- a colorful box in four different colors (black, red, blue, green)
- a colorful box with a slanted headline
- a box with a simple outline
- a rotateable stickynote
#colorbox(
title: lorem(5),
color: "blue",
radius: 2pt,
width: auto
)[
#lorem(50)
]
#slantedColorbox(
title: lorem(5),
color: "red",
radius: 0pt,
width: auto
)[
#lorem(50)
]
#outlinebox(
title: lorem(5),
color: none,
width: auto,
radius: 2pt,
centering: false
)[
#lorem(50)
]
#outlinebox(
title: lorem(5),
color: "green",
width: auto,
radius: 2pt,
centering: true
)[
#lorem(50)
]
#stickybox(
rotation: 3deg,
width: 7cm
)[
#lorem(20)
]