mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 23:18:36 +08:00
2acb7b217a
* site: use css token * fix: fix * fix: fix * fix: fix * fix: fix * fix: fix * fix: fix * fix: fix
23 lines
376 B
TypeScript
23 lines
376 B
TypeScript
import { createStyles } from 'antd-style';
|
|
|
|
const useStyles = createStyles(({ token, prefixCls, css }) => ({
|
|
container: css`
|
|
margin: ${token.marginXS}px 0;
|
|
`,
|
|
|
|
alert: css`
|
|
.${prefixCls}-alert-message {
|
|
font-weight: bold;
|
|
}
|
|
`,
|
|
|
|
/* 使用 `&&` 加一点点权重 */
|
|
desc: css`
|
|
&& p {
|
|
margin: 0;
|
|
}
|
|
`,
|
|
}));
|
|
|
|
export default useStyles;
|