1.1.0 • Published 4 months ago

keep-vue v1.1.0

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

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

Table of Contents

Installation

Vue Application

Setting Up Keep Vue in vue Application

Step 1: Create a vue Application

npm create vite@latest my-project -- --template vue
cd my-project

Step 2: Install Tailwind CSS

npm i -D autoprefixer postcss tailwindcss
npx tailwindcss init -p

Step 3: Install Keep Vue:

npm i keep-vue

Or with Yarn

yarn add keep-vue

Or with Pnpm

pnpm add keep-vue

Step 4: Go to the tailwind.config.js file and paste the following code:

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:

@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.

 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

npx nuxi@latest init <project-name>

Or with Yarn

yarn dlx nuxi@latest init <project-name>

Or with pnpm

pnpm dlx nuxi@latest init <project-name>

Step 2: Install Tailwind module for Nuxt

with npm

npx nuxi@latest module add tailwindcss
npx tailwindcss init

Or with Yarn

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.

  modules: [
  //rest modules...
 '@nuxtjs/tailwindcss'
  ],

Step 3: Install Keep Vue

with npm

npm install keep-vue

Or with yarn

yarn add keep-vue

Or with pnpm

pnpm add keep-vue

Step 4: Go to the tailwind.config.js file and paste the following code

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:

@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

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.

Contributing

If you want to contribute to the Keep Vue, you can follow the contributing guide.

Contributors

This project exists thanks to all the people who contribute:

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

License

The keep-vue name and logos are trademarks of StaticMania.

Read about the licensing terms