pre-installations and preparations
This commit is contained in:
1 parent
3e5a0329cb
commit
201d621ac3
6977 files changed
+742826
No files matched your search
+26
@@ -0,0 +1,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;
|
||||
Reference in new issue
Block a user