Zettelkasten Forum


[Theme] PrettyFunctional (Regular)

edited April 19 in The Archive

Overview

You may have noticed that The Archive comes with a theme called PrettyFunctional (Basic), and you may have wondered what that (Basic) suffix is all about. As you might have guessed, there is also a better, regular version of the theme, which is what I want to present to you in this thread. This Regular version is currently not bundled with The Archive, because the theming system does not yet support relative font sizes. So here are some instructions on how to set it up on your Mac.

Motivation

Almost all text in books, magazines, and on the web (including this post!) is rendered using a so called variable-width font, in which narrow letters such as "i" take up less space than wide letters such as "m". This feature makes variable-width fonts much more space-efficient and also more pleasant to read. They have, however, one fundamental flaw: You can't really use them for anything that requires spatial layouting like tables, programming code, and such, because you just wind up with an ugly mess of semi-aligned stuff.

Fixed-width fonts, by contrast, are great for layouting text, but they are less space efficient, and their readability does not match that of variable-width fonts.

In most note applications, you either can't change the font at all, or you can only choose a single font, which is then applied to all text. So if you have things such as tables or programming code in your notes, you basically have to go with a fixed-width font for all text.

The Archive's theming system, however, is pretty powerful and allows you to specify a particular font for each type of text element. So, as you might have already anticipated, the core idea behind the PrettyFunctional theme is to combine a functional fixed-width font (specifically, Monaco) for code block and inline code elements with a pretty variable-width font of your choice for all other types of text.

Screenshots

I did a ton of experimenting with different variable-width fonts, and the one I prefer by a significant margin is Apple's San Francisco font. This font comes with macOS, but it is not directly accessible to the user. Fortunately, Apple offers the identical font under the name SF Pro Text as a free download that is very easy to install (see below).

With SF Pro Text, this is how PrettyFunctional (Regular) looks like:

If you prefer not to download SF Pro Text, you can also just use a bundled variable-width font such as Helvetica Neue, which also does not look too bad:

Setup instructions

  1. (Optional) Install SF Pro Text, the recommended font this theme:

    • Go to https://developer.apple.com/fonts/ and click on the blue Download San Francisco Fonts button
    • Inside SF-Font.dmg, go to the SF Pro folder, select either all files or just the ones that start with "SF-Pro-Text" and hit ⌘O to open and then install them in Font Book
  2. Download PrettyFunctional (Regular) from my GitHub page by right-clicking this link and choosing "Save link as" (or whatever it is called in your browser) from the context menu.

  3. In The Archive, go to Preferences->Editing and click the "Open Theme Folder", and then move the "PrettyFunctional (Regular).theme.json" file you just downloaded to the theme folder that just got opened.
  4. Quit and restart The Archive, so that you can choose "PrettyFunctional (Regular)" from the Theme dropdown list at Preferences->Editing.
  5. Now click on the "Change..." button to change the font to "SFProText-Regular, 13pt" (if you chose to install it in step 1) or to "HelveticaNeue, 13pt". You might get a "Bad Taste Ahead" warning that you can safely ignore, because your notes are about to look an order of magnitude nicer than they did with the default "UbuntoMono, 20pt" font. :wink:

Adjusting the fixed-width font size

Currently, you cannot set a particular font for a certain type of text element in the theme file without also specifying a font size. I personally find regular text to be the perfect size with "SF Pro, 13pt". That is why I have set the font for code blocks and inline code to "Monaco, 12pt" in the theme file (Monaco is a little larger than many variable-width fonts, that is why the size is 12 and not 13).

If you prefer your text to be smaller or larger, you can very easily adjust the Monaco font size in the theme file, though: Just open the .json theme file in a text editor of your choice (e.g., BBEdit) and change the 12 in the two "font": { "name": "Monaco", "size": 12 }, lines so that the text size for code blocks and inline code matches the size of the regular text that you set in the preferences. After you have saved your changes, you need to switch to a different theme and back in The Archive for the changes to apply.

Comments

  • This theme is pretty rad. I think it's my favorite, honestly. I use the Basic version for a while now, even with the font painfully downsized, to see how that affects my work, and the colors are just lovely. :heart:

    Author at Zettelkasten.de • http://christiantietze.de/

Sign In or Register to comment.