UNPKG

538 BJavaScriptView Raw
1const {resolveTheme, generate} = require('@shopify/slate-config');
2
3module.exports = generate({
4 id: 'slateCssVarLoader',
5 items: [
6 {
7 id: 'cssVarLoaderEnable',
8 default: true,
9 description: 'Enable/disable cssvar loader plugin',
10 type: 'boolean',
11 },
12 {
13 id: 'cssVarLoaderLiquidPath',
14 default: [resolveTheme('src/layout/theme.liquid')],
15 description:
16 'An array of string paths to liquid files that associate css variables to liquid variables',
17 type: 'array',
18 },
19 ],
20});