primevue-mirror/components/lib/themes/actions/updatePreset.js

10 lines
230 B
JavaScript

import { SharedUtils, Theme } from 'primevue/themes';
export default (...presets) => {
const newPreset = SharedUtils.object.mergeKeys(Theme.getPreset(), ...presets);
Theme.setPreset(newPreset);
return newPreset;
};