@smalt-ui/nuxt
| Install | |
|---|---|
npm install @smalt-ui/nuxt |
|
| Latest Version: | 2.0.0 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Sep 25, 2026 |
| Links: | GitHub · npm |
@smalt-ui/nuxt
Nuxt module for @smalt-ui/core: component auto-import, styles, color mode
and SSR setup out of the box.
Part of the Smalt UI monorepo. Shared requirements, installation and workspace commands are described in the root README.
Installation
pnpm add @smalt-ui/nuxt @smalt-ui/core
// nuxt.config.ts
export default defineNuxtConfig({
modules: ['@smalt-ui/nuxt'],
sui: {
// options (see below)
},
})
The module registers the components for auto-import, includes @smalt-ui/core/styles.css, adds
the .s-root isolation container and sets up color mode. reka-ui is a peer dependency.
Nuxt 3 and Nuxt 4 are supported: @nuxt/kit is declared with the ^3.0.0 || ^4.0.0 range, so
the module uses the app's kit instead of pulling in a second copy.
Options (sui config key)
| Option | Type | Default | Description |
|---|---|---|---|
prefix |
string |
'' |
Name prefix for auto-imported components |
css |
boolean |
true |
Include the global @smalt-ui/core/styles.css styles |
colorMode |
boolean |
true |
Enable light/dark control (data-theme) |
container |
boolean |
true |
Add the .s-root isolation class to the app root |
locale |
'en' |
'en' |
Locale of the library strings (the only built-in one) |
messages |
Record<string, string> |
— | Override individual library strings, e.g. to translate them |
Package scripts
| Script | Description |
|---|---|
pnpm dev:prepare |
Stub + module type preparation for development |
pnpm build |
Build the module (nuxt-module-build) |
Run from the root: pnpm --filter @smalt-ui/nuxt <script>.
Related Packages
Provides a design token-powered UI component library and styling system for Nuxt...
Nuxt module for easily integrating Solar Icons into your Nuxt 3+ applications.
Nuxt module for By Sages Elements — auto-imports the paper-and-ink Vue component...
Nuxt 4 module for @7pmlabs/design-system — auto-imports components, composables,...
Nuxt module for vuecs — auto-imports @vuecs/design tokens and ships SSR-safe col...
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.0.0 | ^3.0 | MIT | |
| 1.0.1 | ^3.0 | MIT | |
| 1.0.0 | ^3.0 | MIT |