0.5.3 • Published 10 months ago

@poupe/vue v0.5.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@poupe/vue

API Reference NPM Version License

Vue component library for Poupe UI framework with theme customization and accessibility support.

Features

  • 🧩 Feature-rich Vue 3 component library
  • 🎨 Built-in theme customization
  • ♿ Strong focus on accessibility
  • 🌓 Dark/light mode theming
  • 🔧 Fully typed with TypeScript
  • 📱 Responsive design out of the box

Installation

npm install @poupe/vue @poupe/theme-builder
# or
yarn add @poupe/vue @poupe/theme-builder
# or
pnpm add @poupe/vue @poupe/theme-builder

For TailwindCSS integration:

npm install @poupe/tailwindcss

Basic Setup

import { createApp } from 'vue'
import { createPoupe } from '@poupe/vue'
import App from './App.vue'

// Create Vue app
const app = createApp(App)

// Setup Poupe with theme
app.use(createPoupe({
  theme: {
    colors: {
      primary: '#1976d2',
      secondary: '#9c27b0',
      // Add more colors as needed
    }
  },
  // Optional: component-specific options
  components: {
    // Button specific options
    button: {
      defaultVariant: 'filled'
    }
  }
}))

app.mount('#app')

Using Components

<template>
  <div>
    <PButton variant="filled" color="primary">Click Me</PButton>

    <PCard>
      <template #header>Card Header</template>
      Card content goes here
      <template #footer>Card Footer</template>
    </PCard>

    <PInput v-model="inputValue" label="Username" />
  </div>
</template>

<script setup>
import { ref } from 'vue'

const inputValue = ref('')
</script>

Available Exports

  • Main export: Core components and configuration
  • config: Theme configuration utilities
  • resolver: Component resolving for build tools
  • theme-scheme: Theme visualization component

Theme Scheme Component

The ThemeScheme component is exported separately as it's a specialized utility component for visualizing and debugging theme colors:

// Import from the separate export
import { ThemeScheme } from '@poupe/vue/theme-scheme'

This component displays all theme color schemes and is useful for:

  • Visualizing your theme's color palette
  • Debugging theme configurations
  • Showcasing theme variations to stakeholders

TailwindCSS Integration

For optimal experience, integrate with TailwindCSS:

// tailwind.config.js
import { poupePlugin } from '@poupe/tailwindcss'

export default {
  // ...
  plugins: [
    poupePlugin()
  ]
}

Related Packages

Requirements

  • Vue ^3.5.13
  • Node.js >=20.19.1
  • @poupe/theme-builder ^0.7.0
  • @poupe/tailwindcss ^0.2.6

License

MIT licensed.

0.1.0

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.1.2

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.4.5

10 months ago

0.3.6

11 months ago

0.5.3

10 months ago

0.4.4

10 months ago

0.3.5

11 months ago

0.5.0

10 months ago

0.4.1

11 months ago

0.3.2

1 year ago

0.1.4

1 year ago

0.4.0

11 months ago

0.3.1

1 year ago

0.2.2

1 year ago

0.1.3

1 year ago

0.5.2

10 months ago

0.4.3

10 months ago

0.3.4

11 months ago

0.1.6

1 year ago

0.5.1

10 months ago

0.4.2

11 months ago

0.3.3

1 year ago

0.1.5

1 year ago

0.0.0

2 years ago