Create project in app Supported
In your terminal, launch
typst init @preview/sns-polylux-theme:0.1.0
Then, download the required fonts
- Roboto
- Raleway and put them into a folder; Make them available to the Typst compiler.
Supported sns-theme
options
aspect-ratio
(default:16-9
). Also supported4-3
.title
(default:none
): presentation title.subtitle
(default:none
): presentation subtitle.event
(default:none
): presentation date and institute.short-title
andshort-event
(default:title
andevent
, respectively).logo-1
(default:none
). The logo must have a light color.logo-2
(default:none
). The logo must have a dark color.authors
(default:none
). It must be an array. Its elements are placed with a small horizontal displacement.txt-font
(defaultRoboto
): text font.title-font
(defaultRaleway
): title text font.txt-color1
(defaultblack
): main text color.txt-color2
(defaultwhilte
): second text color.title-color
(defaultrbg(#444444)
): title text color.size
(default20pt
): text size.bkgnd-color
(defaultwhite
): background color.colormap
(defaultsns-theme_sns-colormap
). Use something other thansns-theme_sns-colormap
andsns-theme_unipi-colormap
at your own risk. It wants an at least 6 elements array of colors.
Supported functions
title-slide(body: none)
. It produces the title slide. That doesn’t affect page counter.slide(title: none, subtitle: none, new-sec: false, body)
. Ifnew-sec
istrue
, a new section with the nametitle
is created. Ifnew-sec
is a string/a content, a new section is created and its name isnew-sec
.focus-slide(new-sec: none, body)
. It produces a focus slide. Ifnew-sec
is notnone
, a new section with the namenew-sec
is created.toc-slide()
. It produces the Table of Contents. That doesn’t affect page counter.new-section-slide(name)
. It creates a new section which name isname
. That doesn’t affect page counter.empty-slide(body)
. It creates a new empty slide. That doesn’t affect page counter.