0.4.2 • Published 5 months ago
@poupe/nuxt v0.4.2
@poupe/nuxt
Nuxt module for integrating Poupe UI framework with theme customization and components.
Features
- 🧩 Easy integration of Poupe UI with Nuxt applications
- 🔄 Auto-imports of Poupe Vue components
- 🎨 Theme customization through Nuxt config
- 🌓 Dark/light mode support with integration to @nuxtjs/color-mode
- 🛠️ TailwindCSS configuration included
Installation
npm install @poupe/nuxt @poupe/vue @poupe/theme-builder
# or
yarn add @poupe/nuxt @poupe/vue @poupe/theme-builder
# or
pnpm add @poupe/nuxt @poupe/vue @poupe/theme-builderSetup
Add the module to your nuxt.config.ts:
export default defineNuxtConfig({
modules: [
'@poupe/nuxt'
],
poupe: {
// Configuration options
theme: {
colors: {
primary: '#1976d2',
secondary: '#9c27b0',
// Add more colors as needed
}
}
}
})Configuration Options
Theme Configuration
export default defineNuxtConfig({
modules: ['@poupe/nuxt'],
poupe: {
theme: {
colors: {
primary: '#1976d2',
secondary: '#9c27b0',
// Other colors
},
// Other theme options
spacing: {
// Custom spacing
},
borderRadius: {
// Custom border radius
}
},
// Enable/disable dark mode
darkMode: true,
// Component options
components: {
prefix: 'P', // Default prefix for components
// Component-specific options
}
}
})Using Components
Once installed, all Poupe components are automatically available in your Nuxt application:
<template>
<div>
<PButton>Click me</PButton>
<PCard>
<h2>Card Title</h2>
<p>Card content</p>
</PCard>
</div>
</template>Development
For local development, check out the playground directory.
Related Packages
- @poupe/css - CSS-in-JS utilities
- @poupe/theme-builder - Theme token generation
- @poupe/vue - Vue components library
- @poupe/tailwindcss - TailwindCSS integration
Requirements
- Nuxt ^3.17.2
- Node.js >=20.19.1
- @poupe/theme-builder ^0.7.0
- @poupe/vue ^0.4.1
License
MIT licensed.
0.1.0
9 months ago
0.3.0
5 months ago
0.2.1
7 months ago
0.1.2
9 months ago
0.2.0
7 months ago
0.1.1
9 months ago
0.3.6
5 months ago
0.2.7
6 months ago
0.3.5
5 months ago
0.2.6
6 months ago
0.4.1
5 months ago
0.3.2
5 months ago
0.2.3
7 months ago
0.1.4
8 months ago
0.4.0
5 months ago
0.3.1
5 months ago
0.2.2
7 months ago
0.1.3
8 months ago
0.3.4
5 months ago
0.2.5
6 months ago
0.4.2
5 months ago
0.3.3
5 months ago
0.2.4
6 months ago
0.1.5
8 months ago
0.0.0
1 year ago