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

vunor

v0.5.4

Published

A **UnoCSS theme engine** that turns a handful of design decisions into a complete, perceptually consistent design system -- plus an optional set of 30+ Vue 3 components that use it.

Readme

Vunor

A UnoCSS theme engine that turns a handful of design decisions into a complete, perceptually consistent design system -- plus an optional set of 30+ Vue 3 components that use it.

The core value is the theme: a golden-ratio-based type and spacing scale, an Oklab-graded color palette where every hue looks equally bright at the same step, and a shortcut object system that merges your classes into any built-in style by name, so you customize a visual detail without rewriting the style. The Vue components are a bonus -- you can use the theme engine on its own with any markup.

Design Philosophy

Most design systems hard-code dozens of magic numbers for font sizes, spacing, colors, and border radii. Vunor derives everything from a few mathematical constants:

  • Golden ratio (1.618) drives the typography scale, spacing tokens, and default border radius
  • Oklab color model ensures perceptual uniformity -- primary-500 and error-500 look equally bright to the human eye, regardless of hue
  • Object-driven shortcuts let you add classes to one variant of any built-in style: same-name shortcuts are merged, not replaced

The result: change one seed color or one scale factor, and the entire system recalculates consistently.


Perceptual Color Palette

Vunor generates its full color system using @prostojs/palitra, a palette generator built on the Oklab perceptual color model.

Why Oklab?

Traditional RGB/HSL-based palette generators produce steps that look uneven: yellow-500 appears much brighter than blue-500 at the same lightness value, because RGB lightness doesn't match human perception. Oklab solves this -- it grades colors by how people actually see them. When palitra generates primary-500 and secondary-500, they sit at the same perceptual luminance regardless of their hue. This means:

  • Swapping your primary color from blue to green doesn't break visual hierarchy
  • Numbered steps (50..900) have visually equal spacing between them
  • Dark/light mode palettes stay balanced without manual correction

How It Works

You provide up to 7 semantic seed colors. Palitra takes each one and generates:

  1. Main palette (10 steps: 50, 100..900) -- luminance-graded from light to dark with perceptually uniform steps, optional saturation and hue-shift (vivid) adjustments at the extremes
  2. Layer palette (5 steps: 0..4) -- desaturated variants for backgrounds that subtly tint without overwhelming content

All values are emitted as CSS custom properties, ready for use in any CSS-based system.

Semantic Colors

| Name | Default | Purpose | | ----------- | --------- | ------------------- | | primary | #004eaf | Main brand color | | secondary | #edd812 | Accent / highlight | | good | #7bc76a | Success / positive | | warn | #ef9421 | Warning | | error | #bf5a5f | Error / negative | | grey | #858892 | Neutral greys | | neutral | #5da0c5 | Alternative neutral |

Per-Color Fine-Tuning

Each color can be a simple hex string or an object with saturation/vivid controls:

palette: {
  colors: {
    primary: '#6B4EFF',                          // simple swap
    error: {
      color: '#DC2626',
      vivid: { dark: 0.3, light: 0.3 },         // boost hue rotation at palette edges
      saturate: { dark: -0.1, light: -0.1 },     // desaturate slightly
    },
  },
}

Advanced Palette Controls

Fine-tune the global palette generation curves:

palette: {
  lightest: 0.97,      // max luminance for the lightest step (0-1)
  darkest: 0.24,       // min luminance for the darkest step (0-1)
  layersDepth: 0.08,   // brightness step between layer-0 and layer-4

  mainPalette: {
    luminance: { dark: 0.26, middle: 0.62, light: 0.97 },
    saturate: { dark: -0.25, light: -0.25 },
    vivid: { dark: 0.1, light: 0.2 },       // hue rotation at edges
  },
  layerPalette: {
    desaturate: 0.2,     // pre-desaturate before generating layers
    luminance: { dark: 0.24, light: 0.32 },
    saturate: { dark: 0, light: 0 },        // added at the ends of the layer ramp
  },
}

To tint surfaces, tune layerPalette, not only colors: the layers (layer-*, surface-0..4, c8-chrome, popups) come from each seed colour through layerPalette alone, while a colour's own saturate / vivid shape its 50–900 scale. Raise desaturate (e.g. 0.5) for a stronger tint, lower it toward 0 for grey layers. Since 0.5.0 the ends of the layer ramp keep the palette's tint; layerPalette: { saturate: { dark: -0.2, light: -0.2 } } brings back the grey ends of 0.4.x (dark-mode layer-0 neutral grey whatever the palette).


