-
Notifications
You must be signed in to change notification settings - Fork 12
/
.figmaexportrc.js
45 lines (43 loc) · 946 Bytes
/
.figmaexportrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
'use strict';
const { DARK_ID, LIGHT_ID, MEZZANINE_ID } = process.env;
module.exports = {
commands: [
[
'styles',
{
fileId: DARK_ID, // Colors - Dark
outputters: [
require('./build/theme-json/figma-export')({
theme: 'dark',
output: './src/themes.json',
}),
],
},
],
[
'styles',
{
fileId: LIGHT_ID, // Colors - Light
outputters: [
require('./build/theme-json/figma-export')({
theme: 'light',
output: './src/themes.json',
}),
],
},
],
[
'styles',
{
fileId: MEZZANINE_ID, // Colors - Mezzanine
outputters: [
require('./build/theme-json/figma-export')({
folderPrefix: 'mezzanine/',
theme: 'mezzanine',
output: './src/themes.json',
}),
],
},
],
],
};