mine-hyprdots/.config/hypr/node_modules/@catppuccin/palette/esm/mod.js
2024-09-12 22:26:43 +05:30

17 lines
492 B
JavaScript

import definitions from "./palette.js";
const entriesFromObject = (obj) => Object.entries(obj);
/**
* All flavors of Catppuccin
*/
export const flavors = entriesFromObject(definitions)
.reduce((acc, [flavorName, flavor]) => {
acc[flavorName] = {
...flavor,
colorEntries: entriesFromObject(flavor.colors),
};
return acc;
}, {});
/**
* A typed `Object.entries()` iterable of all Catppuccin flavors
*/
export const flavorEntries = entriesFromObject(flavors);