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

@design-sync/vanilla-extract-plugin

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@design-sync/vanilla-extract-plugin - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

6

dist/index.d.ts
import { TokensManagerPlugin } from '@design-sync/manager';
interface VanillaExtractPluginConfig {
themeContractVarName?: string;
themeContractName?: string;
contractName?: string;
outDir?: string;
globalThemeSelector?: string;
createGlobalThemes?: boolean;
createGlobalContract?: boolean;
}

@@ -8,0 +10,0 @@ declare function vanillaExtractPlugin(config?: VanillaExtractPluginConfig): TokensManagerPlugin;

{
"name": "@design-sync/vanilla-extract-plugin",
"version": "0.1.1",
"version": "0.2.0",
"description": "Transforms design tokens to vanilla extract themes and styles",

@@ -15,5 +15,5 @@ "repository": "salamaashoush/design-sync",

"dependencies": {
"@design-sync/manager": "0.1.1",
"@design-sync/utils": "0.3.0",
"@design-sync/w3c-dtfm": "0.2.1"
"@design-sync/manager": "0.2.0",
"@design-sync/utils": "0.4.0",
"@design-sync/w3c-dtfm": "0.3.0"
},

@@ -20,0 +20,0 @@ "devDependencies": {

@@ -32,3 +32,3 @@ # @design-sync/vanilla-extract-plugin

```ts
import { vanillaExtractPlugin } from '@design-sync/cli'
import { vanillaExtractPlugin } from '@design-sync/vanilla-extract-plugin'

@@ -39,6 +39,10 @@ export default {

outDir: 'vanilla-extract',
// name of the file used to export the theme contract using `createThemeContract`, default: 'contract.css.ts'
themeContractName: 'contract',
// name of the exported variable from the theme contract and would also be used to reference the tokens, default: 'vars'
themeContractVarName: 'theme',
// name of the exported variable from the theme contract, default: 'contract'
contractName: 'contract',
// global theme selector, default: ':root'
globalThemeSelector: ':root',
// create global themes, default: false
createGlobalThemes: false,
// create global theme contract, default: false
createGlobalContract: false,
})],

@@ -45,0 +49,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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