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

@vttforge/styles

v0.5.1

Published

VTTForge design system as CSS: tokens, reset, base, components and opt-in themes over cascade layers.

Readme

@vttforge/styles

CSS-only package: design tokens, scoped reset, base styles, sheet primitives, and opt-in themes.

bun add @vttforge/styles

Usage

Default, one import:

@import '@vttforge/styles';

Or wrap everything in a single @layer vttforge you order yourself:

@layer reset, vttforge, my-system;
@import '@vttforge/styles/styles.layer.css';

Read the next section before you pick the second one.

Pick what you need:

@import '@vttforge/styles/tokens.css';
@import '@vttforge/styles/components.css';

Opt-in theme:

@import '@vttforge/styles/themes/forge.css';

The tokens are also published as data, @vttforge/styles/tokens.json, for anything that is not CSS.

Cascade layers

Foundry has already put this file in a layer by the time you see it. A system's stylesheet goes in @layer system and a module's in @layer modules. The manifest's styles entry takes an optional layer, and leaving it out lets the server fill one in:

"styles": [{ "src": "styles/my-system.css" }]

These rules are layered either way. What varies is how they sort against the rest of that layer, which is your own CSS.

An unlayered rule beats every layered one in the same layer, whatever the specificity. Only vttforge.tokens and vttforge.reset sit in a sub-layer here; base, components and the theme do not. Sub-layer the components and this would win every time:

/* your stylesheet, in the same layer as this package */
button { border-radius: 55px; }   /* would beat .vttf-btn */

Nothing you wrote could lose, so a broad selector meant for one corner would restyle every component. Unlayered, the two compose on specificity: .vttf-btn holds, and .my-system .vttf-btn wins.

Tokens and the reset are sub-layered on purpose. Tokens are custom properties, so one plain declaration has to override them, and a reset should never outrank a real rule.

The sub-layering above only sorts these rules against your own CSS. Between packages, Foundry orders system before modules, so a module's CSS overrides a system's by design. Setting "layer": null on the manifest entry makes your stylesheet unlayered and puts it above everything, including every module. That also takes your system out of the order module authors expect, so it needs a reason.

The styles.layer.css entry wraps everything in one @layer vttforge nested inside Foundry's. Specificity no longer composes between these styles and yours; instead the block sorts as a whole against layers you declare.

Design system

The design system page shows every token and primitive: https://vttforge.dev/design-system/.