commit a0397ba4416fe25d60975b3ffee5d91982fb6550 Author: gapato Date: Sun Jul 19 20:22:53 2026 +0200 import diff --git a/src/lib.typ b/src/lib.typ new file mode 100644 index 0000000..ff8645f --- /dev/null +++ b/src/lib.typ @@ -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 +} diff --git a/typst.toml b/typst.toml new file mode 100644 index 0000000..fe40dca --- /dev/null +++ b/typst.toml @@ -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"