1
0
mirror of https://github.com/yldio/copilot.git synced 2025-01-24 01:40:12 +02:00
copilot/ui/src/shared/constants/index.js
2017-01-13 15:38:57 +00:00

36 lines
671 B
JavaScript

const traverse = require('traverse');
const isFunction = require('lodash.isfunction');
const colors = require('./colors');
const boxes = require('./boxes');
const typography = require('./typography');
const sizes = require('./sizes');
const breakpoints = require('./breakpoints');
const baseunit = require('./baseunits');
const tables = {
bg: 'transparent',
cellPadding: '.75rem'
};
const forms = {
cursorDisabled: 'not-allowed'
};
const constants = traverse({
colors,
boxes,
forms,
sizes,
tables,
typography,
baseunit
}).map(function(x) {
return isFunction(x) ? x(this.parent.node) : x;
});
module.exports = {
...constants,
breakpoints
};