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

@hazeliscoding/kawaii-ui

v0.1.0

Published

A kawaii Y2K web component library built with Lit. Works in Angular, HTMX, React, Vue, or plain HTML.

Downloads

137

Readme

@hazeliscoding/kawaii-ui

A kawaii / Y2K web component library. Gel buttons, pastel gradients, glossy surfaces — built on Lit, works everywhere.

npm version license

Because every component is a standards-based Web Component, you can drop <bloom-button> into:

  • Plain HTML / vanilla JS
  • Angular
  • React, Vue, Svelte, Solid
  • HTMX / Hotwire / Alpine
  • Any static site generator or server-rendered page

Install

npm install @hazeliscoding/kawaii-ui

Or load from a CDN with no build step:

<script type="module" src="https://unpkg.com/@hazeliscoding/kawaii-ui"></script>

Quickstart

Vanilla HTML

<!doctype html>
<html>
  <head>
    <link
      rel="stylesheet"
      href="https://unpkg.com/@hazeliscoding/kawaii-ui/dist/styles/tokens.css"
    />
    <script type="module" src="https://unpkg.com/@hazeliscoding/kawaii-ui"></script>
  </head>
  <body>
    <bloom-button variant="primary">Click me</bloom-button>

    <script>
      document.querySelector('bloom-button').addEventListener('bloom-click', (e) => {
        console.log('clicked', e.detail.originalEvent);
      });
    </script>
  </body>
</html>

Angular

  1. Import the component bundle and tokens once (e.g. main.ts):
import '@hazeliscoding/kawaii-ui';
import '@hazeliscoding/kawaii-ui/styles/tokens.css';
  1. Tell Angular it's fine to see unknown elements by adding CUSTOM_ELEMENTS_SCHEMA to your standalone components (or root module):
import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';

@Component({
  standalone: true,
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  template: `
    <bloom-button variant="primary" (bloom-click)="onClick($event)"> Click me </bloom-button>
  `,
})
export class MyComponent {
  onClick(e: CustomEvent<{ originalEvent: MouseEvent }>) {
    console.log(e.detail.originalEvent);
  }
}

Because attribute bindings are strings, use variant="primary" literally. For dynamic values, use [attr.variant]="someSignal()".

HTMX

No extra setup — just include the script and tokens, and custom elements auto-upgrade whenever HTMX swaps HTML into the DOM.

<link rel="stylesheet" href="https://unpkg.com/@hazeliscoding/kawaii-ui/dist/styles/tokens.css" />
<script type="module" src="https://unpkg.com/@hazeliscoding/kawaii-ui"></script>
<script src="https://unpkg.com/htmx.org"></script>

<bloom-button variant="primary" hx-get="/fragment" hx-target="#out"> Load more </bloom-button>
<div id="out"></div>

React

import '@hazeliscoding/kawaii-ui';
import '@hazeliscoding/kawaii-ui/styles/tokens.css';

export function App() {
  return (
    <bloom-button variant="primary" onClick={(e) => console.log('clicked', e)}>
      Click me
    </bloom-button>
  );
}

Components

| Tag | Status | | -------------------- | ---------------------------- | | bloom-button | ✅ Phase 0 | | bloom-badge | ✅ Phase 2 | | bloom-avatar | ✅ Phase 2 | | bloom-avatar-stack | ✅ Phase 2 | | bloom-card | ✅ Phase 2 | | bloom-input | ✅ Phase 2 (form-associated) | | bloom-theme-toggle | ✅ Phase 2 | | bloom-modal | ✅ Phase 3 | | bloom-compat-ring | ✅ Phase 3 |

Theming

All components read from CSS custom properties defined in tokens.css. Override any token at any scope:

:root {
  --bloom-primary: #ff4081; /* stronger pink */
}

.my-section {
  --bloom-radius-xl: 0.5rem; /* squarer buttons in this scope */
}

Dark mode: add data-theme="dark" to any ancestor (typically <html>):

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

Optional stylesheets

import '@hazeliscoding/kawaii-ui/styles/tokens.css'; // required — palette + spacing + type scale
import '@hazeliscoding/kawaii-ui/styles/base.css'; // modern reset + element defaults
import '@hazeliscoding/kawaii-ui/styles/animations.css'; // bloom-animate-* utility classes
import '@hazeliscoding/kawaii-ui/styles/utilities.css'; // bloom-flex, bloom-gap-*, bloom-text-*, etc.

// Or load them all in one shot:
import '@hazeliscoding/kawaii-ui/styles/all.css';

Local development

git clone https://github.com/hazeliscoding/kawaii-ui
cd kawaii-ui
npm install

npm run dev          # component showcase at http://localhost:4321
npm test             # Vitest (jsdom)
npm run build        # produces dist/ with JS, CSS, .d.ts, and custom-elements.json
npm run lint
npm run format

License

MIT © hazeliscoding