Skip to content

hebstr/quarto-hebstr-doc

Repository files navigation

hebstr-doc

Render Pages Release License: MIT

A Quarto theme for HTML, Typst (PDF), and Word (DOCX) output.

Status (v1.0.0): HTML is operational. Typst and DOCX are declared but not yet validated.

Installation

quarto add hebstr/quarto-hebstr-doc

Usage

---
title: "My Document"
format: hebstr-doc-html
---

Customization

Frontmatter

Common overrides in _quarto.yml:

format:
  hebstr-doc-html:
    mainfont: "Inter"
    fontsize: 1rem
    linestretch: 1.6
    page-layout: article
    toc-depth: 2
    grid:
      body-width: 900px
      margin-width: 300px

Brand colors via _brand.yml

color:
  palette:
    primary: "#0099FF"
    secondary: "#FF0000"

See Quarto Brand for the full schema.

SCSS overrides

Create a custom.scss and place it last in the theme: key:

format:
  hebstr-doc-html:
    theme:
      light: [theme-light.scss, theme-base.scss, custom.scss]
      dark:  [theme-dark.scss,  theme-base.scss, custom.scss]

All overridable variables are listed in CONTRIBUTING.md.

Example

Source: example.qmd — live demo at hebstr.github.io/quarto-hebstr-doc.

quarto render example.qmd

License

MIT