0.3.64 • Published 5 months ago

@texturered/eco-vue-js v0.3.64

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

ui-kit

UI-Kit is a design system project for Whitespots projects. It provides a consistent look and feel by defining a set of reusable Vue components and icons.

Usage

Installation

npm i @texturered/eco-vue-js

Tailwind configuration

  1. Add the following lines to the content section in your Tailwind configuration file:
    content: [
      './node_modules/@texturered/eco-vue-js/dist/components/**/*.vue.js}',
      './node_modules/@texturered/eco-vue-js/dist/components/**/*.js}',
    ]
  2. Add the library's Tailwind preset to your configuration file:
    presets: [
      require('@texturered/eco-vue-js/tailwind-base/index.cjs'),
    ]

Import components

Here's an example of how to import the WButton component:

import WButton from '@texturered/eco-vue-js/dist/components/Button/WButton.vue'

Import icons

The icons in the library are functional Vue components generated from SVG files during build.

Here's an example of how to import an icon named IconCheck:

import IconCheck from '@texturered/eco-vue-js/dist/assets/icons/default/IconCheck'

Development

Local testing

  1. Build library:
    npm i
    npm run build
  2. Create a .tgz file and copy absolute path to it:
    npm pack
  3. Install library from created .tgz
    npm i --save <absolute_path_to_file>

Updating the bundle

To automatically add imports for new components or icons added to the library, run the command

npm run write-imports

This will update the files in the /imports directory and add new exports to the package.json file.

0.3.64

5 months ago

0.3.63

5 months ago

0.3.62

5 months ago

0.3.61

5 months ago

0.3.60

5 months ago

0.3.59

5 months ago

0.3.58

5 months ago

0.3.57

5 months ago