Golden-Ratio Typography & Spacing

All dimensions in Vunor derive from the golden ratio (k = 1.618).

Typography Scale

Font sizes, line heights, and letter spacing are computed from powers of k:

| Name | Size | Weight | Bold | Line Height | | --------- | ------- | ------ | ---- | ----------- | | h1 | k^3.5 | 400 | 700 | k^0.5 | | h2 | k^2.5 | 400 | 700 | k^0.5 | | h3 | k^2 | 400 | 700 | k^0.5 | | h4 | k^1 | 400 | 600 | k^0.5 | | h5 | k^0.5 | 400 | 600 | k^0.5 | | h6 | k^0.25 | 600 | 700 | k^0.5 | | body | 1 | 400 | 600 | k^0.75 | | body-s | k^-0.5 | 400 | 600 | k^1 | | label | k^-0.25 | 500 | 700 | k^0.5 | | caption | k^-0.5 | 400 | 600 | k^0.5 |

Applied as UnoCSS utilities: text-h1, text-body, text-label, etc. Each sets --font-size, --font-bold, --font-corrected (actual rendered glyph height), line-height, letter-spacing, and top/bottom trim correction CSS vars.

Every entry is individually overridable:

typography: {
  h1: { size: 4, weight: 300, boldWeight: 700 },
  body: { height: 1.75 },     // taller line-height
  label: { weight: 600 },
}

Spacing Scale

Spacing tokens follow the same golden-ratio progression:

| Token | Scale | ~Value | | ------ | ----- | ------ | | $xxs | 1/k^3 | 0.24em | | $xs | 1/k^2 | 0.38em | | $s | 1/k | 0.62em | | $m | 1 | 1em | | $l | k | 1.62em | | $xl | k^2 | 2.62em | | $xxl | k^3 | 4.24em |

Used as p-$m, m-$l, gap-$s, etc. Text-aware margin utilities (text-mt-$m, text-mb-$s) compensate for line-height to maintain optically correct spacing.

Other Derived Values

  • Border radius: defaults to 0.618em (1/golden-ratio), configurable via baseRadius
  • Default border: a border with no colour class is the palette's grey-500 at opacity 0.25, configurable via borderOpacity
  • Touch targets (fingertip-xs through fingertip-xl): sized using sqrt(k) progressions
  • Card spacing: card-{typography} sets --card-spacing proportional to the heading's corrected size; card-dense switches to 0.6x

Touch targets on touch screens

Every touch-target size is a runtime variable on :root: --v-fingertip (read by h-fingertip, which every vunor button and input uses), --v-fingertip-half (px- / rounded-fingertip-half) and --v-fingertip-xs … --v-fingertip-xl (read by h-fingertip-s, size-fingertip-xs, min-h-fingertip-m, fingertip-s and the other sized utilities). Their defaults come from the fingertip preset option. One CSS rule gives every control a 44 px tap target on a touch screen and changes nothing on a mouse:

@media (pointer: coarse) {
  html:root {
    --v-fingertip: 44px;
    --v-fingertip-half: 22px;
    --v-fingertip-s: 44px;
    --v-fingertip-m: 44px;
  }
}

html:root outranks vunor's own :root, which declares the same variables, whatever order the stylesheets load in. Write max(3em, 44px) to never go below the em size on a large font. --v-fingertip-xs is the visible size of small icon buttons (a chip's remove button); raise it only if those are tap targets too.


Object-Driven Shortcuts

This is Vunor's approach to component styling. Instead of flat UnoCSS shortcut strings, Vunor uses structured nested objects where keys are variant prefixes and values are the classes to apply. This makes styles readable, and lets a later definition of the same shortcut add classes to one variant without restating the rest.

How It Works

defineShortcuts() creates shortcut objects:

import { defineShortcuts } from 'vunor/theme'

const shortcuts = defineShortcuts({
  // 'btn' is the shortcut name (used as a CSS class)
  btn: {
    '': 'h-fingertip flex items-center', // base classes (no prefix)
    'hover:': 'bg-current/05', // → "hover:bg-current/05"
    'dark:': 'text-white', // → "dark:text-white"
    '[&.btn-round]:': 'rounded-full', // → "[&.btn-round]:rounded-full"
  },
})

Each key is a variant prefix that gets prepended to every class in the value. At build time, toUnoShortcut() flattens the object into a single UnoCSS shortcut string:

h-fingertip flex items-center hover:bg-current/05 dark:text-white [&.btn-round]:rounded-full

