mirror of
https://github.com/yldio/copilot.git
synced 2025-01-24 09:50:12 +02:00
34 lines
618 B
JavaScript
34 lines
618 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 tables = {
|
||
|
bg: 'transparent',
|
||
|
cellPadding: '.75rem'
|
||
|
};
|
||
|
|
||
|
const forms = {
|
||
|
cursorDisabled: 'not-allowed'
|
||
|
};
|
||
|
|
||
|
const constants = traverse({
|
||
|
colors,
|
||
|
boxes,
|
||
|
forms,
|
||
|
sizes,
|
||
|
tables,
|
||
|
typography
|
||
|
}).map(function(x) {
|
||
|
return isFunction(x) ? x(this.parent.node) : x;
|
||
|
});
|
||
|
|
||
|
module.exports = {
|
||
|
...constants,
|
||
|
breakpoints
|
||
|
};
|