StyletronCore

StyletronCore

The core styletron module

Constructor

new StyletronCore(optsopt)

Source:

Create a new StyletronCore instance

Parameters:
Name Type Attributes Description
opts object <optional>

An object containing options

Properties
Name Type Attributes Default Description
prefix string <optional>
''

A prefix for generated CSS class names

Methods

injectDeclaration(decl) → {string|undefined}

Source:

Injects a declaration (if not already injected) and returns a class name

Parameters:
Name Type Description
decl object

The CSS declaration object

Properties
Name Type Attributes Description
prop string

The property name

val string

The property value

media string <optional>

The media query

pseudo string <optional>

The pseudo selector

Returns:

The class name for the declaration

Type
string | undefined