UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

91 lines (73 loc) 2.48 kB
import { safeReadableColor } from "../../utils/safeReadableColor.mjs"; import { css } from "antd-style"; import { rgba } from "polished"; //#region src/ThemeProvider/GlobalStyle/antdOverride.ts var antdOverride_default = (token) => { const readColor = safeReadableColor(token.colorPrimary); return css` .${token.prefixCls}-checkbox-inner:after { border-color: ${safeReadableColor(token.colorPrimary)} !important; } .${token.prefixCls}-btn { box-shadow: none; } .${token.prefixCls}-btn-primary:not(:disabled) { color: ${readColor} !important; &:hover { color: ${readColor} !important; } &:active { color: ${readColor} !important; } } .${token.prefixCls}-tooltip-arrow::before, .${token.prefixCls}-tooltip-arrow::after, .${token.prefixCls}-tooltip-container { color: ${token.colorBgLayout} !important; background: ${token.colorText} !important; } .${token.prefixCls}-tooltip-container { display: flex; align-items: center; justify-content: center; min-height: unset; padding-block: 4px; padding-inline: 8px; border-radius: ${token.borderRadiusSM}px !important; } .${token.prefixCls}-switch-handle::before { background: ${token.colorBgContainer} !important; } .${token.prefixCls}-image-preview-close, .${token.prefixCls}-image-preview-switch-right, .${token.prefixCls}-image-preview-switch-left { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; background: ${rgba(token.colorBgMask, .1)}; border-radius: ${token.borderRadiusLG}px; ${token.stylish.blur}; } .${token.prefixCls}-dropdown-menu, .${token.prefixCls}-select-dropdown { border-radius: ${token.borderRadius}px !important; box-shadow: 0 0 15px 0 #00000008, 0 2px 30px 0 #00000014, 0 0 0 1px ${token.isDarkMode ? token.colorFillTertiary : token.colorBorder} inset !important; } .${token.prefixCls}-modal-content { border: 1px solid ${token.colorBorderSecondary} !important; } .${token.prefixCls}-radio-wrapper .${token.prefixCls}-radio-checked .${token.prefixCls}-radio-inner:after { background: ${readColor}; } `; }; //#endregion export { antdOverride_default as default }; //# sourceMappingURL=antdOverride.mjs.map