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

@went.tf/hammertime-css

v2.0.0

Published

HTML/CSS-only design framework extracted from HammerTime, customizable through Sass variables

Readme

@went.tf/hammertime-css

The design of HammerTime as an extensible, HTML/CSS-only framework. No JavaScript components are included, the stateful components only ship the styling hooks (.visible, [open], .is-open, ...) that your own markup or script toggles.

Usage

// Plain build with the defaults
@use '@went.tf/hammertime-css';

Or use the compiled dist/hammertime.css.

CSS only (no Sass)

dist/hammertime.css (and .min.css) is the CSS-only build. Everything is controlled with custom properties, including the brand-derived palette, which is computed at runtime from a single variable:

<link rel="stylesheet" href="@went.tf/hammertime-css/dist/hammertime.css" />
<style>
  :root {
    --ht-brand: #e8590c; /* re-themes header, cards, inputs, primary buttons, links, ... */
    --ht-value-button-border-radius: 0.5rem; /* any value token */
    --ht-color-card-bg-light: #fff; /* any color token, per theme: -light / -dark */
    --ht-value-spacing-2: 0.75em; /* the .m-*, .p-* utilities follow --ht-value-spacing-* */
  }
</style>

This build needs CSS relative color syntax (Chrome 119+, Safari 16.4+, Firefox 128+). Browsers without it should use dist/hammertime.static.css (or the Sass build), where the palette is derived at compile time: the same tokens are still individually overridable, only --ht-brand does not exist there.

Token reference:

| Property | Meaning | | ------------------------------------------ | -------------------------------------------------------------------------------------------------- | | --ht-brand | Brand color the palette is derived from (CSS-only build) | | --ht-value-* | Sizes, spacing, radii, typography. Responsive ones have breakpoint overrides inside the stylesheet | | --ht-color-*-light / --ht-color-*-dark | Per-theme colors, --ht-color-* is the alias that follows the active theme | | --ht-z-index-* | Layering |

Limits: media query breakpoints (sm 400px, md 768px, lg 1024px, xl 1200px, xxl 1600px) cannot be CSS variables, they are set with $extend-breakpoints in Sass. To change a responsive value at one breakpoint, override the property inside your own @media rule. To retheme the alias --ht-color-* in the dark theme, set the -dark variant, or use a selector as specific as :root[data-theme="dark"].

Customizing with Sass

Configure the framework before anything else loads it:

@use '@went.tf/hammertime-css' with (
  $brand-color: #e8590c,
  // add or replace tokens, emitted as --ht-value-*, --ht-color-* and --ht-z-index-*
  $extend-values: (
      button-border-radius: 0.5rem,
    ),
  $extend-colors: (
    my-accent: (
      light: #e8590c,
      dark: #ffa94d,
    ),
  )
);

The page background gradient is opt-in and off by default (the compiled dist/ stylesheets do not include it). Enable it in Sass with $background-gradient: true, its colors and layout are the bg-gradient-* tokens (--ht-color-bg-gradient-*, --ht-value-bg-gradient-*). The middle of the gradient is the brand color. The start and end follow it too (a hue shift of the brand color), unless you set $bg-gradient-start and $bg-gradient-end to fixed colors.

Everything else is a CSS custom property, so it can also be changed at runtime (--ht-value-*, --ht-color-*-light/-dark). Themes are switched with data-theme="light|dark" on :root (defaults to prefers-color-scheme), RTL with dir="rtl".

Single components can be used on their own, after configuring @went.tf/hammertime-css/design:

@use '@went.tf/hammertime-css/design' with (
  $brand-color: #e8590c
);
@use '@went.tf/hammertime-css/components/button';

Markup notes

The framework is plain CSS, so some structure is on you:

  • Icons are slots, none are shipped. .form-checkbox-check-icon, .form-select-icon, .button-icon and .loading-icon are positioned for a fixed-width icon (about 1.25em wide, 1em tall, e.g. an inline SVG or Font Awesome's fa-fw). A text glyph will not line up.
  • Loading buttons need a .loading-icon element placed before .button-content inside the button. The gradient and the dimmed content come from it, .loading alone shows neither.
  • Radio controls: before v0.1.2, whitespace between .form-radio-input-wrap and .form-radio-label pushed the label out of line with checkbox labels. From v0.1.2 the control is a flex row and formatting is free.
  • <summary> has no marker. The CSS reset removes the disclosure marker, so give <details> toggles their own affordance (chevron, border, pointer cursor).

See the documentation site for rendered examples.

Status

Extracted from the HammerTime app, work in progress. Documentation and live demo: https://wentthefox.github.io/HammerTimeCSS/ (source in docs/, an Astro site that is not part of the npm package).

Releases

Releases are automatic. Commits to main follow Conventional Commits (enforced by commitlint, locally through a Husky hook and in CI). On every push to main the next semantic version is computed from the commits since the last tag:

| Commit | Release | | ----------------------------------------- | ------- | | fix: | patch | | feat: | minor | | feat!: / BREAKING CHANGE: | major | | docs:, chore:, ci:, refactor: ... | none |

The package is built and published to npm, then the vX.Y.Z tag and a GitHub release with the changelog are created. package.json always says 0.0.0, the version only lives in the tag.

License

MIT