@pixela/voxel-ui-nuxt

Nuxt module for @pixela/voxel-ui
1,793
Install
npm install @pixela/voxel-ui-nuxt
Latest Version:0.6.1
Vue:3
License:MIT
Last Updated:Oct 2, 2026
Links: GitHub  ·  npm
Maintainer: pblinux

@pixela/voxel-ui-nuxt

Nuxt module for @pixela/voxel-ui — auto-imports all components and composables, and injects the design-token CSS.

Install

npm install @pixela/voxel-ui-nuxt @pixela/voxel-ui

Setup

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@pixela/voxel-ui-nuxt'],
})

That's it — components and composables are auto-imported and CSS is injected automatically.

Usage

Components are auto-imported with a Vx prefix:

<template>
  <VxButton color="primary">Save</VxButton>
  <VxDialog title="Confirm" description="Are you sure?">
    <template #trigger><VxButton>Open</VxButton></template>
  </VxDialog>
</template>

Composables are auto-imported too:

const { theme, setTheme } = useTheme()
const toast = useToast()
const sidebar = useSidebar()

Naming note: the Nuxt module registers local names with a Vx prefix (VxButton), while the underlying @pixela/voxel-ui barrel exports use an all-caps VX prefix (VXButton). Use <VxButton /> in Nuxt templates and VXButton for direct imports.

Options

Configure via the voxel key in nuxt.config.ts:

export default defineNuxtConfig({
  modules: ['@pixela/voxel-ui-nuxt'],
  voxel: {
    prefix: '',          // prepended to component names
    components: true,    // set false to disable component auto-import
    theme: '~/assets/theme.css', // extra CSS injected after tokens
  },
})
Option Type Default Description
prefix string '' Prepended to auto-imported component names (e.g. 'Ui' → <UiVxButton>)
components boolean true Enable component auto-import
theme string undefined Path to extra CSS loaded after the token stylesheet

License

MIT

Related Packages

@pisandelli/daredash

Provides a design token-powered UI component library and styling system for Nuxt...

6,023 3
@7pmlabs/design-system-nuxt

Nuxt 4 module for @7pmlabs/design-system — auto-imports components, composables,...

2,840 1
@solar-icons/nuxt

Nuxt module for easily integrating Solar Icons into your Nuxt 3+ applications.

9,600 224
@vuecs/nuxt

Nuxt module for vuecs — auto-imports @vuecs/design tokens and ships SSR-safe col...

5,119 4
@smalt-ui/nuxt

Nuxt module for @smalt-ui/core: component auto-import, styles, color mode

451 0

Version History

Version Released Vue License
0.6.1 ^3.0 MIT
0.6.0 ^3.0 MIT
0.5.0 ^3.0 MIT
0.4.2 ^3.0 MIT
0.4.1 ^3.0 MIT