UNPKG

@isotope/prototope

Version:

Isotope-based JavaScript library for speedy UI prototyping

30 lines 722 B
const defaults = { breakpoints: { lg: 1024, md: 768, sm: 640, xl: 1280 }, colors: { dark: "#595b66", darker: "#1f2026", light: "#ecedef", lighter: "#f2f3f5", primary: "#e65100", secondary: "#ff9d00" } }; /** * Applies default config options, to partial user's config. * * @param config - User's config. * @returns - Full config object. */ const applyDefaultConfig = ({ breakpoints = {}, colors = {} }) => { return { breakpoints: Object.assign(defaults.breakpoints, breakpoints), colors: Object.assign(defaults.colors, colors) }; }; export { applyDefaultConfig }; //# sourceMappingURL=config.js.map