Wherever you use class="btn", UnoCSS applies all those classes. The nesting is purely for readability and mergeability.

Breakpoints and Hover

Breakpoints are variant prefixes like any other, so a breakpoint key works at any depth:

defineShortcuts({
  'my-panel': {
    '': 'flex flex-col gap-$s',
    'md:': { '': 'flex-row gap-$m', 'dark:': 'bg-black' }, // → "md:flex-row md:gap-$m md:dark:bg-black"
  },
})

Vunor's own shortcuts paint hover only on devices whose primary input can hover. Use the same prefixes in yours:

import { defineShortcuts, whenHover, whenHoverIdle } from 'vunor/theme'

defineShortcuts({
  'my-row': { '': 'p-$s', [whenHover]: 'bg-current/05' }, // @media (hover: hover) { .my-row:hover }
  'my-tile': { [whenHoverIdle]: 'bg-current/10', 'active:': 'bg-current/20' }, // hover stands aside while pressed
})

whenCanHover is the bare @media (hover: hover) prefix, for a hover selector of your own: [`${whenCanHover}[&>.icon:hover]:`]: 'text-current-hl'.

Compound Variants

Nesting can go deeper for compound variants:

defineShortcuts({
  'my-btn': {
    '': 'current-bg-scope-color-500 text-white rounded-base',
    'hover:': 'current-bg-scope-color-400',
    'dark:': {
      '': 'text-white/90',
      'hover:': 'current-bg-scope-color-600 border-solid',
      // produces: "dark:text-white/90 dark:hover:current-bg-scope-color-600 dark:hover:border-solid"
    },
  },
})

Why Objects Instead of Strings?

Because they merge. When two shortcut objects define the same key, mergeVunorShortcuts() merges them, appending the later entry's classes. This is the key to Vunor's customization model: you can surgically override a single variant of a built-in style without rewriting the whole shortcut.

For example, to make all filled buttons pill-shaped while keeping every other variant (hover, active, dark mode, disabled) intact:

import { vunorShortcuts, defineShortcuts } from 'vunor/theme'

const myOverrides = defineShortcuts({
  'c8-filled': {
    '': 'rounded-full', // added to the base classes
  },
  'i8-flat': {
    '': 'border-b-2', // added to the base classes
  },
})

export default defineConfig({
  presets: [presetVunor()],
  shortcuts: [vunorShortcuts(myOverrides)],
})

Your 'c8-filled'.'': classes are added to the base classes of c8-filled, while all its hover:, dark:, active: variants remain intact from the defaults. Everything flows through a single merge pipeline, producing consistent CSS passed to UnoCSS.

Appending is not always overriding. UnoCSS writes the utilities of a shortcut in the order of its own rules, not in the order of the class string. An appended class wins over an earlier class of the same utility (rounded-full over rounded-base, one bg-* over another). Between different utilities the UnoCSS rule order decides: px-4 wins over p-2 and flex over block, whichever is written last. When an appended class has no effect, append the utility that wins (px-2 to change a px-4), mark your class important (!p-2), or replace the variant or the whole shortcut.

vunorShortcuts() returns the merged default shortcuts for all built-in styles (c8, i8, card, dialog, etc.). Pass your overrides as the first argument -- they take priority.

Replacing a Built-in Shortcut

To drop a built-in shortcut and use only your own classes under its name, mark your entry with replaceShortcut:

import { defineShortcuts, replaceShortcut, vunorShortcuts } from 'vunor/theme'

const mine = defineShortcuts({
  // vunor's own `press` is dropped; only these classes remain
  'press': replaceShortcut({ 'active:': 'scale-95' }),
  // a normal entry still merges into vunor's c8-filled
  'c8-filled': { '': 'rounded-full' },
})

export default defineConfig({
  presets: [presetVunor()],
  shortcuts: [vunorShortcuts(mine)],
})

replaceShortcut takes any form a normal entry takes (a string, an array or a shortcut object). On a shortcut name it replaces the whole shortcut; on a variant key, only that variant (below). In mergeVunorShortcuts([a, b, c]) a marked entry drops the definitions of its name from the earlier lists, and entries in later lists merge on top of it as usual. The mark survives the merge, so vunorShortcuts(mergeVunorShortcuts([x, y])) still replaces the built-in shortcut when y marks it.

Without vunor's merge, plain UnoCSS does the same: a shortcut in a later map of the shortcuts array replaces an earlier one of the same name, so shortcuts: [vunorShortcuts(), { press: 'active:scale-95' }] also drops vunor's press.

