Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including styletron-standard with all npm packages installed. Try it out:

var styletronStandard = require("styletron-standard")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

styletron-standard v3.0.1

Standard interfaces for Styletron

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";

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free