@kano/styles

3.3.14 • Public • Published

@kano/styles

Shared styles for web projects

Installation

yarn add @kano/styles

Usage

Exported symbols are HTML templates, clone and inject in your page to use the classes.

// Import needed styles
import { mega } from '@kano/kwc-styles/index.js';

// Clone the node
const instance = mega.content.cloneNode(true);

// Add to the head, or shadow root
document.head.appendChild(instance);

// Alternatively, if you use a literal template engine supporting HTML templates
const render = html`
    ${mega}
    <div>
        <button class="btn mega">CLICK</button>
    </div>
`;

Readme

Keywords

none

Package Sidebar

Install

npm i @kano/styles

Weekly Downloads

3

Version

3.3.14

License

MIT

Unpacked Size

2.49 MB

Total Files

49

Last publish

Collaborators

  • adambstem
  • tomkano
  • jerstem3
  • jakestem
  • tedkane99
  • hicksatkano
  • theisstem
  • finhdev
  • raking2
  • dianlin61
  • jacobmorgan99
  • alexnklein
  • ellenw3lsh
  • camuskano
  • alexfiennes
  • kanocomputing
  • jamie_old_plantain