An app shortcut with the same name as a built-in one is merged with it unless it is marked: when a vunor release adds a shortcut whose name your app already uses, mark your app's one with replaceShortcut (or rename it).

Clearing or Replacing One Variant

Since 0.5.2. A later entry can clear or replace one variant of a shortcut and keep the rest:

| Value at a key | Effect | | --------------------------------- | ------------------------------------------- | | classes (string, array or object) | appended after the earlier classes | | '' or [] | drops every earlier class under the key | | replaceShortcut(value) | drops them, then adds value under the key |

import { defineShortcuts, replaceShortcut, vunorShortcuts, whenEnabled } from 'vunor/theme'

vunorShortcuts(
  defineShortcuts({
    'c8-filled': {
      // no dark-mode rim; every other variant of c8-filled stays
      'dark:': '',
      // pressed: only this fill, vunor's `c8-filled-active` is dropped
      [whenEnabled]: { 'active:': replaceShortcut('current-bg-scope-color-900') },
    },
  })
)
  • A key path covers every class whose variants start with it: 'dark:': '' also drops dark:hover:… classes. It matches the earlier classes however they are written, under nested keys or as dark:… in a string.
  • The shortcut name is a key too: { press: '' } leaves press with no classes.
  • Entries in later lists append after a cleared or replaced key, and the clear or replacement survives a merge: vunorShortcuts(mergeVunorShortcuts([x, y])) gives the same result as merging x and y onto the built-ins one after the other.

Semantic CSS Classes

All visual styling uses UnoCSS class strings -- no CSS files or scoped styles. Component appearance is defined through shortcuts, rules, and CSS custom properties.

Layers (layer-0 .. layer-4)

Layers provide full background + text + icon styling that automatically adapts to light/dark mode:

<div class="layer-0 scope-primary">
  <!-- Light: lightest bg, dark text. Dark mode: darkest bg, light text. -->
  <div class="layer-1">
    <!-- One step deeper -->
  </div>
</div>
  • layer-0 is the outermost (lightest in light mode, darkest in dark); layers: { reverseLight, reverseDark } flips either mode
  • Each subsequent layer steps progressively toward the opposite extreme
  • Apply scope-{color} to set which palette the layers use; they carry a hint of its colour (how much is palette.layerPalette)

Surfaces

Surfaces apply specific palette stops as background + text + icon:

<div class="scope-primary surface-100">Lightly tinted</div>
<div class="scope-error surface-500">Bold error banner</div>

surface-0 through surface-4 map to the layer scale: surface-N has the background of layer-N, also with layers.reverse*. surface-50 through surface-900 map to the main 10-step palette. Custom surfaces can be defined in palette.surfaces.

Current-Color System

Fine-grained color control via CSS custom properties:

