Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.
/ kiste Public archive

🧰 A Vue component and SCSS utility library

License

Notifications You must be signed in to change notification settings

moritzruth-archive/kiste

Repository files navigation

💎️ Kiste

A Vue component and SCSS utility library

See it in action:

Installation

yarn add -D kiste

Kiste requires sass.

Usage

Nuxt.js

Add kiste/nuxt to your buildModules:

// nuxt.config.js

module.exports = {
  // ...
  
  kiste: {
    // options
  },
  
  buildModules: [
    "kiste/nuxt"
  ]
};

Other

Register the Vue plugin:

import Vue from "vue";
import Kiste from "kiste";

Vue.use(Kiste, {
  // options
});

Options

Theme

Colors

All colors can be strings or objects, whereas strings are converted to an object.

String format:

white/black/#0e0e0e
BASE/CONTRAST/ALTERNATIVE

Object format:

import { DEFAULT_KEY } from "kiste/js/theming";

const background = {
  [DEFAULT_KEY]: "white",
  // contrast
  c: "black",
  // alternative
  a: "0e0e0e"
}

Documentation

You can see all components and classes in this storybook.