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

nuxt-hs-ui

v4.0.7

Published

This repository is dedicated to the ongoing migration of **nuxt-hs-ui** to **Nuxt 4**

Readme

nuxt-hs-ui

A Nuxt 4 UI component library for business management applications, built on top of @nuxt/ui and Tailwind CSS v4.

Version: 3.x  |  License: MIT  |  Author: Ryo@Hare-Systems


Requirements

| Dependency | Version | |---|---| | Nuxt | ^4.x | | @nuxt/ui | ^4.x | | @pinia/nuxt | ^0.11 | | pinia-plugin-persistedstate | ^4.x | | @vueuse/nuxt | ^13.x | | sass-embedded | ^1.x |


Installation

npm install nuxt-hs-ui

Setup

1. nuxt.config.ts

Add the module and configure your theme colors. The theme object generates TypeScript type definitions for color tokens — the actual CSS is applied via Tailwind (see step 2).

export default defineNuxtConfig({
  colorMode: {
    preference: 'light',
    fallback: 'light',
    classSuffix: '',
  },
  build: {
    transpile: ['nuxt-hs-ui'],
  },
  vite: {
    optimizeDeps: { exclude: ['nuxt-hs-ui'] },
    ssr: { noExternal: ['nuxt-hs-ui'] },
  },
  modules: [
    '@nuxt/eslint',
    '@nuxt/image',
    '@nuxt/ui',
    '@pinia/nuxt',
    'pinia-plugin-persistedstate/nuxt',
    [
      'nuxt-hs-ui',
      {
        theme: {
          main0: '#183C5E',
          main1: '#2C5A85',
          main2: '#487CB4',
          main3: '#A7CDED',
          main4: '#C4E1FF',
          accent1: '#FF6600',
          accent2: '#FFAC7C',
          info: '#2BABB5',
          success: '#2BB60C',
          warn: '#EAB000',
          error: '#D80329',
          link: '#6200EE',
          download: '#11691F',
          dark: '#224466',
          back1: '#EDF2F7',
          back2: '#AABED1',
          back3: '#B5C3D8',
          back4: '#7487a3',
        },
      },
    ],
  ],
});

2. CSS (e.g. assets/css/main.css)

Import Tailwind and define the same colors as CSS custom properties under @theme static. The @source directive ensures Tailwind scans the library's dist folder for utility classes used inside components.

@import "tailwindcss";
@import "@nuxt/ui";
@source "../../node_modules/nuxt-hs-ui/dist";

@theme static {
  --color-main0   : #183C5E;
  --color-main1   : #2C5A85;
  --color-main2   : #487CB4;
  --color-main3   : #A7CDED;
  --color-main4   : #C4E1FF;
  --color-accent1 : #FF6600;
  --color-accent2 : #ffac7c;
  --color-info    : #2BABB5;
  --color-success : #2BB60C;
  --color-warn    : #EAB000;
  --color-error   : #D80329;
  --color-link    : #6200EE;
  --color-download: #11691f;
  --color-dark    : #224466;
  --color-back1   : #EDF2F7;
  --color-back2   : #D5D9DD;
  --color-back3   : #B5C3D8;
  --color-back4   : #7487a3;
}

Note: The theme object in nuxt.config.ts is used only for generating TypeScript color token types. The actual CSS values must be declared here in @theme static.


Components

All components are auto-imported when the module is registered.

Form

| Component | Description | |---|---| | Btn | Themed button with loading / disabled states | | TextBox | Styled text input | | Textarea | Styled multi-line input | | CheckBox | Single checkbox with label | | CheckList | List of checkboxes | | Radio | Radio button group | | Select | Dropdown select with search | | DatePicker | Date picker (powered by flatpickr) | | ValueBox | Read-only value display field | | InputFrame | Generic wrapper for custom form inputs |

Interactive

| Component | Description | |---|---| | Alert | Inline alert banner | | BlockLoading | Full-area loading overlay | | Dialog | Confirmation / prompt dialog | | Modal | Base modal | | Toast | Toast notification | | WindowLoader | Full-window loading screen |

Layout

| Component | Description | |---|---| | Card | Themed content card | | CardItem | Row item inside a Card | | Container | Page-level container | | Accordion | Collapsible section | | AccordionDown | Bottom-anchored collapsible section | | AspectBox | Fixed aspect-ratio container |

Misc

| Component | Description | |---|---| | Breadcrumb | Page breadcrumb navigation | | Tabulator | Data grid (powered by tabulator-tables) | | ViewNameDisplay | Current page / view name label |


Composables

All composables are auto-imported.

| Composable | Description | |---|---| | useHsDialog | Open/close/control Dialog imperatively | | useHsModal | Open/close/control Modal imperatively | | useHsToast | Fire toast notifications | | useHsWindowLoader | Show/hide the window-level loader | | useHsScrollLock | Lock/unlock body scroll | | useHsFocus | Focus management helpers | | useHsIsMobile | Reactive mobile breakpoint detection | | useHsMultiLang | Multilingual label resolution | | useHsMisc | Miscellaneous utilities |


Utils

Available via nuxt-hs-ui/utils/* named exports.

| Module | Description | |---|---| | string | String manipulation helpers | | number | Number formatting and parsing | | float | Floating-point safe arithmetic (BigNumber.js) | | object | Object / Map utilities | | select | Select item builder helpers | | select-item | Select item type definitions | | multi-lang | Multilingual string utilities | | multi-lang-object | Multilingual object utilities | | dayjs | Pre-configured dayjs instance | | tabulator | Tabulator helper types and formatters | | class-style | Tailwind class merging utilities | | modal | Modal state helpers | | theme | Theme token accessor | | com | Common utility functions |


License

MIT © Ryo@Hare-Systems