Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src
test
LICENSE
README.md
package.json

README.md

@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 */
}
You can’t perform that action at this time.