Themes

1. Nord

I love the Nord theme. Unfortunately, I’m terrible at adopting themes. Nevertheless, I spent a bit of effort to make my documents use the colors of the Nord theme. The theme is located at themes/nord-theme.yml.

1.1. Usage

The simplest way to use the theme, is to call the script scripts/create-pdf-with-nord-theme.sh and pass your AsciiDoc file as argument to it.

./scripts/create-pdf-with-nord-theme.sh your-article.adoc

Read Scripts and take a look at the source of the script to learn more about the script.

1.2. Features

The theme extends the theme default-with-fallback-font with colors and styling that kinda match the Nord theme.

The theme uses the font Noto Sans for regular text and Jetbrains Mono for code.

The theme defines sixteen roles named according to the sixteen colors in the Nord color palette: nord0, nord1, …​ until …​, nord15. Use the roles to customize the font color of paragraphs or inline phrases. For paragraphs, prepend the entire paragraph with [.nord12]. For inline phrases, wrap your inline phrase as follows: [.nord12]#your inline phrase#.

Sometimes, I wish for more shades of gray between nord3 and nord4. nord3 seems too dark and nord4 too bright. So, I defined three more roles to bridge the gap between nord3 and nord4. The three roles are:

  • harmen-nord3-dot25 (#6F788A)

  • harmen-nord3-dot50 (#929AAA)

  • harmen-nord3-dot75 (#B5BCC9)