2017-01-03 17:46:43 +02:00
|
|
|
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');
|
2017-01-12 16:48:01 +02:00
|
|
|
const baseunit = require('./baseunits');
|
2017-01-03 17:46:43 +02:00
|
|
|
|
|
|
|
const tables = {
|
|
|
|
bg: 'transparent',
|
|
|
|
cellPadding: '.75rem'
|
|
|
|
};
|
|
|
|
|
|
|
|
const forms = {
|
|
|
|
cursorDisabled: 'not-allowed'
|
|
|
|
};
|
|
|
|
|
|
|
|
const constants = traverse({
|
|
|
|
colors,
|
|
|
|
boxes,
|
|
|
|
forms,
|
|
|
|
sizes,
|
|
|
|
tables,
|
2017-01-12 16:48:01 +02:00
|
|
|
typography,
|
|
|
|
baseunit
|
2017-01-03 17:46:43 +02:00
|
|
|
}).map(function(x) {
|
|
|
|
return isFunction(x) ? x(this.parent.node) : x;
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
...constants,
|
|
|
|
breakpoints
|
|
|
|
};
|