56 lines
1.3 KiB
JavaScript
56 lines
1.3 KiB
JavaScript
import commonVars from "./_common.mjs";
|
|
import { buttonLight } from "../../button/styles/index.mjs";
|
|
import { commonLight } from "../../_styles/common/index.mjs";
|
|
import { createTheme } from "../../_mixins/index.mjs";
|
|
export const self = vars => {
|
|
const {
|
|
textColor1,
|
|
textColor2,
|
|
modalColor,
|
|
closeIconColor,
|
|
closeIconColorHover,
|
|
closeIconColorPressed,
|
|
closeColorHover,
|
|
closeColorPressed,
|
|
infoColor,
|
|
successColor,
|
|
warningColor,
|
|
errorColor,
|
|
primaryColor,
|
|
dividerColor,
|
|
borderRadius,
|
|
fontWeightStrong,
|
|
lineHeight,
|
|
fontSize
|
|
} = vars;
|
|
return Object.assign(Object.assign({}, commonVars), {
|
|
fontSize,
|
|
lineHeight,
|
|
border: `1px solid ${dividerColor}`,
|
|
titleTextColor: textColor1,
|
|
textColor: textColor2,
|
|
color: modalColor,
|
|
closeColorHover,
|
|
closeColorPressed,
|
|
closeIconColor,
|
|
closeIconColorHover,
|
|
closeIconColorPressed,
|
|
closeBorderRadius: borderRadius,
|
|
iconColor: primaryColor,
|
|
iconColorInfo: infoColor,
|
|
iconColorSuccess: successColor,
|
|
iconColorWarning: warningColor,
|
|
iconColorError: errorColor,
|
|
borderRadius,
|
|
titleFontWeight: fontWeightStrong
|
|
});
|
|
};
|
|
const dialogLight = createTheme({
|
|
name: 'Dialog',
|
|
common: commonLight,
|
|
peers: {
|
|
Button: buttonLight
|
|
},
|
|
self
|
|
});
|
|
export default dialogLight; |