0.1.23 • Published 2 years ago

@insamee-app/components v0.1.23

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

Components

This lib a set of components design for the app from InsameeApp.

Tech Stack

Client: Nuxtjs, Nuxt/Components, Composition API, VueUse TailwindCSS, Storybook

Installation

This project uses yarn.

    # install dependencies
    yarn

    # develop components
    yarn storybook

    # build storybook website
    yarn build

    # lint files
    yarn lint

This project is designed to be used in Nuxtjs project using Nuxt/Components and TailwindCSS. In fact, it uses the library authors feature from Nuxt/Components.

To setup in a project, add the package to the build modules in your nuxt.config.js:

export default {
  buildModules: ['@insamee-app/components/nuxt'],
}

Then, you have to tell to TailwindCSS to purge these components in your tailwind.config.js:

purge: {
    content: ['node_modules/@insamee-app/components/src/components/**'],
}

add plugin for VScrollLock in plugins/vue-scroll-lock.js :

import Vue from 'vue'
import VScrollLock from 'v-scroll-lock'

Vue.use(VScrollLock)

add plugin for Vuelidate in plugins/vuelidate.js :

import Vue from 'vue'
import Vuelidate from 'vuelidate'

Vue.use(Vuelidate)

and in nuxt.config.js :

export default {
  plugins: ['~/plugins/vue-scroll-lock.js', '~/plugins/vuelidate.js'],
}

and add a minimal setup for colors:

colors: {
    'transparent': 'transparent',
    'primary': {
      base: '#0073E6',
      dark: '#0049B3',
      light: '#63A1FF',
    },
    'secondary': {
      base: '#4FBE8E',
      dark: '#088D60',
      light: '#83F1BE',
    },
    'grey': {
      base: '#839199',
      dark: '#142130',
      light: '#DCDEE4',
    },
    'grey-secondary': {
      base: '#889490',
      dark: '#182C25',
      light: '#DEE2E1',
    },
    'white': {
        base: '#FCFDFD',
        dark: '#F7F7F7',
    },
    'black': '#000517',
    'negative': '#F33C3C',
    'positive': '#63ED92',
  },
  extend: {
    animation: {
      'bounce-slow': 'bounce 2s ease-in-out infinite',
    },
},

You will have an access to @linusborg/vue-simple-portal, focus-trap-vue, @vue/composition-api and @vueuse/core in your components.

FAQ

You can use the discussions tab to ask for help or to suggest an idea.

Authors

0.2.0-0

2 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.20

3 years ago

0.1.21

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.19

3 years ago

0.1.16

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.10

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago