2024-03-30 12:29:27 +00:00
|
|
|
import Theme, { SharedUtils } from 'primevue/themes';
|
2024-03-22 13:02:01 +00:00
|
|
|
|
|
|
|
export default (preset1, preset2) => {
|
2024-03-30 12:29:27 +00:00
|
|
|
const VARIABLE = Theme.defaults.variable;
|
|
|
|
const newPreset = SharedUtils.object.mergeKeysByRegex(preset1, preset2, VARIABLE.excludedKeyRegex);
|
2024-03-22 13:02:01 +00:00
|
|
|
|
|
|
|
Theme.setPreset(newPreset);
|
|
|
|
|
|
|
|
return newPreset;
|
|
|
|
};
|