<div class="current-bg-primary-500 bg-current text-current">Colored via CSS vars</div>
  • scope-{color} sets --scope-color-* vars for a palette
  • current-bg-{color}-{step} sets --current-bg
  • bg-current / text-current / icon-current apply the current-scoped colors
  • text-current-hl is accent text (links, a focused input's label): the scope's shade 700 on light and 300 in dark mode, which reaches WCAG AA (4.5:1) on every layer with the default palette and with strong brand colours. An accent set with current-hl-* is painted as given. Before 0.5.0 it was shade 500 in both modes; text-scope-color-500 paints that on one element.

Clickable Styles (c8)

Button and clickable element design variants:

| Class | Description | | ------------- | --------------------------------------- | | c8-filled | Solid background, white text (WCAG AA) | | c8-flat | Transparent background, colored text | | c8-outlined | Border + colored text, transparent fill | | c8-light | Light tinted background, colored text |

Each includes hover, active, and focus states. Hover paints only on devices whose primary input can hover (@media (hover: hover)), so a tap on a touch screen does not leave it stuck on; press (:active) paints everywhere. Hover and press do not paint on a disabled element: disabled, aria-disabled="true" or data-disabled (the same definition the disabled-soft shortcut uses to fade a disabled element). Keyboard focus still paints, so an aria-disabled control stays visibly focusable. Apply on any element alongside scope-{color}:

<button class="scope-primary c8-filled">Save</button>
<button class="scope-error c8-flat">Cancel</button>

c8-filled rests on shade 600 and goes to 700 on hover and 800 on press, in light and dark mode. With the default palette white text reaches WCAG AA (4.5:1) on all three fills for every palette colour. In dark mode a 1px inset rim in shade 500 keeps the button's edge at 3:1 or more against every dark layer. If you tune the palette, check your colours' 600 shades: with mainPalette.preserveInputColor: true and good: '#22c55e', for example, good-600 gives white text only 4.18:1.

These fills are the default since 0.4.2. To bring back the fills of 0.4.1 and earlier (500 at rest; 600 on hover and 700 on press, 400 and 300 in dark mode), append three entries. Each class you append is a current-bg-* like vunor's own, and an appended class wins over an earlier class of the same utility, so no replaceShortcut is needed:

import { defineShortcuts, vunorShortcuts } from 'vunor/theme'

vunorShortcuts(
  defineShortcuts({
    'c8-filled': { '': 'current-bg-scope-color-500' },
    'c8-filled-hover': { '': 'current-bg-scope-color-600', 'dark:': 'current-bg-scope-color-400' },
    'c8-filled-active': { '': 'current-bg-scope-color-700', 'dark:': 'current-bg-scope-color-300' },
  })
)

Add 'dark:': '' to the c8-filled entry to drop the dark-mode rim too. With the default palette, white text on these fills measures 3.4–4.1:1 at rest and 2.1–3.0:1 on the dark-mode hover and press fills, below WCAG AA.

To change a c8 hover colour, override the same key vunor uses, so your class merges into vunor's rule and wins:

import { defineShortcuts, vunorShortcuts, whenEnabled, whenHoverIdle } from 'vunor/theme'

vunorShortcuts(
  defineShortcuts({
    'c8-filled': { [whenEnabled]: { [whenHoverIdle]: 'current-bg-scope-color-900' } },
  })
)

whenEnabled and whenDisabled are the variant-prefix keys for the shared disabled definition above. Use them in your own shortcuts so a state matches the same elements vunor treats as disabled: { [whenEnabled]: { 'active:': 'bg-current/20' }, [whenDisabled]: 'cursor-not-allowed' }.

For press feedback on any clickable, add press: it shrinks an enabled element slightly while it is :active ([--press-scale:0.9] changes the amount; add [transition-property:scale] duration-150 to ease it). It ignores data-active, which Reka UI and vunor use for "current" (selected tab, pressed toggle, open popover trigger).

The btn layout primitive fades a disabled element to opacity 0.8. That is a default: disabled-soft (0.4) or a disabled:opacity-* utility replaces it, whether written on the element or composed with btn in your own shortcut ('my-btn': 'btn disabled-soft').

Inputable Styles (i8)

Input field design variants:

| Class | Description | | ----------- | ---------------------------- | | i8-flat | Bottom border only (minimal) | | i8-filled | Full border with background | | i8-round | Pill-shaped (fully rounded) |

Common sub-shortcuts: i8-input, i8-label (floating label), i8-hint, i8-prepend / i8-append, i8-before / i8-after.


Full Configuration Example

import { defineConfig } from 'unocss'
import { presetVunor, vunorShortcuts } from 'vunor/theme'

export default defineConfig({
  presets: [
    presetVunor({
      // -- Perceptual color palette --
      palette: {
        colors: {
          primary: '#6B4EFF',
          secondary: '#FF6B4E',
          good: '#22C55E',
          error: {
            color: '#DC2626',
            vivid: { dark: 0.3, light: 0.3 },
            saturate: { dark: -0.1, light: -0.1 },
          },
        },
        lightest: 0.97,
        darkest: 0.24,
        layersDepth: 0.08,
      },

      // -- Golden-ratio spacing --
      spacingFactor: 1.618,

      // -- Global border radius --
      baseRadius: '0.5em', // default: 0.618em (1/golden-ratio)

      // -- Opacity of the default border colour (`border` with no colour class) --
      borderOpacity: 0.25,

      // -- Typography overrides --
      typography: {
        h1: { size: 4, weight: 300, boldWeight: 700 },
        body: { height: 1.75 },
        label: { weight: 600 },
      },

      // -- Font rendering --
      actualFontHeightFactor: 0.76,
      actualFontHeightTopBottomRatio: 0.5,

      // -- Touch targets --
      fingertip: {
        xs: '1.25em',
        s: '2em',
        m: '3em',
        l: '3.5em',
        xl: '4em',
      },

      // -- Card padding multipliers --
      cardSpacingFactor: {
        regular: 1,
        dense: 0.6,
      },

      // -- Layer direction --
      layers: {
        reverseDark: false,
        reverseLight: false,
      },

      // -- Page-level element styles --
      // body / figcaption / h1–h6 typography (including a level's `font` and
      // `css` above) and scrollbars. Set false to use only the classes and
      // theme: variables stay, element rules go.
      baseStyles: true,
    }),
  ],
  shortcuts: [vunorShortcuts()],
})

Quick Start

Vue 3 + Vite

pnpm add vunor vue unocss reka-ui

vue, unocss and reka-ui are peer dependencies: your app provides them, so it has a single copy of each (two copies of Vue or Reka break reactivity and SSR). npm and pnpm install missing peers automatically, but listing them pins the versions you use. vue-router is optional: <VuButton :to> uses the RouterLink your app registers.

vite.config.ts

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import UnoCSS from 'unocss/vite'
import Components from 'unplugin-vue-components/vite'
import { VunorVueResolver } from 'vunor/vite'

export default defineConfig({
  plugins: [
    vue(),
    UnoCSS(),
    Components({
      resolvers: [VunorVueResolver],
    }),
  ],
})

uno.config.ts

import { defineConfig } from 'unocss'
import { presetVunor, vunorShortcuts } from 'vunor/theme'

export default defineConfig({
  presets: [presetVunor()],
  shortcuts: [vunorShortcuts()],
})

main.ts

import { createApp } from 'vue'
import '@unocss/reset/tailwind.css'
import 'virtual:uno.css'
import App from './App.vue'

createApp(App).mount('#app')

No safelist is needed. The UnoCSS preset includes a built-in extractor that detects <VuButton>, <VuInput>, etc. in your templates and automatically includes the required component CSS classes.

Nuxt 3

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['vunor/nuxt'],
})

