JSPM

  • Created
  • Published
  • Downloads 36702
  • Score
    100M100P100Q149359F
  • License MIT

Standard interfaces for Styletron

Package Exports

  • styletron-standard
  • styletron-standard/dist-browser-cjs/index.js
  • styletron-standard/dist-browser-esm/index.js
  • styletron-standard/dist-node-cjs/index.js
  • styletron-standard/dist-node-esm/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (styletron-standard) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

styletron-standard

npm version dependencies status

Opinionated, standard interfaces for Styletron.

Check our documentation at styletron.org.

Installation

yarn add styletron-standard

API

Style object interface

import type { StyleObject } from "styletron-standard";

styletron-standard defines a specific style object interface (along with corresponding Flow type definitions).

Engine interface

import type { StandardEngine } from "styletron-standard";

styletron-standard also defines a standard engine interface.

interface StandardEngine {
  renderStyle,
  renderKeyframes,
  renderFontFace,
};

Driver

import type { StandardEngine } from "styletron-standard";