@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
39 lines (38 loc) • 800 B
JavaScript
import { staticStylish } from "../styles/theme/customStylishStatic.mjs";
import { createStaticStyles } from "antd-style";
import { cva } from "class-variance-authority";
//#region src/Button/style.ts
const styles = createStaticStyles(({ css, cssVar }) => {
return {
glass: staticStylish.blur,
root: css`
&[class*='ant-btn'] {
> [class*='ant-btn-icon'] {
display: flex;
}
}
`,
shadow: css`
box-shadow: ${cssVar.boxShadowTertiary} ;
`
};
});
const variants = cva(styles.root, {
defaultVariants: {
glass: false,
shadow: false
},
variants: {
glass: {
false: null,
true: styles.glass
},
shadow: {
false: null,
true: styles.shadow
}
}
});
//#endregion
export { variants };
//# sourceMappingURL=style.mjs.map