27 lines
758 B
JavaScript
27 lines
758 B
JavaScript
import { commonDark } from "../../_styles/common/index.mjs";
|
|
import { popoverDark } from "../../popover/styles/index.mjs";
|
|
import { self } from "./light.mjs";
|
|
import { changeColor } from 'seemly';
|
|
const dropdownDark = {
|
|
name: 'Dropdown',
|
|
common: commonDark,
|
|
peers: {
|
|
Popover: popoverDark
|
|
},
|
|
self(vars) {
|
|
const {
|
|
primaryColorSuppl,
|
|
primaryColor,
|
|
popoverColor
|
|
} = vars;
|
|
const commonSelf = self(vars);
|
|
commonSelf.colorInverted = popoverColor;
|
|
commonSelf.optionColorActive = changeColor(primaryColor, {
|
|
alpha: 0.15
|
|
});
|
|
commonSelf.optionColorActiveInverted = primaryColorSuppl;
|
|
commonSelf.optionColorHoverInverted = primaryColorSuppl;
|
|
return commonSelf;
|
|
}
|
|
};
|
|
export default dropdownDark; |