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

@voraus/css

v0.3.1

Published

The voraus look as plain CSS, for any page that can load a stylesheet

Readme

@voraus/css

The voraus look as plain class names, for any page that can load a stylesheet. This is the layer that reaches the HTML which Sphinx and Doxygen generate and vdoc hosts, where no React component can go.

Usage

<link rel="stylesheet" href="voraus.css" /> <button class="voraus-btn voraus-btn--gradient">Start</button>

@voraus/tokens is a peer dependency: its stylesheet declares every value this one reads.

The button variants are MUI's words

text, outlined and contained are the variants MUI already names, and gradient is the one addition. Sharing the vocabulary means a Sphinx page and a React app do not call the same thing two different things, and the MUI layer adds a theme rather than a second set of names.

The gradient button draws the brand gradient, as vorausrobotik.com sets its primary button. The shape of every variant comes from the control tokens, so the same class draws the pill of the website and the square control of the console.

Steps count themselves

.voraus-step colors its point with the color the gradient has where the step stands. It works that out from its own position with sibling-index() and sibling-count(), so neither the markup nor a script states it. A browser without them draws every point at the start of the gradient. A step without a label is labeled with its number by the stylesheet.

Tabs are found by their role

.voraus-tabs draws every element in it with role="tab", and the one with aria-selected="true" as the chosen one. Markup written by someone else, such as the tabs of Docusaurus, gets the same row, and the attributes are needed anyway, so a screen reader announces the tabs as tabs.

The mark of the header

The header shows the wordmark while it has room for it beside the actions, and the symbol once it has not. A container query on the brand decides it, so it needs no script. It applies to a brand that holds both marks:

<a class="voraus-header__brand" href="/" aria-label="voraus robotik">
  <span class="voraus-header__wordmark">
    <img class="voraus-logo voraus-logo--light" src="wordmark-gradient.svg" alt="" />
    <img class="voraus-logo voraus-logo--dark" src="wordmark-gradient-negative.svg" alt="" />
  </span>
  <span class="voraus-header__symbol">
    <img class="voraus-logo" src="symbol-white-on-gradient.svg" alt="" />
  </span>
</a>

A brand without .voraus-header__symbol keeps its width and never switches.

One script, for the header

header.js is the one file here that is not a stylesheet. Whether the links of a header still fit on one line is a question CSS cannot answer across browsers, so it measures that and sets data-collapsed on the header, which header.css reads:

<script type="module">
  import { observeHeader } from '@voraus/css/header.js'
  observeHeader(document.querySelector('.voraus-header'))
</script>

Without it the header still renders and its menu still opens, but the links never move into the menu. VorausAppBar in @voraus/react calls the same function.

Rules this package holds itself to

No value is written here. The tests fail on a literal hex, rgb() or hsl(), and on a var() naming a token that @voraus/tokens does not declare. The second check matters because the two packages are released separately: without it a renamed token shows up as a page rendering with no color at all, and CSS reports nothing.

Fonts

Not loaded here. Roboto belongs to the asset layer, and a page without it falls through to the system stack named in --voraus-font-family-body.