Skip to content

A Typst theme for a nice and simple looking letter that's not completely black and white

Notifications You must be signed in to change notification settings

edgarogh/f4f1eb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

f4f1eb

yes name-choosing is hard

A Typst theme for a nice and simple looking letter that's not completely black and white. Inspired by a Canva theme.

Features:

  • A neutral-warm beige background that feels cosier and softer to the eyes than pure white, while still looking kinda white-ish
  • Short content is vertically padded to look a bit more centered
  • Long content overflows gracefully on as many pages as necessary
Basic example Short text (vertically centered) Multi-page overflowing text
_rendered/demo_medium.pdf _rendered/demo_short.pdf _rendered/demo_long.pdf

Usage

  • If using Typst locally, install the HK Grotesk font
  • Move template.typ in the same directory as your entry point file (usually main.typ)
  • Insert the setup show statement
    #import "template.typ": *
    
    #show: project.with(
      title: [Anakin \ Skywalker],
      from_details: [
        Appt. x, \
        Mos Espa, \
        Tatooine \
        anakin\@example.com \ +999 xxxx xxx
      ],
      to_details: [
        Sheev Palpatine \
        500 Republica, \
        Ambassadorial Sector, Senate District, \
        Galactic City, \ Coruscant
      ],
    )
    
    Dear Emperor, ...
  • If your text overflows on multiple pages, you might want to add page numbering, as shown in demo_long.typ (line 3)
  • Don't hesitate to edit the template if it doesn't exactly fit your needs

Parameters

  background: rgb("f4f1eb"), # Override the background color (why would you :sad:)
  title: "",                 # Set the top-left title. It looks best on two lines
  from_details: none,        # Letter sender (you) details
  to_details: none,          # Letter receiver details
  margin: 2.1cm,             # Page margin
  vertical_center_level: 2,  # When the content is small, it is vertically centered a bit, but still kept closer to the top. This controls how much. Setting to none will disable centering.
  body

License

About

A Typst theme for a nice and simple looking letter that's not completely black and white

Topics

Resources

Stars

Watchers

Forks