Spaces:
Sleeping
Sleeping
File size: 637 Bytes
56fda74 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import style from './style';
import compose from './compose';
export function paletteTransform(value, userValue) {
if (userValue === 'grey') {
return userValue;
}
return value;
}
export const color = style({
prop: 'color',
themeKey: 'palette',
transform: paletteTransform
});
export const bgcolor = style({
prop: 'bgcolor',
cssProperty: 'backgroundColor',
themeKey: 'palette',
transform: paletteTransform
});
export const backgroundColor = style({
prop: 'backgroundColor',
themeKey: 'palette',
transform: paletteTransform
});
const palette = compose(color, bgcolor, backgroundColor);
export default palette; |