diff --git a/README.md b/README.md index 5daabc0..f1ddd71 100755 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Each document is styled using this package! In your project, import the package (be sure to replace the version number with the correct one) with ```typst -#import "@preview/catppuccin:1.0.1": catppuccin, flavors +#import "@preview/catppuccin:1.1.0": catppuccin, flavors ``` To format your document with a theme, use the following syntax towards the top of your document: @@ -66,7 +66,7 @@ Replace `mocha` with the flavour of your choice! This can also be passed as a st For users who wish to further extend their documents, graphics, or packages, you can access each flavor's palette to directly use the colors in your own code. ```typst -#import "@preview/catppuccin:1.0.1": flavors, get-flavor +#import "@preview/catppuccin:1.1.0": flavors, get-flavor #let flavor = get-flavor("mocha") // or: #let flavor = flavors.mocha diff --git a/assets/previews/frappe.webp b/assets/previews/frappe.webp index 9b89e3e..c552eae 100644 Binary files a/assets/previews/frappe.webp and b/assets/previews/frappe.webp differ diff --git a/assets/previews/latte.webp b/assets/previews/latte.webp index b984042..eb23d91 100644 Binary files a/assets/previews/latte.webp and b/assets/previews/latte.webp differ diff --git a/assets/previews/macchiato.webp b/assets/previews/macchiato.webp index 1ef7aad..1e1f7ef 100644 Binary files a/assets/previews/macchiato.webp and b/assets/previews/macchiato.webp differ diff --git a/assets/previews/mocha.webp b/assets/previews/mocha.webp index befb4e6..c1e772a 100644 Binary files a/assets/previews/mocha.webp and b/assets/previews/mocha.webp differ diff --git a/assets/previews/preview.webp b/assets/previews/preview.webp index aebbfc6..fd5d0de 100644 Binary files a/assets/previews/preview.webp and b/assets/previews/preview.webp differ diff --git a/examples/code.typ b/examples/code.typ index 04f47d1..5c5095a 100644 --- a/examples/code.typ +++ b/examples/code.typ @@ -5,7 +5,7 @@ Using catppuccin for syntax highlighting: ```typ -#import "@preview/catppuccin:1.0.1": config-code-blocks, flavors -#show: config-code-blocks.with(flavors.mocha) +#import "@preview/catppuccin:1.0.1": set-code-theme, flavors +#show: set-code-theme.with(flavors.mocha) ``` diff --git a/examples/demo.typ b/examples/demo.typ index 2ef903e..07c9a33 100644 --- a/examples/demo.typ +++ b/examples/demo.typ @@ -55,8 +55,9 @@ Typst makes it very easy to customise the look of your documents. Inspiration -for this project came from Catppuccin for #LaTeX [#link("https://github.com/catppuccin/latex")[#text(fill: palette.colors.blue.rgb, "link")]]. This doument is currently -using the flavor #text(fill: palette.colors.mauve.rgb, style: "italic", flavor). +for this project came from Catppuccin for #LaTeX +[#link("https://github.com/catppuccin/latex")[#text(fill: palette.colors.blue.rgb, "link")]]. +This document is currently using the flavor #text(fill: palette.colors.mauve.rgb, style: "italic", flavors.at(flavor).name). === Accents #align(center, grid(columns: 7, align: left, gutter: 1em, ..color-swatches( diff --git a/manual/manual_latte.pdf b/manual/manual_latte.pdf index 1eea09d..9a5b885 100644 Binary files a/manual/manual_latte.pdf and b/manual/manual_latte.pdf differ diff --git a/manual/manual_mocha.pdf b/manual/manual_mocha.pdf index 619657c..ce0e7f0 100644 Binary files a/manual/manual_mocha.pdf and b/manual/manual_mocha.pdf differ diff --git a/typst.toml b/typst.toml index e6f22f5..d29c0a4 100644 --- a/typst.toml +++ b/typst.toml @@ -1,6 +1,6 @@ [package] name = "catppuccin" -version = "1.0.1" +version = "1.1.0" compiler = "0.11.0" entrypoint = "src/lib.typ" repository = "https://github.com/catppuccin/typst"