@robuust-digital/vue-components
v1.0.1-rc.3
Published
A modern and customizable component library built with **Vue 3** and **Tailwind CSS**, designed to deliver a flexible, cohesive UI experience across all projects. Quickly integrate reusable components with ease, and customize them to suit your unique bran
Downloads
566
Readme
Robuust Vue 3 Components
A modern and customizable component library built with Vue 3 and Tailwind CSS, designed to deliver a flexible, cohesive UI experience across all projects. Quickly integrate reusable components with ease, and customize them to suit your unique branding needs.
Features
- ✨ Vue 3 Components: Carefully crafted components that work seamlessly with Vue 3
- 💎 Tailwind CSS Integration: Leverage Tailwind CSS for styling, with full theme customization support
- 🎨 Theming & Customization: Tailor components to your project’s branding directly from the
tailwind.config.js
- 🖖🏽 Accessibility First: Components are designed with accessibility in mind, ensuring compliance with best practices
- 📦 Nuxt 3 module available: Easily integrate with Nuxt 3 projects for seamless server-side rendering and enhanced performance
Docs
Installation
- Install the component library via yarn or npm:
yarn add @robuust-digital/vue-components
npm i @robuust-digital/vue-components
- Add the component library plugin to your
tailwind.config.js
:
// tailwind.config.js
import components from '@robuust-digital/vue-components/tailwind';
export default {
theme: {
extend: {
// Customize component styles here
components: (theme) => ({
button: {
primary: {
backgroundColor: theme('colors.yellow.500'),
color: '#000',
},
secondary: {
backgroundColor: theme('colors.blue.500'),
color: '#fff',
},
},
}),
},
},
plugins: [components],
};
For Nuxt 3 Projects
Add the module to your nuxt.config.ts
or nuxt.config.js
:
export default defineNuxtConfig({
modules: ['@robuust-digital/vue-components/nuxt'],
});
This will automatically register all components globally in your Nuxt application, making them available for immediate use.
Example Tailwind Configuration
With this configuration, you can create a custom theme for all components. Each project can apply its own colors and style variants by simply adjusting these values.
Development
To contribute or make adjustments:
- Clone the repository and install dependencies:
git clone https://github.com/robuust/vue-components.git
cd component-library
yarn install
- Run the development server to preview components:
yarn dev
- Build for production:
yarn build
License
MIT © Robuust Digital
With @robuust-digital/vue-components
, bring consistency, flexibility, and a polished look to all your Vue 3 applications.