This commit is contained in:
gapato 2026-07-19 20:22:53 +02:00
commit a0397ba441
2 changed files with 17 additions and 0 deletions

7
src/lib.typ Normal file
View file

@ -0,0 +1,7 @@
#let var-font-setup(font: "Nunito Sans 12pt", normal-weight: 100, bold-weight: 700, body) = {
set text(font: font, variations: (wght: normal-weight))
show strong: set text(variations: (wght: bold-weight))
show heading: set text(variations: (wght: bold-weight))
body
}

10
typst.toml Normal file
View file

@ -0,0 +1,10 @@
[package]
name = "var-font-setup"
version = "0.0.1"
entrypoint = "src/lib.typ"
authors = ["Gaspard Jankowiak"]
license = "MIT"
description = "Set defaults to use Nunito Sans variable font"
repository = ""
categories = ["utility"]
compiler = "0.15.0"