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

@hakistudio/hakiui

v1.0.1

Published

Dark-themed React UI components with CSS variable theming.

Readme

@hakistudio/hakiui

Dark-themed React UI components powered by CSS variables and Tailwind utility classes. Source is split per component under src/components/ui/ for maintainability, granular installs, and tree-shaking-friendly subpath exports.

Install

npm install @hakistudio/hakiui

Also install peer dependencies if your app does not already have them:

npm install react react-dom lucide-react

Tailwind setup (required)

HakiUI components use Tailwind utility classes. To ensure those classes are generated in consuming apps, import the package stylesheet in your global CSS:

@import "tailwindcss";
@import "@hakistudio/hakiui/styles.css";

Framework quick setup

React + Vite

  1. Install Tailwind v4 in your Vite app.
  2. Add this to your global stylesheet:
@import "tailwindcss";
@import "@hakistudio/hakiui/styles.css";
  1. Wrap your app with HakiProvider.

Next.js (App Router)

  1. Ensure your app/globals.css contains:
@import "tailwindcss";
@import "@hakistudio/hakiui/styles.css";
  1. Wrap your root layout body content (or a shared client boundary) with HakiProvider.

Astro

  1. Install and configure @astrojs/react.
  2. Enable Tailwind in Astro.
  3. In your shared stylesheet:
@import "tailwindcss";
@import "@hakistudio/hakiui/styles.css";
  1. Render HakiUI React components inside .tsx React components and use HakiProvider.

Usage (barrel import)

import { HakiProvider, Button, Input } from "@hakistudio/hakiui";

export default function App() {
  return (
    <HakiProvider>
      <div className="p-6 space-y-4 bg-black min-h-screen">
        <Input placeholder="Email address" />
        <Button variant="solid">Continue</Button>
      </div>
    </HakiProvider>
  );
}

Usage (per-component import, best for bundle size)

Each component is a separate entry so bundlers can include only what you import:

import { HakiProvider } from "@hakistudio/hakiui/theme-provider";
import { Button } from "@hakistudio/hakiui/button";
import { Input } from "@hakistudio/hakiui/input";

Utilities:

import { hexToRgb } from "@hakistudio/hakiui/hex-to-rgb";
import { getRadiusStyle, type Radius } from "@hakistudio/hakiui/radius";

Copy-paste (shadcn-style)

You can copy individual files from this repo into your app, for example:

  • src/components/ui/Button.tsx → your components/ui/button.tsx
  • src/lib/radius.ts, src/lib/hex-to-rgb.ts as needed
  • src/components/theme-provider.tsx for HakiProvider / useTheme

Adjust import paths to match your project aliases.

Styling note

This package uses Tailwind utility classes and CSS variables. HakiProvider provides the --ui-* variables consumed by components, so it should wrap every area where you render HakiUI components.

Package exports

| Subpath | Exports | |---------|---------| | @hakistudio/hakiui | Full public API (re-exports) | | @hakistudio/hakiui/styles.css | Tailwind v4 source hints for HakiUI components | | @hakistudio/hakiui/theme-provider | HakiProvider, useTheme, defaultTheme, types | | @hakistudio/hakiui/hex-to-rgb | hexToRgb | | @hakistudio/hakiui/radius | getRadiusStyle, Radius | | @hakistudio/hakiui/button/modal | Individual UI modules |

Publish (maintainer)

npm login
npm publish --access public

Scoped package @hakistudio/hakiui publishes under the hakistudio npm org or user; ensure you are logged in as that account.