@design-sync/vanilla-extract-plugin
Advanced tools
Comparing version 0.1.1 to 0.2.0
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
19088
380
75
+ Added@design-sync/manager@0.2.0(transitive)
+ Added@design-sync/utils@0.4.0(transitive)
+ Added@design-sync/w3c-dtfm@0.3.0(transitive)
- Removed@design-sync/manager@0.1.1(transitive)
- Removed@design-sync/utils@0.3.0(transitive)
- Removed@design-sync/w3c-dtfm@0.2.1(transitive)
Updated@design-sync/manager@0.2.0
Updated@design-sync/utils@0.4.0
Updated@design-sync/w3c-dtfm@0.3.0