UNPKG

keep-vue

Version:

Keep Vue is an open-source component library built on top of Vue3 and Tailwind CSS. It offers a collection of pre-designed UI components and styles that you can easily integrate into your web applications.

233 lines (163 loc) 4.88 kB
# Keep Vue Keep Vue is an open-source component library built on Tailwind CSS and Vue Js. It provides a versatile set of pre-designed UI components that enable developers to streamline the creation of modern, responsive, and visually appealing web applications. ![Keep Vue](https://images.prismic.io/staticmania/Z2VqiZbqstJ98uxt_keep-vue-readme.png?auto=format,compress) ## Table of Contents - [Keep Vue](#keep-vue) - [Table of Contents](#table-of-contents) - [Installation](#installation) - [Vue Application](#vue-application) - [Nuxt JS Application](#nuxt-js-application) - [Usage](#usage) - [Components](#components) - [Contributing](#contributing) - [Figma](#figma) - [License](#license) ## Installation ## Vue Application Setting Up Keep Vue in vue Application `Step 1:` Create a vue Application ```console npm create vite@latest my-project -- --template vue cd my-project ``` `Step 2:` Install Tailwind CSS ```console npm i -D autoprefixer postcss tailwindcss npx tailwindcss init -p ``` `Step 3:` Install Keep Vue: ```console npm i keep-vue ``` Or with Yarn ```console yarn add keep-vue ``` Or with Pnpm ```console pnpm add keep-vue ``` `Step 4:` Go to the `tailwind.config.js` file and paste the following code: ```tsx import { keepTheme } from "keep-vue/keepTheme"; const config = { content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"], theme: { extend: {}, }, plugins: [], }; export default keepTheme(config); ``` `Step 5:` Add Tailwind CSS to src/main.css File: ```css @import "keep-vue/css"; @tailwind base; @tailwind components; @tailwind utilities; ``` Congratulations! You have successfully installed the Keep Vue on your vue application. Now you can import any component from keep-vue and use it in your project. ```tsx import { Button } from "keep-vue"; </script> <template> <Button>Keep Vue</Button> </template> ``` ## Nuxt JS Application You can easily integrate `keep-vue` into your Nuxt.js application. `Step 1:` Install Nuxt JS Application with npx ```console npx nuxi@latest init <project-name> ``` Or with Yarn ```console yarn dlx nuxi@latest init <project-name> ``` Or with pnpm ```console pnpm dlx nuxi@latest init <project-name> ``` `Step 2:` Install Tailwind module for Nuxt with npm ```console npx nuxi@latest module add tailwindcss npx tailwindcss init ``` Or with Yarn ```console yarn add -D @nuxtjs/tailwindcss npx tailwindcss init ``` if you use yarn for installing tailwind then you need to add the tailwind module in the `nuxt.config.js` file manually. ```tsx modules: [ //rest modules... '@nuxtjs/tailwindcss' ], ``` `Step 3:` Install Keep Vue with npm ```console npm install keep-vue ``` Or with yarn ```console yarn add keep-vue ``` Or with pnpm ```console pnpm add keep-vue ``` `Step 4:` Go to the `tailwind.config.js` file and paste the following code ```js import { keepTheme } from "keep-vue/keepTheme"; module.exports = keepTheme({ content: [ "./components/**/*.{js,vue,ts}", "./layouts/**/*.vue", "./pages/**/*.vue", "./plugins/**/*.{js,ts}", "./app.vue", "./error.vue", ], theme: { extend: {}, }, plugins: [], }); ``` `Step 5:` Create a style folder and then add Tailwind CSS to `main.css` File: ```css @import "keep-vue/css"; @tailwind base; @tailwind components; @tailwind utilities; ``` Congratulations! You have successfully installed the Keep Vue on your nuxt application. Now you can import any component from keep-vue and use it in your project. ## usage ```jsx import { Button } from "keep-vue"; </script> <template> <Button>Keep Vue</Button> </template> ``` ## Components The Keep Vue offers a wide range of components to build your user interfaces. For detailed usage and examples of each component, refer to our [component documentation](https://vue.keepdesign.io/docs/getting-started/introduction). ## Contributing If you want to contribute to the Keep Vue, you can follow the [contributing guide](https://github.com/StaticMania/keep-vue/blob/main/Contribute.md). ## Contributors This project exists thanks to all the people who contribute: <a href="https://github.com/StaticMania/keep-vue/graphs/contributors"> <img src="https://contrib.rocks/image?repo=StaticMania/keep-vue"/> </a> ## Figma If you need access to Figma design files for the components, you can checkout our website for more information: [Get access to the Figma design files](https://keepdesign.io) ## License The keep-vue name and logos are trademarks of StaticMania. [Read about the licensing terms](https://github.com/StaticMania/keep-vue/blob/main/License)