2022-12-08 12:14:18 +08:00
|
|
|
|
import { css, Global } from '@emotion/react';
|
|
|
|
|
import React from 'react';
|
2023-07-20 19:27:33 +08:00
|
|
|
|
import { useTheme } from 'antd-style';
|
2022-12-08 12:14:18 +08:00
|
|
|
|
|
|
|
|
|
export default () => {
|
2023-07-20 19:27:33 +08:00
|
|
|
|
const token = useTheme();
|
2022-12-08 12:14:18 +08:00
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Global
|
|
|
|
|
styles={css`
|
2022-12-19 13:23:28 +08:00
|
|
|
|
@font-face {
|
|
|
|
|
font-weight: normal;
|
2023-01-04 19:37:57 +08:00
|
|
|
|
font-family: AlibabaPuHuiTi;
|
2022-12-19 13:23:28 +08:00
|
|
|
|
src: url('//at.alicdn.com/t/webfont_6e11e43nfj.woff2') format('woff2'),
|
|
|
|
|
url('//at.alicdn.com/t/webfont_6e11e43nfj.woff') format('woff'),
|
|
|
|
|
/* chrome、firefox */ url('//at.alicdn.com/t/webfont_6e11e43nfj.ttf') format('truetype'); /* chrome、firefox、opera、Safari, Android, iOS 4.2+ */
|
|
|
|
|
font-display: swap;
|
|
|
|
|
}
|
2022-12-08 12:14:18 +08:00
|
|
|
|
|
2022-12-19 13:23:28 +08:00
|
|
|
|
@font-face {
|
|
|
|
|
font-weight: bold;
|
2023-01-04 19:37:57 +08:00
|
|
|
|
font-family: AlibabaPuHuiTi;
|
2022-12-19 13:23:28 +08:00
|
|
|
|
src: url('//at.alicdn.com/t/webfont_exesdog9toj.woff2') format('woff2'),
|
|
|
|
|
url('//at.alicdn.com/t/webfont_exesdog9toj.woff') format('woff'),
|
|
|
|
|
/* chrome、firefox */ url('//at.alicdn.com/t/webfont_exesdog9toj.ttf')
|
|
|
|
|
format('truetype'); /* chrome、firefox、opera、Safari, Android, iOS 4.2+ */
|
|
|
|
|
font-display: swap;
|
|
|
|
|
}
|
2022-12-08 12:14:18 +08:00
|
|
|
|
|
2022-12-19 13:23:28 +08:00
|
|
|
|
// 组件丰富,选用自如定制主题随心所欲设计语言与研发框架1234567890 QWERTYUIOPLKJHGFDSAZXCVBNM,.mnbvcxzasdfghjklpoiuytrewq
|
|
|
|
|
/* CDN 服务仅供平台体验和调试使用,平台不承诺服务的稳定性,企业客户需下载字体包自行发布使用并做好备份。 */
|
|
|
|
|
@font-face {
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
font-family: 'AliPuHui';
|
|
|
|
|
src: url('//at.alicdn.com/wf/webfont/exMpJIukiCms/Gsw2PSKrftc1yNWMNlXgw.woff2')
|
|
|
|
|
format('woff2'),
|
|
|
|
|
url('//at.alicdn.com/wf/webfont/exMpJIukiCms/vtu73by4O2gEBcvBuLgeu.woff') format('woff');
|
|
|
|
|
font-display: swap;
|
|
|
|
|
}
|
2022-12-08 12:14:18 +08:00
|
|
|
|
|
2022-12-19 13:23:28 +08:00
|
|
|
|
html {
|
|
|
|
|
direction: initial;
|
2022-12-08 12:14:18 +08:00
|
|
|
|
|
2022-12-19 13:23:28 +08:00
|
|
|
|
&.rtl {
|
|
|
|
|
direction: rtl;
|
2022-12-08 12:14:18 +08:00
|
|
|
|
}
|
2022-12-19 13:23:28 +08:00
|
|
|
|
}
|
2022-12-08 12:14:18 +08:00
|
|
|
|
|
2022-12-19 13:23:28 +08:00
|
|
|
|
body {
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
color: ${token.colorText};
|
|
|
|
|
font-size: ${token.fontSize}px;
|
|
|
|
|
font-family: ${token.fontFamily};
|
|
|
|
|
line-height: ${token.lineHeight};
|
|
|
|
|
background: ${token.colorBgContainer};
|
2023-06-13 15:45:34 +08:00
|
|
|
|
transition: background-color 1s cubic-bezier(0.075, 0.82, 0.165, 1);
|
2022-12-19 13:23:28 +08:00
|
|
|
|
}
|
|
|
|
|
`}
|
2022-12-08 12:14:18 +08:00
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
};
|