@kano/styles
Shared styles for web projects
Last updated 3 months ago by onishiweb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @kano/styles 
SYNC missed versions from official npm registry.

@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>
`;

Current Tags

  • 3.3.14                                ...           latest (3 months ago)

12 Versions

  • 3.3.14                                ...           3 months ago
  • 3.3.1                                ...           10 months ago
  • 3.2.16                                ...           a year ago
  • 3.2.13                                ...           a year ago
  • 3.1.3                                ...           a year ago
  • 3.0.16                                ...           a year ago
  • 3.0.15                                ...           a year ago
  • 3.0.14                                ...           2 years ago
  • 3.0.10                                ...           2 years ago
  • 3.0.6                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 1.0.0-alpha.0                                ...           2 years ago

Copyright 2014 - 2017 © taobao.org |