Skip to content

Files

Latest commit

Apr 22, 2020
dccf40a · Apr 22, 2020

History

History
This branch is 1601 commits behind wix/stylable:master.

custom-value

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 3, 2020
Apr 3, 2020
May 23, 2019
May 23, 2019
Apr 22, 2020

@stylable/custom-value

npm version

@stylable/custom-value serves as a package where various implementation for Stylable (build-time) variable custom types. Currently, this package only offers an stBorder type, with more to be added in the future.

Usage example

:import {
    -st-from: "@stylable/custom-value";
    -st-named: stBorder;
}

:vars {
    myBorder: stBorder(1px, solid, green);
}

.root {
    border: value(stBorder); /* returns: 1px solid green */
    background-color: value(stBorder, color); /* returns: green */
}