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

@vivliostyle/theme-centered-heading-line-graph

v1.0.0

Published

Two-column theme for English textbooks, with centered numbered headings and many tables and line graphs

Readme

@vivliostyle/theme-centered-heading-line-graph

A two-column theme for English textbooks. It typesets data-heavy pages with centered numbered headings, tables with colored headers, and line graphs.

Usage

// vivliostyle.config.js
export default {
  theme: '@vivliostyle/theme-centered-heading-line-graph',
};

Writing the manuscript:

  • Put one chapter in one file, and write class: chapter and the chapter title (title) in the frontmatter. Chapter numbers (in headings, figure and table numbers, and running heads) come from the base document counter vs-counter-chapter. The left running head shows the chapter title (env(doc-title)), and the right one shows the book title (env(pub-title), i.e. title in the config).
  • Write a section as ## Section title {#id}. For an unnumbered heading, add closing #s as in ## Heading ##; it does not become a section, so it does not consume a number. End-of-chapter summaries and exercises have to stay sections because columns are applied per section, so write ## Section title {.closing} to drop only the number.
  • Write a figure as ![Caption](fig.svg){#id}, and wrap a table and its <figcaption> in <figure class="tbl" id="id">. Counters assign the numbers (Figure 7.1 / Table 7.1).
  • Write a reference as <a href="#id" data-ref="fig|tbl|sec"></a>.
  • Set vfm: { disableFormatHtml: true } in the config. The HTML formatting of VFM drops whitespace right after an empty element, so without it a reference runs into the following word, as in Figure 7.1plots.
  • Add the wide class to a figure or table that spans both columns. Wrap a chart without a figure number in <div class="chart">, and a framed graph in <div class="panel">.

Customization

Override the following variables on :root to customize the theme.

| Variable | Default | Description | | --- | --- | --- | | --vs-theme-centered-heading-line-graph--color-accent | var(--vs-color-foreground-alt) | Color of heading numbers, table headers, and cross-references | | --vs-theme-centered-heading-line-graph--color-panel-bg | color-mix(in oklab, var(--vs-color-foreground-alt), var(--vs-color-background) 95%) | Background color of graph panels |