UNPKG

seti-ramesesv1

Version:

Reusable components and context for Next.js apps

30 lines (27 loc) 692 B
import style from '../style/style.js'; import compose from '../compose/compose.js'; function paletteTransform(value, userValue) { if (userValue === 'grey') { return userValue; } return value; } const color = style({ prop: 'color', themeKey: 'palette', transform: paletteTransform }); const bgcolor = style({ prop: 'bgcolor', cssProperty: 'backgroundColor', themeKey: 'palette', transform: paletteTransform }); const backgroundColor = style({ prop: 'backgroundColor', themeKey: 'palette', transform: paletteTransform }); compose(color, bgcolor, backgroundColor); export { backgroundColor, bgcolor, color, paletteTransform }; //# sourceMappingURL=palette.js.map