Canvacord

StyleSheet

extendsany

Methods

static cn(classes);

Merges multiple tailwind-like class names into appropriate class names.

ParameterTypeOptional
classes
Array<ClassNameValue>
Returns:string

static compose(style1, style2);

Composes two CSSPropertiesLike objects.

ParameterTypeOptional
style1
CSSProperties
style2
CSSProperties
Returns:CSSProperties

static create(styles);

Creates a new CSSPropertiesLike object.

ParameterTypeOptional
styles

static css([data]);

Returns the style object from stylable data.

ParameterTypeOptional
data

static flatten(style);

Flattens an array of CSSPropertiesLike objects.

ParameterTypeOptional
style
Array<CSSProperties>
Returns:CSSProperties

static tw([data]);

Returns the className string from stylable data.

ParameterTypeOptional
data
Returns:string