overmind-themes
Version:
Themes for website, devtools and demos
32 lines • 895 B
JavaScript
import * as Color from 'color';
export default function createTheme(colors) {
return {
color: Object.assign({}, colors, { fade: (color, fade) => Color(color)
.fade(fade)
.string(), lighten: (color, lighten) => Color(color)
.lighten(lighten)
.string() }),
padding: {
none: '0',
smallest: '0.1rem',
smallerer: '0.25rem',
smaller: '0.5rem',
small: '1rem',
normal: '2rem',
large: '3rem',
},
borderRadius: {
normal: '3px',
large: '6px',
},
fontSize: {
smallest: '10px',
small: '14px',
normal: '16px',
large: '20px',
larger: '22px',
largest: '34px',
},
};
}
//# sourceMappingURL=factory.js.map