Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stylable/custom-value

Package Overview
Dependencies
Maintainers
6
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylable/custom-value

Custom values (variables) for Stylable

  • 5.17.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
231
increased by305.26%
Maintainers
6
Weekly downloads
 
Created
Source

@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.

FAQs

Package last updated on 03 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc