Typography

Good typography isn’t just about looking nice—it’s about helping readers understand and engage with your content. Well-chosen typefaces, clear hierarchies, and thoughtful spacing guide readers through your ideas, highlight what matters, and make complex information easier to process.

Typography helps readers in three key ways:

Visual hierarchy - Different heading sizes, weights, and styles show readers how your content is organized. First-level headings signal major topics, smaller headings introduce subsections, and pull quotes emphasize key ideas. This structure helps readers scan, navigate, and find what they need.

Readability and flow - Proper line length, spacing, and font choices reduce eye strain and keep readers engaged. Text that’s too long per line (over 75 characters) forces tiring eye movements. Text that’s too cramped feels dense and uninviting. Good typography creates comfortable reading rhythms.

Emphasis and attention - Strategic use of blockquotes, pull quotes, and text styles draws the eye to important passages without overwhelming the page. These elements break up long text, provide visual interest, and guide attention to your most compelling ideas.

This page shows you how to use Xanthan’s typographic features to make your content clear, engaging, and visually organized. Each section includes code examples (in green boxes) followed by live demonstrations of the feature. For image-related typography and captions, see the image guide.


Headings

It’s useful to divide even small pages into clear sections with informative section headings. Longer pages may need several levels of headings. You can easily create headings by using the # character in front of your headings. A single # is the largest, for top-level headings, ## gives you a slightly smaller heading, etc. The code in the box below produces the headers and text just below it.

## Second-level heading
You can see the font size is a little smaller than the top-level heading at the top of the page.

### Third-level heading
And this one is a little smaller...

#### Fourth-level heading
Etc...

Second-level heading

You can see the font size is a little smaller than the top-level heading at the top of the page.

Third-level heading

And this one is a little smaller…

Fourth-level heading

Etc…


Editorial Rhythm

Most pages do not need fancy typography. They do need rhythm: a strong opening, clear transitions, and occasional moments that tell the reader, “this part matters.” Xanthan includes a few simple CSS classes for that work. They are ordinary Markdown/HTML classes, not includes, so you can use them without learning new component syntax.

Lede paragraph

Use a lede for the opening paragraph of an essay, homepage section, or project description. It gives the first paragraph more presence without changing the whole page.

{: .lede}
This project asks what public history looks like when students write for readers beyond the classroom.

This project asks what public history looks like when students write for readers beyond the classroom.

Section intro

Use a section intro after a heading when you want to frame what follows. It is quieter than a lede, but more deliberate than a normal paragraph.

## Collaborative Work

{: .section-intro}
These pages show how a class project can become a shared public archive rather than a stack of isolated assignments.

These pages show how a class project can become a shared public archive rather than a stack of isolated assignments.

Field note or evidence note

Use a field note for contextual asides, source notes, or editorial explanations that should stay close to the argument.

{: .field-note}
This image comes from a student-built archive. The caption should explain what the reader can learn from it, not just identify what it shows.

This image comes from a student-built archive. The caption should explain what the reader can learn from it, not just identify what it shows.

Metadata strip

Use a metadata strip when the page needs compact context: course, author, date, project type, or status.

{: .metadata-strip}
Course: HIST 300 | Project type: Collaborative archive | Status: In progress

Feature band

Use a feature band when a section deserves a stronger visual break. It is useful for major claims, calls to action, or a short cluster of links. Because it is a wrapper, write it with HTML and keep the content inside simple Markdown or HTML.

<div class="feature-band">
  <h2>A Stronger Section</h2>
  <p>This band creates a deliberate pause without adding ornament or a new component.</p>
</div>

A Stronger Section

This band creates a deliberate pause without adding ornament or a new component.

Use these sparingly. The goal is not to decorate every paragraph. The goal is to give a page a few editorial decisions that readers can feel.


Pull Quotes

Pull quotes highlight a key passage from your text: a memorable phrase, a central argument, a line worth making the reader pause on. They are editorial callouts, not source quotations. Place them between paragraphs for visual emphasis.

{% include typography/pullquote.html
  text="Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Fusce id purus."
%}

The pull quote appears centered at 70% width between your paragraphs. Content before and after it flows normally at full width.

Block Quotes

Use blockquotes for quoted material from another source. Xanthan does not need an include for this. Markdown already gives you the right HTML element: start the line with a greater-than sign.

> Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Fusce id purus. Ut varius tincidunt libero. Phasellus dolor. Maecenas vestibulum mollis diam. Pellentesque ut neque.

Here is some regular text in the flow of the page.

Here is my very interesting quote. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Fusce id purus. Ut varius tincidunt libero. Phasellus dolor. Maecenas vestibulum mollis diam. Pellentesque ut neque.

And back to the regular text.

To change how blockquotes look across the site, edit the blockquote rule in assets/css/typography.css. That CSS applies to every Markdown blockquote:

blockquote {
  max-width: 80%;
  margin: var(--spacing-sm) auto;
  padding: var(--spacing-xs);
  border-left: 4px solid var(--text-muted);
}

Footnotes

Academic and research writing relies on citations to show sources, provide context, and establish credibility. Xanthan’s footnotes appear as clickable numbered buttons1 that open elegant popup windows—no need to scroll to the bottom of the page.

Perfect for:

How to Create Footnotes

Creating footnotes requires two simple steps:

Step 1: Place a footnote reference where you want the numbered button to appear. Use the format [^identifier] where identifier is a unique name (like source1, smith2020, or methodology-note).

Academic research shows significant effects.[^smith2020]

Step 2: Define the footnote content anywhere in your document (typically at the end of a section or the full document). Use the same identifier with a colon and your note text:

[^smith2020]: Smith, J. (2020). "Research Methods in Digital Humanities." _Journal of DH_, 15(2), 45-67.

Complete Example

The study examined three primary sources[^sources] and found compelling evidence.[^results]

Later analysis confirmed these findings.[^confirmation]

[^sources]: Letters from the National Archives (1891-1895), Census records (1890, 1900), and contemporary newspaper accounts from the _Daily Tribune_.

[^results]: Success rates increased 47% compared to the control group (p < 0.01).

[^confirmation]: See Johnson (2019) for independent verification of these results.

The study examined three primary sources2 and found compelling evidence.3

Later analysis confirmed these findings.4

Key features:

  1. Like this! Click any footnote number to see the citation in a popup. Click again to close it. 

  2. Letters from the National Archives (1891-1895), Census records (1890, 1900), and contemporary newspaper accounts from the Daily Tribune

  3. Success rates increased 47% compared to the control group (p < 0.01). 

  4. See Johnson (2019) for independent verification of these results.