0.2.12 • Published 2 years ago

co-apollo-ds v0.2.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Co Apollo Design System

A design system based on tailwindcss for Vue3.

How to install

With npm:

npm install co-apollo-ds

With yarn:

yarn add co-apollo-ds

Add tailwindcss dependencies to your dev dependencies:

// package.json

...
devDependencies: {
    ...
    "tailwindcss": "npm:@tailwindcss/postcss7-compat",
    "postcss": "^7",
    "autoprefixer": "^9"
    ...
}
...

Install dependencies with your package manager:

npm install
yarn install

Run tailwindcss init command:

npx tailwindcss init -p

Write tailwindcss config:

module.exports = {
  content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
  theme: {
    extend: {},
  },
  plugins: [],
}

Create a main css file to add tailwindcss directives:

/* ./src/main.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

Import in your main file:

import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

// import CoApollo
import CoApollo from "co-apollo-ds";
import "./main.css";

createApp(App)
    .use(store)
    .use(router)
    .use(CoApollo) // add CoApollo
    .mount("#app");

I hope you enjoyed!

0.2.12

2 years ago

0.2.11

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.34

2 years ago

0.1.33

2 years ago

0.1.32

2 years ago

0.1.31

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago