mirror of
https://github.com/yldio/copilot.git
synced 2024-11-11 05:40:11 +02:00
adding baseunit objects to constants
This commit is contained in:
parent
8513d8c904
commit
3ecedf94d6
9
ui/src/shared/constants/baseunits.js
Normal file
9
ui/src/shared/constants/baseunits.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
const baseunit = {
|
||||||
|
xs: 3,
|
||||||
|
s: 6,
|
||||||
|
m: 12,
|
||||||
|
l: 18,
|
||||||
|
xl: 24
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = baseunit;
|
@ -6,6 +6,7 @@ const boxes = require('./boxes');
|
|||||||
const typography = require('./typography');
|
const typography = require('./typography');
|
||||||
const sizes = require('./sizes');
|
const sizes = require('./sizes');
|
||||||
const breakpoints = require('./breakpoints');
|
const breakpoints = require('./breakpoints');
|
||||||
|
const baseunit = require('./baseunits');
|
||||||
|
|
||||||
const tables = {
|
const tables = {
|
||||||
bg: 'transparent',
|
bg: 'transparent',
|
||||||
@ -22,7 +23,8 @@ const constants = traverse({
|
|||||||
forms,
|
forms,
|
||||||
sizes,
|
sizes,
|
||||||
tables,
|
tables,
|
||||||
typography
|
typography,
|
||||||
|
baseunit
|
||||||
}).map(function(x) {
|
}).map(function(x) {
|
||||||
return isFunction(x) ? x(this.parent.node) : x;
|
return isFunction(x) ? x(this.parent.node) : x;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user