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

@josui/vue

v0.2.1

Published

Vue 3 component library for the Josui design system.

Readme

@josui/vue

Vue 3 component library for the Josui design system.

Installation

pnpm add @josui/vue @josui/scss

For icons (optional):

pnpm add lucide-vue-next

Setup

Using pre-built components

// main.ts
import '@josui/scss';
import '@josui/vue/styles.css';
<script setup>
import { Button } from '@josui/vue';
</script>

Using source components

For better tree-shaking and smaller bundles, import from source. Styles are included via SFCs.

// main.ts
import '@josui/scss';
<script setup>
import { Button } from '@josui/vue/src';
</script>

Architecture

Token-Based Styling

Components are styled using CSS custom properties from @josui/tokens. No utility classes or runtime CSS-in-JS — just scoped SCSS that references design tokens:

/* How components consume tokens internally */
.josui-button {
  background: var(--color-primary-500);
  padding: var(--spacing-2) var(--spacing-4);
  border-radius: var(--radius-md);
}

This means you can customize the entire look of components by overriding token values.

Accessibility (WCAG)

Components that require complex accessibility patterns use reka-ui primitives under the hood:

This provides:

  • Keyboard navigation (Tab, Escape, Enter)
  • Focus trapping in modals
  • ARIA attributes (aria-modal, aria-labelledby, aria-describedby, aria-checked)
  • Screen reader announcements

Components like Button, Card, Badge, and Icon are simple enough to not require reka-ui.

Customizing Tokens

Override CSS Variables

The simplest way to customize is overriding CSS custom properties:

:root {
  /* Change primary color */
  --color-primary-500: oklch(0.6 0.2 280);

  /* Adjust spacing scale */
  --spacing-4: 1.25rem;

  /* Modify border radius */
  --radius-md: 0.5rem;
}

Scoped Theming

Apply different tokens to specific sections:

.dark-section {
  --color-gray-900: oklch(0.98 0 0);
  --color-gray-100: oklch(0.2 0 0);
}

Available Tokens

See @josui/tokens for the complete token reference including colors, spacing, radius, shadows, animation, and z-index.

Components

  • Button — Primary actions with variants, sizes, loading state
  • Card — Container with header, content, footer sections
  • Dialog — Modal dialogs with overlay and focus trapping
  • Checkbox — Form input with indeterminate state support
  • Badge — Status indicators and labels
  • Icon — Lucide icon wrapper with consistent sizing

AI-Assisted Development

This package includes a skill for AI coding assistants. Copy it to your project:

cp -r node_modules/@josui/vue/skills/use-vue-components .claude/skills/

The skill helps AI assistants correctly use components with proper props and patterns.

See Storybook for interactive examples and full API documentation.