Open-Source UI Component Library
Elevate your projects with ZenUI, a free, lightweight, customizable UI component library built with Vue3 and Tailwind CSS.
Clone the repository:
git clone https://github.com/zenui-labs/zenui-library-vue.gitGo to the project directory:
cd zenui-libraryInstall the all dependencies:
npm installRun the project:
npm run devZenUI is a plug-and-play component library using by Tailwind CSS styling. Just copy the code and paste it into your project, no installation or configuration needed!
ZenUI components are designed for quick and easy use. To get started, simply:
- Find the component you want in the ZenUI library Vue.
- Copy the code snippet.
- Paste it into your project, anywhere HTML is supported.
Each component in ZenUI is built with Tailwind CSS classes. For example:
<button class="px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600">
Click Me
</button>This button is ready to go. No props or extra configuration required.
Since ZenUI components use Tailwind CSS, you can easily customize them by modifying or adding classes. Here’s how:
To adjust colors, sizes, or other styling attributes, modify the Tailwind classes:
<!-- Original Button -->
<button class="px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600">
Click Me
</button>
<!-- Customized Button -->
<button class="px-6 py-3 bg-green-500 text-white rounded-lg hover:bg-green-600">
Customized Button
</button>bg-green-500changes the background color.px-6 py-3adjusts padding for larger button size.rounded-lgincreases the border radius for a more rounded button.
Feel free to add any Tailwind CSS class to further style components, for example, adding shadow effects or animations.
<div class="p-4 bg-white shadow-lg rounded-lg hover:shadow-xl transition-shadow">
<h2 class="text-lg font-semibold">ZenUI Card</h2>
<p class="text-gray-700">This is a customizable card component.</p>
</div>shadow-lgadds a shadow for depth.hover:shadow-xlincreases the shadow on hover.transition-shadowadds smooth transitions for better UX.
- Start with Defaults: Use ZenUI components as provided before customizing, so you know how they behave.
- Use Tailwind’s Utility-First Approach: Tailwind CSS is optimized for utility classes, so apply additional classes as needed instead of rewriting CSS.
- Document Customizations: Keep notes on any modifications to standard ZenUI components for easy maintenance.
We welcome contributions from the community! Please refer to the CONTRIBUTING.md file for more details on how to contribute.
This project is licensed under the MIT License - see the LICENSE file for details.
