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

@vuecs/core

v3.6.0

Published

[![npm version](https://img.shields.io/npm/v/@vuecs/core)](https://www.npmjs.com/package/@vuecs/core) [![CI](https://github.com/Tada5hi/vuecs/actions/workflows/main.yml/badge.svg)](https://github.com/Tada5hi/vuecs/actions/workflows/main.yml) [![license](h

Readme

@vuecs/core

npm version CI license

The engine of vuecs — a layered theme-resolution system, structured variants, behavioral defaults, and cross-cutting config for Vue 3. Every vuecs component package (and any third-party library that wants to be reskinnable through the same app.use() call) is built on it.

✨ What's inside

  • 🎨 Theme system — CSS classes resolve through four layers (component defaults → themes → overrides → instance prop), with extend() to merge instead of replace. Pure resolution functions, zero Vue dependency, fully unit-testable.
  • 🧬 Variant system — declarative variants / compoundVariants / defaultVariants (cva-style), merged across all theme layers. <VCButton :theme-variant="{ color: 'error', size: 'sm' }">.
  • 🧩 defineTheme() — compose a new theme on top of one or more existing themes (extends: [a, b]), so brand themes ship as single self-contained packages.
  • ⚙️ Behavioral defaults — useComponentDefaults() resolves non-class props (button text, placeholders, icon names) through instance → global → hardcoded layers. Accepts MaybeRef, so computed(() => t('actions.create')) makes every default i18n-reactive.
  • 🌐 Cross-cutting config — useConfig() + <VCConfigProvider> for app-wide or subtree-scoped state (dir, locale, theme-augmented keys like nonce). useLocale() reads the active BCP-47 locale anywhere.
  • 🪶 Headless composables — useForwardProps, useForwardExpose, useArrowNavigation, useTypeahead, useStateMachine, useSelectionMachine, useId, and more — ported in-tree so core stays zero-dep beyond Vue 3.
  • 🧱 VCPrimitive — the as / asChild rendering building block, so downstream libraries get polymorphic elements without a reka-ui dependency.
  • 🔍 auditTheme() — CI-friendly drift detection comparing any theme against the component-defaults catalog.
  • 🛡️ Typed end-to-end — ThemeElements, ComponentDefaults, and Config are augmentable interfaces; component packages register themselves via declaration merging, giving you autocomplete + typo detection inside app.use(vuecs, { ... }).

📦 Installation

npm install @vuecs/core

⚡ Usage

Configure everything in one place:

import vuecs, { extend } from '@vuecs/core';
import tailwind from '@vuecs/theme-tailwind';
import lucide from '@vuecs/icons-lucide';

app.use(vuecs, {
    themes: [tailwind()],
    icons:  [lucide()],
    overrides: {
        elements: {
            button: { classes: { root: extend('shadow-lg') } },
        },
    },
    defaults: {
        formSelect: { placeholder: '-- Select --' },
    },
    config: { locale: 'de-DE' },
});

Author your own themable component with the same machinery vuecs uses internally:

import { defineComponent, h } from 'vue';
import { themableProps, useComponentTheme, useThemeProps } from '@vuecs/core';

export default defineComponent({
    name: 'MyChip',
    props: {
        color: { type: String, default: undefined },
        ...themableProps<{ root: string }>(),
    },
    setup(props, { slots }) {
        const theme = useComponentTheme('myChip', useThemeProps(props, 'color'), {
            classes: { root: 'my-chip' },
        });
        return () => h('span', { class: theme.value.root }, slots.default?.());
    },
});

📚 Documentation

License

Made with 💚

Published under Apache 2.0 License.