2023-08-21 01:36:47 -05:00
|
|
|
require('dotenv').config()
|
|
|
|
|
2023-08-31 10:25:18 -05:00
|
|
|
if (typeof process.env.PENPOT_ACCESS_TOKEN !== 'string') {
|
|
|
|
throw new Error('Missing PENPOT_ACCESS_TOKEN environment variable')
|
|
|
|
}
|
|
|
|
|
2023-08-21 01:36:47 -05:00
|
|
|
/**
|
2023-09-01 09:40:04 -05:00
|
|
|
* @type {import('penpot-export').UserConfig}
|
2023-08-21 01:36:47 -05:00
|
|
|
*/
|
|
|
|
const config = {
|
2023-08-30 06:33:20 -05:00
|
|
|
instance: process.env.PENPOT_BASE_URL || undefined,
|
2023-08-21 01:36:47 -05:00
|
|
|
accessToken: process.env.PENPOT_ACCESS_TOKEN,
|
2023-08-30 08:17:57 -05:00
|
|
|
files: [
|
2023-08-23 14:05:39 -05:00
|
|
|
{
|
2023-08-30 08:17:57 -05:00
|
|
|
fileId: 'abea3ef6-4c19-808a-8003-01370d9cb586',
|
|
|
|
pages: [
|
|
|
|
{
|
|
|
|
pageId: '71b1702b-2eb1-81d6-8002-f82a5f182088',
|
2023-08-31 13:28:14 -05:00
|
|
|
output: 'src/styles/ui.css', // 👈 Path where your CSS file should be generated.
|
2023-08-30 08:17:57 -05:00
|
|
|
},
|
|
|
|
],
|
2023-08-22 11:19:28 -05:00
|
|
|
},
|
2023-08-21 01:36:47 -05:00
|
|
|
{
|
2023-08-30 08:17:57 -05:00
|
|
|
fileId: '4a499800-872e-80e1-8002-fc0b585dc061',
|
|
|
|
colors: [
|
|
|
|
{
|
2023-08-31 13:28:14 -05:00
|
|
|
output: 'src/styles/colors.css', // 👈 Path where your CSS file should be generated.
|
2023-08-30 08:17:57 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
typographies: [
|
|
|
|
{
|
2023-08-31 13:28:14 -05:00
|
|
|
output: 'src/styles/typographies.css', // 👈 Path where your CSS file should be generated.
|
2023-08-30 08:17:57 -05:00
|
|
|
},
|
|
|
|
],
|
2023-08-21 01:36:47 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = config
|