naive-ui
Version:
A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast
39 lines • 1.09 kB
JavaScript
import { internalSelectionLight } from "../../_internal/selection/styles/index.mjs";
import { createTheme } from "../../_mixins/use-theme.mjs";
import { commonLight } from "../../_styles/common/index.mjs";
import { emptyLight } from "../../empty/styles/index.mjs";
import { treeLight } from "../../tree/styles/index.mjs";
export function self(vars) {
const {
popoverColor,
boxShadow2,
borderRadius,
heightMedium,
dividerColor,
textColor2
} = vars;
return {
menuPadding: '4px',
menuColor: popoverColor,
menuBoxShadow: boxShadow2,
menuBorderRadius: borderRadius,
menuHeight: `calc(${heightMedium} * 7.6)`,
actionDividerColor: dividerColor,
actionTextColor: textColor2,
actionPadding: '8px 12px',
headerDividerColor: dividerColor,
headerTextColor: textColor2,
headerPadding: '8px 12px'
};
}
const treeSelectLight = createTheme({
name: 'TreeSelect',
common: commonLight,
peers: {
Tree: treeLight,
Empty: emptyLight,
InternalSelection: internalSelectionLight
},
self
});
export default treeSelectLight;