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

@spillway-cms/brand

v0.1.24

Published

The brand of a Spillway CMS site for front ends of their own: a Tailwind preset (v3) and theme (v4) over Spillway's CSS variables, and a build step that writes the brand stylesheet from GET /api/public/brand.

Readme

@spillway-cms/brand

The brand of a Spillway CMS site for a front end of its own. MIT licensed.

Colors, fonts, the type scale, radius, shadow and spacing come from GET /api/public/brand as CSS variables (--sw-color-primary, --sw-text-xl, ...). This package points Tailwind at those variables and writes the stylesheet that defines them, so the front end looks like the site Spillway renders and follows the brand when someone publishes a change under Structure → Brand. Dark mode and high contrast keep working through the stylesheet's media blocks.

The stylesheet

npm install -D @spillway-cms/brand
npx spillway-brand --url https://cms.example.org --out src/spillway-brand.css

Run it before the build (a prebuild script) and again when the brand.published webhook arrives. SPILLWAY_URL works in place of --url, --json brand.json also writes the brand as JSON, and --site <key> picks a site of a multisite instance (with SPILLWAY_TOKEN). A run that finds the same brand version writes nothing. Import the file once, in your global CSS or root layout.

Tailwind v4

npx spillway-brand --url https://cms.example.org --out src/spillway-brand.css --tailwind v4

The file then ends with an @theme inline block, so bg-primary, text-primary-700, font-heading, text-xl, rounded-brand, shadow-brand and max-w-content follow the brand. Import it after @import "tailwindcss";.

Tailwind v3

// tailwind.config.mjs
import { fetchBrand, tailwindPreset } from '@spillway-cms/brand';

const brand = await fetchBrand(process.env.SPILLWAY_URL);
export default { presets: [tailwindPreset(brand)], content: ['./src/**/*.{astro,tsx,ts}'] };

Load the stylesheet as well: the preset names the variables, the stylesheet sets them.

API

  • fetchBrand(baseUrl, options?): the published brand (PublicBrand), through @spillway-cms/client.
  • tailwindPreset(brand): a Tailwind v3 preset.
  • tailwindTheme(brand): the Tailwind v4 @theme inline block.
  • brandStylesheet(brand, { tailwind: 'v4' }?): the stylesheet the command writes.
  • brandColors(brand), brandFontSizes(brand): the pieces the preset is made of.

See the brand in docs/adapters.md.