Quick examples

Special props and values#

child#

Add any child CSS/pseudo definition.

Live Editor
Result
color: #fff;
> h1 span {
color: #fc0;
}

Pseudo selectors/states#

Pseudo definitions are also having shorthands, always starting with :.

Live Editor
Result
color: #fff;
&:hover {
color: #000;
}

raw#

Use it to pass raw CSS string / Style object.

Live Editor
Result
background-color: #fff;

Number values#

Properties awaiting numeric values with a unit can accept pure numbers for built-in automatic conversion.

If not a number is given, the value will be used as-is.

Example:

Live Editor
Result
width: 100px;
height: 100px;

Array values#

Shorthand properties awaiting numeric values with units can accept an array as an input.

Example:

Live Editor
Result
margin: 5px 0 5px 5px;
Last updated on by Pablo Henrique