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

@goboldlyforward/highlight.css

v1.0.1

Published

A drop-in collection of CSS-based text highlight effects — markers, underlines, scribbles, strikethroughs, and animated sweeps. One class, no JS.

Readme

highlight.css

A drop-in collection of CSS-based text highlight effects — markers, underlines, scribbles, strikethroughs, and an animated sweep. One CSS file, 24 classes, zero JS.

Demo

goboldlyforward.github.io/highlight — every effect on one page, with light + dark previews and a theming section.

What it does

Ships one stylesheet. Drop a class on any inline element — <span>, <mark>, <em> — and the highlight applies. Multi-line wraps are handled automatically via box-decoration-break: clone. Color is themable through a single CSS custom property.

Install

npm install @goboldlyforward/highlight.css
@import "@goboldlyforward/highlight.css/highlight.css";

Or link it straight from a CDN — no build step:

<link rel="stylesheet" href="https://unpkg.com/@goboldlyforward/highlight.css/highlight.css">

Usage

<p>The quick brown fox jumps over <span class="hl-marker">the lazy dog</span>.</p>

<p>That option is <span class="hl-strike">off the table</span>.</p>

<p>Read the <span class="hl-underline-dotted">fine print</span> first.</p>

<p>Try this <span class="hl-scribble">hand-drawn squiggle</span>.</p>

The collection

Markers (9)

Highlighter-pen style backgrounds. CSS gradients, no images.

| Class | Look | | --- | --- | | .hl-marker | Classic yellow stripe across the lower portion | | .hl-marker-thin | Thin band hugging the baseline | | .hl-marker-tall | Covers most of the x-height | | .hl-marker-full | Full block behind the text | | .hl-marker-pen | Translucent — lets the page tint through | | .hl-marker-gradient | Fades horizontally left → transparent | | .hl-marker-double | Two stripes, top and bottom | | .hl-marker-uneven | Slanted top edge | | .hl-marker-fade | Soft bottom edge |

Underlines (6)

Background-gradient lines and native text-decoration variants.

| Class | Look | | --- | --- | | .hl-underline | Clean thin underline | | .hl-underline-thick | Heavier underline for stronger emphasis | | .hl-underline-double | Two parallel lines (native text-decoration: double) | | .hl-underline-wavy | Spellcheck-style squiggle (native wavy) | | .hl-underline-dashed | Dashed line for hints / glossary cues | | .hl-underline-dotted | Dotted line, soft annotation |

Scribbles (5)

Hand-drawn underlines via tileable SVG paths. Dark-mode-aware — stroke swaps from #333 to #ccc when an ancestor has [data-theme="dark"].

| Class | Look | | --- | --- | | .hl-scribble | Soft hand-drawn wavy line | | .hl-scribble-rough | Bigger amplitude, irregular spacing | | .hl-scribble-zigzag | Sharp angular zigzag | | .hl-scribble-loose | Slow, bouncier squiggle | | .hl-scribble-double | Two overlapping scribbles, offset |

Strikethroughs (4)

| Class | Look | | --- | --- | | .hl-strike | Standard line-through | | .hl-strike-thick | Heavier line-through | | .hl-strike-wavy | Wavy strike, playful tone | | .hl-strike-soft | Gradient band centered on the line |

Animated (1)

| Class | Look | | --- | --- | | .hl-sweep | Marker that sweeps in left → right on :hover or when you add .is-active |

Pair hl-sweep with an IntersectionObserver for scroll-triggered reveals. Respects prefers-reduced-motion automatically.

Theming

Two custom properties drive every effect.

:root {
  --hl-color:  #fff59d;        /* highlighter yellow (markers, sweep) */
  --hl-stroke: currentColor;   /* line color for gradient underlines  */
}

Override anywhere in the cascade — globally, per-section, or inline.

<!-- Inline tint for one element -->
<span class="hl-marker" style="--hl-color: #ffb3d9">pink note</span>

<!-- Per-section accent -->
<aside style="--hl-color: #c8e6c9">
  Everything inside this aside uses mint.
</aside>

For scribbles, color is baked into the SVG (since CSS variables can't be substituted into url() data URIs). To retint, override background-image on the element with your own SVG.

Dark mode

Opt in by setting data-theme="dark" on any ancestor (commonly <html>):

<html data-theme="dark">…</html>

That swaps --hl-color to a brighter yellow (#fde047) so markers and sweeps pop on dark backgrounds, and switches scribble strokes from #333 to #ccc. No prefers-color-scheme auto-detection — the library stays predictable; the choice is yours.

To follow the system preference automatically, add a tiny inline script before the stylesheet so there's no flash:

<script>
  if (matchMedia('(prefers-color-scheme: dark)').matches) {
    document.documentElement.setAttribute('data-theme', 'dark');
  }
</script>

Or wire it to a toggle and persist the choice — see the demo source for a ~20-line example.

Browser support

Modern evergreen browsers (Chrome, Edge, Firefox, Safari). box-decoration-break: clone and color-mix() are required for full fidelity; falls back gracefully where they're absent.

License

MIT — see LICENSE.