Skip to content

Commit

Permalink
feat(config): add 1em font sizes and 15,18 insets
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Feb 17, 2021
1 parent b629270 commit f0e0a1d
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/config/extend-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ const extendTheme = () => {
(el, index) => index + 1
);

const width = {};
const height = {};
const width = {
'1em': '1em',
};
const height = {
'1em': '1em',
};
sizesValues.forEach((size) => {
width[size] = `${size / 4}rem`;
height[size] = `${size / 4}rem`;
Expand Down Expand Up @@ -41,7 +45,19 @@ const extendTheme = () => {
transitionDuration[value] = `${value}ms`;
});

const fontSize = {
'icon-ios': '28px',
'icon-material': '24px',
};

const inset = {
15: `${15 / 4}rem`,
18: `${18 / 4}rem`,
};

return {
fontSize,
inset,
width,
height,
minWidth,
Expand Down

0 comments on commit f0e0a1d

Please sign in to comment.