npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

antora-dark-theme

v1.0.9

Published

Dark mode supplemental UI theme for Antora documentation sites

Readme

Antora Dark Theme

License: MIT Antora 3.x

Dark mode supplemental UI for Antora documentation sites.

FTN layout stylesheet (optional)

The package also ships supplemental-ui/css/site-ftn-docs.css: Source Sans, in-flow header + doc mast (breadcrumb / component + version), ftn-body + left nav that fills the column, and other layout rules used on docs.foodtrucknerdz.com. It expects the FTN Handlebars partials (for example header with ftn-doc-mast, body with ftn-body, main with ftn-article). Load it after site-extra.css in your head-meta (or a merged supplemental directory):

<link rel="stylesheet" href="{{{uiRootPath}}}/css/site-extra.css">
<link rel="stylesheet" href="{{{uiRootPath}}}/css/site-ftn-docs.css">

Sites that use only the default Antora layout do not need this file.

Upstream note: General-purpose improvements from this layer (for example antora-ui-default nav.css in-flow flex) are landed in the default UI or here as appropriate; the FTN-specific branding stays in site-ftn-docs.css or your own supplemental CSS.

Quick start

Which installation path should I use?

  • If your project already uses Node/npm/pnpm (common for Antora sites) — use Method 1 (npm). To add your own supplemental files on top of this theme, use Method 2 (valid Antora patterns only—see below).
  • If you want no JavaScript install step (minimal CI, or a repo without Node) — use Method 3 (pre-built ui-bundle.zip): one URL in the playbook, no node_modules.

Method 1: npm dependency (recommended for Node-based projects)

# npm
npm install --save-dev antora-dark-theme

# pnpm
pnpm add -D antora-dark-theme

# yarn
yarn add -D antora-dark-theme

# bun
bun add -d antora-dark-theme

Then reference the supplemental UI from node_modules in antora-playbook.yml (or your playbook file):

ui:
  bundle:
    url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
    snapshot: true
  supplemental_files: ./node_modules/antora-dark-theme/supplemental-ui

Method 2: Project overrides (valid Antora options)

Antora’s ui.supplemental_files accepts either a single directory path or an array of virtual files (path + contents). A YAML list of multiple directories is not supported—the array form is only for virtual entries.

Merged directory (recommended when you use npm and need custom partials/CSS): Copy node_modules/antora-dark-theme/supplemental-ui into your repo (for example supplemental-ui/), merge your changes on top, then point the playbook at that one folder:

ui:
  bundle:
    url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
    snapshot: true
  supplemental_files: ./supplemental-ui

Pre-built theme bundle + virtual files: Use the release ui-bundle.zip (default UI + dark theme already combined) and add only extra assets with a virtual supplemental_files array:

ui:
  bundle:
    url: https://github.com/antora-supplemental/antora-dark-theme/releases/latest/download/ui-bundle.zip
    snapshot: true
  supplemental_files:
    - path: ui.yml
      contents: |
        static_files:
          - favicon.ico
    - path: favicon.ico
      contents: ./branding/favicon.ico

Virtual override of a single UI file: Each entry must use path and contents (inline or path to a file). If you replace a partial such as partials/head-meta.hbs, your file must still load this theme’s CSS and scripts (start from the theme’s partial), or use a merged directory instead.

ui:
  bundle:
    url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
    snapshot: true
  supplemental_files:
    - path: partials/head-meta.hbs
      contents: ./my-supplemental-ui/partials/head-meta.hbs

Method 3: Pre-built UI bundle (no JavaScript toolchain)

ui:
  bundle:
    url: https://github.com/antora-supplemental/antora-dark-theme/releases/latest/download/ui-bundle.zip
    snapshot: true

Method 4: Copy supplemental-ui into your repo (vendor the theme)

Vendor or fork the theme assets by copying the supplemental-ui folder into your project, then:

ui:
  bundle:
    url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
    snapshot: true
  supplemental_files: ./supplemental-ui

Features

  • Dark mode toggle button (sun/moon icons)
  • System preference detection
  • Persistent preference via localStorage
  • No flash of unstyled content (FOUC)
  • Works with Antora Default UI — no fork required

Releasing (maintainers)

Do not run pnpm publish or npm publish on your machine. Set package.json version to the release, commit, then create and push a vX.Y.Z tag (e.g. git tag v1.0.4 && git push origin v1.0.4). .github/workflows/release.yml runs on that tag, creates the GitHub Release with the .tgz and merged ui-bundle.zip, and may publish to the npm registry when trusted publishing is configured. Prerelease tags (version contains -, e.g. 1.0.0-beta.1) still get the release assets; see the workflow for the npm step.

Documentation

Full documentation and live demo: antora-supplemental.github.io/antora-dark-theme

For the full AsciiDoc guide (same content, more detail), see README.adoc.

License

MIT