From a0397ba4416fe25d60975b3ffee5d91982fb6550 Mon Sep 17 00:00:00 2001 From: gapato Date: Sun, 19 Jul 2026 20:22:53 +0200 Subject: [PATCH] import --- src/lib.typ | 7 +++++++ typst.toml | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/lib.typ create mode 100644 typst.toml 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"