pagraphcontrol/utils/theme/index.js
2018-11-08 04:36:48 +03:00

12 lines
262 B
JavaScript

const { theme } = require('@jakejarrett/gtk-theme');
const camelCase = require('camelcase');
const colors = {};
theme.css.replace(/@define-color\s+([\w_]+?)\s+(.+?);/g, (_, name, value) => {
colors[camelCase(name)] = value;
});
module.exports = { colors };