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

@abh80/lithium-prism

v1.0.0

Published

Standalone Web Components UI kit; a fork of imput/helium-prism, ported from Svelte to native custom elements

Downloads

124

Readme

lithium-prism

Standalone, framework-agnostic UI kit built on native Web Components (custom elements). It ships the building blocks used by web interfaces with typography, buttons, toggles, inputs, loading states, icons, and the brand gradient shimmer effect with with zero runtime framework dependency. Drop the elements into any page or framework (React, Vue, Svelte, plain HTML, etc.).

[!NOTE] lithium-prism is a fork of imput/helium-prism, ported from Svelte to native Web Components. Licensed GPL-3.0-only. Original work © The Helium Authors.

Installation

pnpm:

pnpm add @abh80/lithium-prism

Usage

Import the barrel (registers every element)

Import the package root once near your app entry point to register all custom elements, then import the stylesheet:

import "@abh80/lithium-prism";
import "@abh80/lithium-prism/lithium.css";

Once registered, use the elements anywhere in your markup:

<lit-button primary>Button</lit-button>
<lit-button>Button 2</lit-button>
<lit-toggle></lit-toggle>
<lit-icon name="copy"></lit-icon>

Per-element imports

To register only the elements you use, import them individually:

import "@abh80/lithium-prism/element/lit-button";
import "@abh80/lithium-prism/element/lit-toggle";
import "@abh80/lithium-prism/lithium.css";

CDN (no bundler)

Each element can be loaded directly in the browser as an ES module:

<link rel="stylesheet" href="https://unpkg.com/@abh80/lithium-prism/dist/lithium.css" />
<script type="module">
    import "https://unpkg.com/@abh80/lithium-prism/element/lit-button";
</script>

<lit-button primary>Button</lit-button>

Elements

All elements are registered with a lit- prefix:

  • lit-button — buttons (boolean attributes such as primary, circle, card, transparent, plus disabled and type)
  • lit-toggle — toggle switch
  • lit-checkbox — checkbox
  • lit-input — text input
  • lit-text — typography
  • lit-spinner — loading spinner
  • lit-skeleton — skeleton placeholder
  • lit-gradient-shimmer — brand gradient shimmer effect
  • lit-card-link, lit-outer-link — link surfaces
  • lit-search-bar — search bar
  • lit-tooltip — tooltip
  • lit-dropdown — dropdown
  • lit-copy-icon — copy-to-clipboard icon
  • lit-icon — icon by name, e.g. <lit-icon name="copy"></lit-icon>
  • lit-helium-logo, lit-helium-text — brand mark and wordmark

Theming

lithium-prism derives every color from four CSS custom properties. Override them on :root (or any subtree — variables pierce the shadow DOM):

| Variable | Controls | Light default | | ------------------- | --------------------------------------------------------------------------- | ----------------------- | | --lithium-accent | Action color: primary button, toggle-on, checkbox, focus, links | #3450d1 | | --lithium-bg | Page background | #fbfcff | | --lithium-surface | Elevated tint base (button/input/panel backgrounds); defaults to the accent | var(--lithium-accent) | | --lithium-fg | Text base (--primary/--secondary/--tertiary derive from it) | #0d1c64 |

/* Accent applies in both light and dark from a single override. */
:root {
    --lithium-accent: #c2410c;
}

/* Background and foreground are scheme-specific — set them per scheme. */
:root {
    --lithium-bg: #fff8f3;
    --lithium-fg: #3a1d0c;
}
@media (prefers-color-scheme: dark) {
    :root {
        --lithium-bg: #160f0a;
        --lithium-fg: #f3e9e2;
    }
}

/* Decouple the elevated surface tint from the accent if you want neutral surfaces. */
:root {
    --lithium-surface: #6b7280;
}

Derived shades (hover/press, the --lithium-elevated-* tint scale, --secondary, --tertiary, the background gradient) are computed from these knobs with color-mix, so a single override cascades through the kit. Requires a browser with color-mix() support (all evergreen browsers since 2023).

License

lithium-prism is licensed under GPL-3.0-only.

The icon set is sourced from a separate project under the MIT license; see src/components/ICONS-LICENSE.