Skip to content

lkoehl/typst-boxes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typst-boxes

Colorful boxes in Typst.

Check out the example project to see all boxes in action

Current features include:

  • a colorful box is 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

colorbox_example

Usage

#colorbox(
  title: lorem(5),
  color: "blue",
  radius: 2pt,
  width: auto
)[
  #lorem(50)
]

Slanted Colorbox

slantedColorbox_example

Usage

#slanted-colorbox(
  title: lorem(5),
  color: "red",
  radius: 0pt,
  width: auto
)[
  #lorem(50)
]

Outline Colorbox

outlinebox_example

Usage

#outline-colorbox(
  title: lorem(5),
  width: auto,
  radius: 2pt,
  centering: false
)[
  #lorem(50)
]

#outline-colorbox(
  title: lorem(5),
  color: "green",
  width: auto,
  radius: 2pt,
  centering: true
)[
  #lorem(50)
]

Stickybox

stickybox

Usage

#stickybox(
  rotation: 5deg,
  width: 5cm
)[
  #lorem(20)
]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages