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

@neerhd/kira-ui

v0.2.2

Published

Kira — component library and design token system

Downloads

247

Readme

kira-ui

Kira is a React component library and design token system built for consistency and flexibility.

Next.js 15 + Tailwind v4 setup

Install

npm install @neerhd/kira-ui postcss-import

postcss.config.mjs

export default {
  plugins: {
    "postcss-import": {},
    "@tailwindcss/postcss": {},
  },
};

app/globals.css

Add these three lines at the top of the file, in this order:

@import "@neerhd/kira-ui/dist/style.css";
@source "../node_modules/@neerhd/kira-ui/dist/kira-ui.es.js";
@import "tailwindcss";

app/layout.tsx

Import styles in globals.css only. Never import kira styles in layout.tsx or any JS/TS file.

import "./globals.css"; // ✓ correct
import "@neerhd/kira-ui/styles"; // ✗ do not do this

Why each step matters

  • postcss-import — Tailwind v4 does not resolve third-party @import statements without this. The kira CSS variables will be silently dropped with no build errors.
  • dist/style.css explicit pathpostcss-import does not reliably honour package.json exports aliases. Use the direct path.
  • @source directive — Tailwind v4 does not scan node_modules by default. Without this, kira component classes exist on DOM elements but have no corresponding CSS rules — components render as unstyled HTML with no errors.
  • CSS pipeline only — Importing via JS (e.g. in layout.tsx) creates a second processing pipeline that conflicts with the PostCSS pipeline. One import, one pipeline.

Verify your setup

Run this from your project root to check all four conditions:

node node_modules/@neerhd/kira-ui/scripts/check-setup.js

Installation

npm install kira-ui

Usage

Import the stylesheet once at the root of your app (this loads all --kira-* CSS custom properties):

import 'kira-ui/styles';

Then use components and tokens anywhere:

import { Button, Input, Card } from 'kira-ui';

export default function App() {
  return (
    <div style={{ backgroundColor: 'var(--kira-bg-default)', padding: '24px' }}>
      <Card>
        <Card.Header>
          <span style={{ color: 'var(--kira-text-primary)' }}>Hello, Kira</span>
        </Card.Header>
        <Card.Body>
          <Input label="Email" placeholder="[email protected]" />
        </Card.Body>
        <Card.Footer style={{ justifyContent: 'flex-end' }}>
          <Button variant="primary">Submit</Button>
        </Card.Footer>
      </Card>
    </div>
  );
}

Design tokens

All tokens are exposed as CSS custom properties after importing kira-ui/styles. Key semantic tokens:

| Token | Value | |---|---| | --kira-bg-default | Page background | | --kira-bg-surface | Cards, inputs, panels | | --kira-bg-elevated | Elevated surfaces, dropdowns | | --kira-text-primary | Primary text | | --kira-text-secondary | Secondary / supporting text | | --kira-border-default | Default borders | | --kira-interactive-primary-bg | Primary button / accent |

The raw token definitions are also importable:

import tokens from 'kira-ui/tokens';

Peer dependencies

react >= 18
react-dom >= 18