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