Skip to content

Commit

Permalink
feat(config): extend spacing and scale values
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Feb 19, 2021
1 parent 59d4707 commit 319b799
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions src/config/extend-theme.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
const extendTheme = () => {
// SIZES
const sizesValues = [0.25, 4.5, 5.5, 12.5, 13];
const sizesValues = [0.25, 4.5, 5.5, 5.75, 7.5, 12.5, 13, 15, 18];
const minSizesValues = Array.from({ length: 12 }).map(
(el, index) => index + 1
);

const width = {
'1em': '1em',
};
const height = {
const spacing = {
'1em': '1em',
};
sizesValues.forEach((size) => {
width[size] = `${size / 4}rem`;
height[size] = `${size / 4}rem`;
spacing[size] = `${size / 4}rem`;
});

const minWidth = {};
Expand Down Expand Up @@ -50,22 +46,20 @@ const extendTheme = () => {
'icon-material': '24px',
};

const inset = {
15: `${15 / 4}rem`,
18: `${18 / 4}rem`,
const scale = {
133: `${16 / 12}`,
};

return {
fontSize,
inset,
width,
height,
spacing,
minWidth,
minHeight,
backgroundOpacity,
opacity,
textOpacity,
transitionDuration,
scale,
colors: {
'page-ios': '#efeff4',
'page-material': '#fff',
Expand Down

0 comments on commit 319b799

Please sign in to comment.