UNPKG

fui-fancyui

Version:
10 lines (9 loc) 375 B
import n from "../../../theme/themeStore/themeStore.js"; import c from "../../flipThemeColor/flipThemeColor.js"; const i = ({ $textColor: t, $themeType: r, $outlined: e }) => { const o = n.getState().theme; return t ? o.color[t][0] : r === "transparent" ? o.color.secondary[0] : e ? o.color[r ?? "secondary"][0] : c(r ?? "secondary"); }; export { i as calcTextColor };