Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cu1ch3n/caidan
๐ A clean and minimal food menu template.
https://github.com/cu1ch3n/caidan
Last synced: 6 days ago
JSON representation
๐ A clean and minimal food menu template.
- Host: GitHub
- URL: https://github.com/cu1ch3n/caidan
- Owner: cu1ch3n
- License: mit
- Created: 2024-04-03T02:53:38.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-04T14:28:45.000Z (7 months ago)
- Last Synced: 2024-08-02T06:16:05.024Z (3 months ago)
- Language: Typst
- Homepage:
- Size: 14.7 MB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-typst - caidan - A clean and minimal food menu template. (Templates & Libraries / CV)
README
# Caidan
Caidan (่ๅ in Chinese, /cร i dฤn/, meaning food menu) is a clean and minimal food menu template.
See the [example.pdf] file to see how it looks. Additionally, [cu1ch3n/menu] serves as a practical example project utilizing this template.
## Usage
Ensure that [WebOMints GD], [LXGW WenKai], and [Ysabeau Infant] fonts are installed first. The required fonts are provided in [fonts].
To use this template with typst.app, you may upload the required fonts manually (**Note**: [LXGW WenKai] may be too large to upload onto typst.app).
## Configuration
This template includes the `caidan` function, which comes with several configurable named arguments:
| Argument | Default Value | Type | Description |
| --- | --- | --- | --- |
| `title` | `none` | [content] | The title for your menu |
| `cover_image` | `none` | [content] | The image on the menu's cover page |
| `update_date` | `none` | [datetime] | This date will be displayed on the cover page in both Chinese and English |
| `page_height` | `595.28pt` | [length] | Page height of your menu |
| `page_width` | `841.89pt` | [length] | Page width of your menu |
| `num_columns` | `3` | [int] | The number of columns per page |The function also accepts a single, positional argument for the body.
## Example
```typ
#import "@preview/caidan:0.1.0": *#show: caidan.with(
title: [#en_text(22pt, fill: nord0)[Chen's Private Cuisine]],
cover_image: image("cover.png"),
update_date: datetime.today(),
num_columns: 3,
)#cuisine[้ฒ่][Shandong Cuisine]
- #item[่ฑ็งๆตทๅ][Braised Sea Cucumber w/ Scallions]
- #item[่ฑ็็่][Scallion Beef Stir-Fry]
- #item[้ๆบ็ฝ่][Napa Cabbage Stir-Fry w/ Vinegar]#cuisine[ๅท่][Sichuan Cuisine]
- #item[ๅฎซไฟ้ธกไธ][Gong Bao Chicken]
- #item[ๅ้ ่][Twice-cooked pork]
- #item[้บปๅฉ่ฑ่ ][Mapo Tofu]
```
[example.pdf]: https://github.com/cu1ch3n/caidan/blob/main/example.pdf
[cu1ch3n/menu]: https://github.com/cu1ch3n/menu
[fonts]: https://github.com/cu1ch3n/caidan/tree/main/fonts
[content]: https://typst.app/docs/reference/foundations/content/
[datetime]: https://typst.app/docs/reference/foundations/datetime/
[length]: https://typst.app/docs/reference/layout/length/
[int]: https://typst.app/docs/reference/foundations/int/
[WebOMints GD]: http://www.galapagosdesign.com/original/webomints.htm
[LXGW WenKai]: https://github.com/lxgw/LxgwWenKai
[Ysabeau Infant]: https://fonts.google.com/specimen/Ysabeau+Infant