UNPKG

themer

Version:

Customizable theme creator for editors, terminals, wallpaper, and more.

16 lines (13 loc) 408 B
import type { Template } from '../index.js'; import { colorSetToVariants } from '../color-set/index.js'; const template: Template = { name: 'Test', render: async function* (colorSet) { yield* colorSetToVariants(colorSet).map(({ title }) => ({ path: `${title.kebab}.txt`, content: title.human, })); }, renderInstructions: (paths) => paths.join('\n'), }; export default template;