The Nuxt module auto-registers all Vu* components.


Vue Components (Optional)

Vunor ships 30+ accessible Vue 3 components built on Reka UI. All use the Vu prefix in templates. Auto-import via VunorVueResolver or the Nuxt module.

The components are consumers of the theme system described above -- they use c8, i8, layers, surfaces, and the typography scale. You can use the theme engine without any of these components, or use them as-is, or override their styles through the shortcut object system.

Layout

| Component | Description | | -------------- | --------------------------------------------- | | VuAppLayout | App shell with header, sidebar, footer slots | | VuCard | Card container with typography-driven spacing | | VuCardHeader | Card header with title and actions | | VuCardInner | Nested card section | | VuTabs | Tabbed content panels | | VuDialog | Modal dialog with overlay | | VuPopover | Floating popover anchored to a trigger |

Form Inputs

| Component | Description | | -------------- | ----------------------------------------- | | VuInput | Text / textarea input with floating label | | VuSelect | Dropdown select | | VuCombobox | Searchable dropdown with filtering | | VuCheckbox | Checkbox with indeterminate state | | VuRadioGroup | Radio button group | | VuSlider | Range slider | | VuDatePicker | Date picker with calendar popup | | VuLabel | Form label |

Actions

| Component | Description | | -------------- | ------------------------------------------- | | VuButton | Button with icon, loading, and link support | | VuMenu | Navigation / command menu | | VuMenuItem | Menu item | | VuPagination | Page navigation |

Feedback

| Component | Description | | -------------------- | ---------------------------------- | | VuAppToasts | Toast notification container | | VuProgressBar | Progress bar | | VuLoadingIndicator | Circular loading spinner | | VuInnerLoading | Overlay loading within a container |

Utility

| Component | Description | | --------------------- | ------------------------------------------- | | VuIcon | Icon display (integrates with UnoCSS icons) | | VuOverflowContainer | Handles content overflow | | VuCalendar | Standalone calendar grid |

Package Exports

vunor            PI composables (provide/inject helpers)
vunor/theme      UnoCSS preset, shortcuts, palette, component classes
vunor/utils      mergeCssClasses, useProvideInject
vunor/vite       VunorVueResolver for unplugin-vue-components
vunor/nuxt       Nuxt 3 module
vunor/{Name}     Individual Vue components (e.g. vunor/Button)

AI Agent Skill

Install the Vunor AI skill for context-aware assistance in AI coding agents (Claude Code, Cursor, Windsurf, Codex, OpenCode):

npx skills add mav-rik/vunor

The skill teaches your agent the design system, semantic classes (scope-*, layer-*, surface-*, c8-*, i8-*), shortcut-override patterns, palette tuning, and the component API — so it writes correct code without hallucinating.

Learn more about AI agent skills at skills.sh.

License

MIT