diff --git a/README.md b/README.md index a4afc72..c5c1c3f 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ + +

- - - Banner + + + Banner

diff --git a/gallery.bash b/gallery.bash index cc3cdf6..7633ce6 100644 --- a/gallery.bash +++ b/gallery.bash @@ -1,4 +1,5 @@ #!/bin/bash -typst c --root=. --input dark=false gallery/readme_banner.typ gallery/readme_banner.svg -typst c --root=. --input dark=true gallery/readme_banner.typ gallery/readme_banner_dark.svg \ No newline at end of file +typst c --root=. --input theme=default gallery/readme_banner.typ gallery/readme_banner_default.svg +typst c --root=. --input theme=light gallery/readme_banner.typ gallery/readme_banner_light.svg +typst c --root=. --input theme=dark gallery/readme_banner.typ gallery/readme_banner_dark.svg \ No newline at end of file diff --git a/gallery/readme_banner.typ b/gallery/readme_banner.typ index 7f283de..6296018 100644 --- a/gallery/readme_banner.typ +++ b/gallery/readme_banner.typ @@ -1,18 +1,18 @@ #import "/src/lib.typ": * -#let dark = sys.inputs.at("dark", default: "false") == "true" +#let theme = sys.inputs.at("theme", default: "default") #set page( width: auto, height: auto, margin: 1cm, - fill: none + fill: if theme == "default" {white} else {none} ) #set text( size: 12pt, font: "Source Sans 3", - fill: if dark {white} else {black} + fill: if theme == "dark" {white} else {black} ) #let hex-abc = "0123456789abcdef" diff --git a/gallery/readme_banner_default.svg b/gallery/readme_banner_default.svg new file mode 100644 index 0000000..78df824 --- /dev/null +++ b/gallery/readme_banner_default.svg @@ -0,0 +1,679 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gallery/readme_banner.svg b/gallery/readme_banner_light.svg similarity index 100% rename from gallery/readme_banner.svg rename to gallery/readme_banner_light.svg