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
41 lines (40 loc) • 1.11 kB
JavaScript
'use client';
import { ConfigProvider } from 'antd';
import { useTheme } from 'antd-style';
import { memo } from 'react';
import { jsx as _jsx } from "react/jsx-runtime";
var Config = /*#__PURE__*/memo(function (_ref) {
var children = _ref.children;
var theme = useTheme();
return /*#__PURE__*/_jsx(ConfigProvider, {
theme: {
components: {
Button: {
contentFontSizeSM: 12
},
DatePicker: {
activeBorderColor: theme.colorBorder,
hoverBorderColor: theme.colorBorder
},
Input: {
activeBorderColor: theme.colorBorder,
hoverBorderColor: theme.colorBorder
},
InputNumber: {
activeBorderColor: theme.colorBorder,
hoverBorderColor: theme.colorBorder
},
Mentions: {
activeBorderColor: theme.colorBorder,
hoverBorderColor: theme.colorBorder
},
Select: {
activeBorderColor: theme.colorBorder,
hoverBorderColor: theme.colorBorder
}
}
},
children: children
});
});
export default Config;