Transforms design tokens to vanilla extract themes and styles
Usage
Install package:
npm install @design-sync/vanilla-extract-plugin
yarn add @design-sync/vanilla-extract-plugin
pnpm install @design-sync/vanilla-extract-plugin
bun install @design-sync/vanilla-extract-plugin
in the config file add the plugin to the plugins array
import { vanillaExtractPlugin } from '@design-sync/vanilla-extract-plugin'
export default {
plugins: [vanillaExtractPlugin({
outDir: 'vanilla-extract',
contractName: 'contract',
globalThemeSelector: ':root',
createGlobalThemes: false,
createGlobalContract: false,
})],
}
Development
- Clone this repository
- Install latest LTS version of Node.js
- Enable Corepack using
corepack enable
- Install dependencies using
pnpm install
- Run interactive tests using
pnpm dev
License
Made with 💛
Published under MIT License.