mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 01:19:45 +08:00
ba999de764
* format: site code format * Conflicting * lint * rename
28 lines
625 B
TypeScript
28 lines
625 B
TypeScript
import { css, Global } from '@emotion/react';
|
|
import React from 'react';
|
|
import useSiteToken from '../../../hooks/useSiteToken';
|
|
|
|
export default () => {
|
|
const { token } = useSiteToken();
|
|
return (
|
|
<Global
|
|
styles={css`
|
|
#nprogress {
|
|
.bar {
|
|
background: ${token.colorPrimary};
|
|
}
|
|
|
|
.peg {
|
|
box-shadow: 0 0 10px ${token.colorPrimary}, 0 0 5px ${token.colorPrimary};
|
|
}
|
|
|
|
.spinner-icon {
|
|
border-top-color: ${token.colorPrimary};
|
|
border-left-color: ${token.colorPrimary};
|
|
}
|
|
}
|
|
`}
|
|
/>
|
|
);
|
|
};
|