dumi-theme-lobehub
Version:
dumi-theme-lobehub is a documentation site theme package designed for dumi2. It provides a more beautiful and user-friendly development and reading experience based on @lobehub/ui
45 lines (44 loc) • 1.35 kB
JavaScript
'use client';
import { ConfigProvider as LobehubConfigProvider } from '@lobehub/ui';
import { ConfigProvider } from 'antd';
import { cssVar } from 'antd-style';
import * as motion from 'motion/react-m';
import { memo } from 'react';
import { jsx as _jsx } from "react/jsx-runtime";
var Config = /*#__PURE__*/memo(function (_ref) {
var children = _ref.children;
return /*#__PURE__*/_jsx(LobehubConfigProvider, {
motion: motion,
children: /*#__PURE__*/_jsx(ConfigProvider, {
theme: {
components: {
Button: {
contentFontSizeSM: 12
},
DatePicker: {
activeBorderColor: cssVar.colorBorder,
hoverBorderColor: cssVar.colorBorder
},
Input: {
activeBorderColor: cssVar.colorBorder,
hoverBorderColor: cssVar.colorBorder
},
InputNumber: {
activeBorderColor: cssVar.colorBorder,
hoverBorderColor: cssVar.colorBorder
},
Mentions: {
activeBorderColor: cssVar.colorBorder,
hoverBorderColor: cssVar.colorBorder
},
Select: {
activeBorderColor: cssVar.colorBorder,
hoverBorderColor: cssVar.colorBorder
}
}
},
children: children
})
});
});
export default Config;