@stylable/custom-value
TypeScript icon, indicating that this package has built-in type declarations

6.1.0 • Public • Published

@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 */
}

License

Copyright (c) 2021 Wix.com Ltd. All Rights Reserved. Use of this source code is governed by a MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i @stylable/custom-value

Homepage

stylable.io

Weekly Downloads

2

Version

6.1.0

License

MIT

Unpacked Size

5.83 kB

Total Files

13

Last publish

Collaborators

  • tomrav
  • avi.vahl
  • idoros
  • baraki
  • cijoe
  • alexswix