[idea:site-config]setup2026-08-20

Site-wide configuration

You can configure your rookery by calling a show rule after you import it.

#import "@rookery/core:0.1.0": rookery
#show: rookery.with(
  // IDs are now `note:etal` rather than `idea:etal`
  prefix: "note",
  // a window written inside a windowed idea unfurls one level
  window-depth: 1,
  // the accent every rookery link takes on hover
  theme: (link-color: rgb("#e68c00")),
)

We suggest that you wrap this configuration in a template function that fronts every page:

// template.typ
#import "@rookery/core:0.1.0": rookery
#let template(doc) = {
  show: rookery.with(
    theme: THEME,
    idea-page-template: idea-page,
    window-depth: 1,
    bibliography: BIBLIOGRAPHY,
  )
  doc
}

// ...
// at the start of each file
#
#import "template.typ": template
#show: template
[idea:config-reference]

Argument reference

ParameterDefaultWhat it sets
prefix"idea"The namespace an idea’s ID lives in; non-empty, no : (the separator is added for you). See referencing ideas.
window-depth0How many levels of transclusion are allowed before a window bottoms out as a link to the idea’s own page. 0 allows none. See controlling window depth.
theme(:)The five colors the package will style for you; each key is also a parameter in its own right, and the granular form wins. See theming a rookery.
idea-page-templatenoneYour own chrome for the standalone page rookery mints per idea. See idea template.
bibliographynoneTypst’s own #bibliography arguments, for the single bibliography a rookery’s citations all draw from.
index-pagetrueWhether to mint ideas/index.html, a landing page listing every idea in the rookery. Set it to false where your site already publishes an index of its own.
refstrueWhether rookery installs the show ref: rule that renders @idea:etal as the idea rather than a figure number. Set it to false to keep Typst’s own behaviour, or to install a rule of your own. See hyperlinks.
ref-target"page"Where every @idea:etal in the document lands: "page" on the idea’s standalone page, "anchor" in the context it was hatched in. Ignored when refs is false. See hyperlinks.
syndicatefalseWhether each minted page also carries an <rssfeed:item> beacon, so a feed package can collect your ideas without either package importing the other. Off by default: a package should not write into another’s label namespace unasked. An idea with no date never gets one.
[idea:theming]

Theming a rookery

You can theme rookery using a show rule:

#import "@rookery/core:0.1.0": rookery
#show: rookery.with(
  theme: (
    // the accent every rookery link takes on hover
    link-color: rgb("#e68c00"),
    // the quieter hover a foldable window gets
    fold-color: "rgba(230, 140, 0, .05)",
    // the left rule, where it should not follow `link-color`
    border-color: rgb("#3d3d3d"),
  ),
)

Each key can also be passed as a parameter directly to the rookery function, with will take precedence over the theme dictionary:

#show: rookery.with(
  theme: MY-THEME,
  link-color: rgb("#ffd166"),
)

