New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@instructure/postcss-themeable-styles

Package Overview
Dependencies
Maintainers
19
Versions
1151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/postcss-themeable-styles - npm Package Compare versions

Comparing version 4.0.0-beta.0 to 4.0.0

2

package.json
{
"name": "@instructure/postcss-themeable-styles",
"version": "4.0.0-beta.0",
"version": "4.0.0",
"description": "PostCSS plugin for themeable component styles",

@@ -5,0 +5,0 @@ "author": "Instructure, Inc. Engineering and Product Design",

@@ -0,1 +1,5 @@

---
category: packages
---
## @instructure/postcss-themeable-styles

@@ -8,6 +12,46 @@

For use with [@instructure/babel-plugin-themeable-styles](#babel-plugin-themeable-styles),
converts CSS variables into ES template tokens:
Given:
```css
/* style.css */
.root {
background: var(--background);
color: var(--color);
&:hover {
background: var(--hoverBackground);
color: var(--hoverColor);
}
}
```
Output:
```css
/* style.css */
.root {
background: ${theme.background};
color: ${theme.color};
&:hover {
background: ${theme.hoverBackground};
color: ${theme.hoverColor};
}
}
```
### Installation
```sh
npm install @instructure/postcss-themeable-styles
yarn add --dev @instructure/postcss-themeable-styles
```
### Usage
```js
postcss([ require('@instructure/postcss-themeable-styles') ])
```
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