Note
This is a fork of the original Origin UI project. This project is unaffiliated with the original. I appreciate their work and have developed these Vue components based on their design.
Note
This is a work in progress. For some components, the implementation is coming soon using (e.g. Radix Vue).
Origin UI - Vue is a collection of copy-and-paste components for quickly building app UIs using Vue. The collection currently features 90+ components and is updated with new examples if the original library is updated.
- Built with Vue and TailwindCSS
- Fully customizable
- Responsive design
Differences from the original Origin UI
- Vue instead of
Next.js - Lucide Vue Next instead of
Lucide React - Radix Vue instead of
Radix UI
Note
This project uses pnpm as package manager.
-
Clone the repository:
git clone https://github.com/Jettonn/originui-vue.git
-
Install dependencies:
pnpm install
-
Run the development server:
pnpm dev
-
Open http://localhost:5173 with your browser to see the result.
You can copy and use the components in your Vue project. Note that some components may require additional libraries - refer to the code comments at the top of each file for specific requirements.
If you want to use the components in your project, you need to setup the following:
In the src/lib/utils.ts
folder you will find the common cn
function for Tailwind CSS class merging and the buttonVariants
function for generating the button classes.
You need to copy the base components from the src/lib/components/ui
folder to your project and adjust the imports accordingly.
Import the CSS in your src/lib/app.css
or src/lib/main.css
file (the following is based on Tailwind CSS):
@layer base {
:root {
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;
--card: 0 0% 100%;
--card-foreground: 240 10% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;
--primary: 240 5.9% 10%;
--primary-foreground: 0 0% 98%;
--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;
--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;
--accent: 240 4.8% 95.9%;
--accent-foreground: 240 5.9% 10%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 100%;
--border: 240 5.9% 90%;
--input: 240 4.9% 83.9%;
--ring: 240 5% 64.9%;
--radius: 0.5rem;
}
.dark {
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;
--card: 240 10% 3.9%;
--card-foreground: 0 0% 98%;
--popover: 240 10% 3.9%;
--popover-foreground: 0 0% 98%;
--primary: 0 0% 98%;
--primary-foreground: 240 5.9% 10%;
--secondary: 240 3.7% 15.9%;
--secondary-foreground: 0 0% 98%;
--muted: 240 5.9% 10%;
--muted-foreground: 240 4.4% 58%;
--accent: 240 5.9% 10%;
--accent-foreground: 0 0% 98%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 100%;
--border: 240 3.7% 15.9%;
--input: 240 3.7% 15.9%;
--ring: 240 3.8% 46.1%;
}
}
- Inputs and Textarea
- Buttons
- Checkbox, Radio, and Switch
- Select
- Sliders
- Alert, Notification, and Banner (available soon)
- Dialogs
- (More components coming soon)
Contributions are welcome! Please feel free to submit a Pull Request.
Feel free to use these components in personal and commercial projects. However, while the tutorials and demos are available for your use as-is, they cannot be redistributed or resold.
- Origin UI - The original project from which this Vue version is adapted
- Vue
- TailwindCSS
- Lucide Icons
- Radix Vue
For any questions or feedback, please open an issue on this repository.
This project is a work in progress, and I am continuously working to improve and expand this collection.