Every value is either a Typst color or a raw CSS string. Rookery allows a string so that you can specify rgba(...), color-mix(...), var(--your-own) and anything else CSS accepts valid.

    [idea:theme-reference]

    Theme reference

    KeyDefaultWhat it sets
    link-colorrgba(128, 0, 255, .12)The hover background on any rookery link, and the fallback border-color takes when you leave it unset.
    fold-colorrgba(0, 100, 255, .05)The hover background on a foldable window block.
    id-colorgrayThe [idea:etal] ID’s own text.
    date-colorgrayAn idea’s or a window’s date, where it is shown.
    border-colorlink-colorThe left rule that an idea, a window and an outline all carry.
    rule-width2pxHow thick that rule is. The card’s corner is arithmetic against it, so the tab the ID straddles stays shut when you move it.
    pad0.5emThe padding every rookery block measures from—an idea’s box, a window’s, and the indent a nested one takes.
    label-fontmonospaceThe face the [idea:etal] ID is set in, and the outline’s ‘Contents’ title with it. Both are machinery rather than writing, so both leave the prose face behind.
    label-size0.57remThe size of that ID. Load-bearing beyond the label: the tab’s lift, a window’s summary and the footer’s padding are all measured against it, so the corner closes at whatever size you choose. rem rather than em, so it does not shrink again inside a window.
    tags-color(:)One color, or a (text:, background:) pair, per tag—delivered as a rule on .idea-tag-<tag> so it reaches the pill, the outline row’s marker and a search result’s chip alike.
      [idea:class-reference]

      HTML class reference

      You can also style more granularly with your own CSS using the classes below. A trailing * below stands for a family whose members are named in the description.

      ClassWhat it is
      .idea-boxAn idea’s own block where it was written, carrying the left rule and the padding every rookery block nested inside it measures from.
      .idea-head, .idea-tabThe heading group, and the short top rule the ID straddles at the card’s corner.
      .idea, .idea-titleThe idea’s heading element—which carries the anchor an @idea:etal fragment resolves to—and the title text inside it.
      .idea-label, .idea-dateThe [idea:etal] permalink and the date beside it, in a heading, a window summary or prose, wherever either is shown.
      .idea-tag, .idea-tag-<tag>A tag pill in the hat, and one extra class per tag the idea carries. The second reaches every surface that names the tag—the idea’s heading, its box, its outline row, its pill, and a search result’s chip, which JavaScript builds in the browser—so a single rule of your own styles a tag everywhere it shows up.
      .idea-refAn @idea:other reference in prose. See referencing ideas.
      .idea-windowA transclusion, wearing the same rule and indent as .idea-box; the second class .idea-window-plain opts a bare #idea-body out of that box.
      .idea-window-*The fold: -details the <details>, -summary the row you click, -title and -date the two things in that row, -body what folds away under it.
      .idea-outline*A page’s outline: .idea-outline the list at each level of nesting, -title its “Contents” label, -row one row per idea.
      .idea-footnote*An idea’s own footnotes, carried on every surface it appears on: .idea-footnotes the block, -title its label, .idea-footnote-list and .idea-footnote its entries.
      .idea-fn-*-ref the superscript mark in prose, -backlink the way back up to it from the entry.
      .idea-references, .idea-page-refsThe bibliography an idea’s citations draw from, and the page’s own for citations written outside any idea.
      .idea-footer*On an idea page: .idea-footer the ruled-off apparatus under the note, -title the label on each of its sections.
      .idea-context, .idea-backlinksThat footer’s two sections: where the note was written, and the notes pointing at it.
      .idea-page-list, .idea-page-rowA list of pages in either section, and one row in it—a page cannot fold, so it wears a window’s shape without being one.
        [idea:css-reference]

        CSS variable reference

        You can override any value from the theme reference as a CSS variable, as well as other aspects of a rookery’s appearance.

        PropertyDefaultWhat it sets
        --idea-tag-size--idea-label-sizeA tag pill’s font size. Follows the ID’s size unless you separate them.
        --idea-tag-radius999pxA pill’s corner radius.
        --idea-tag-color, --idea-tag-bg--idea-id-color, rgba(128, 128, 128, .18)An untagged-by-tags-color pill’s text and background. Setting tags-color writes these per tag for you.
        --idea-tag-line--idea-border-colorThe tick an outline row draws off the outline’s rule, where the row’s idea carries a tag.
        --idea-external-color--idea-id-colorThe underline an outbound link takes on hover, in a references block or an idea page’s footer—so a link that leaves your rookery reads differently from one that stays in it.
        [idea:idea-template]

        Idea page template

        Each idea in your rookery gets its own page. By default, it shows the idea’s title and ID, its body, and the context and backlinks footer. You can set a template for it—to add a site header and footer, for example—like so:

        #let idea-page-template(id: none, note: (:), doc) = {
          show: chrome.with(current-page: id)
          doc
        }
        
        #show: rookery.with(
          idea-page-template: idea-page-template,
        )