You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

29 lines
614 B

import { createInstance } from 'antd-style'
import { ProThemeToken } from './themes'
type ProToken = {
proPrefix: string;
};
declare module 'antd-style' {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface CustomToken extends ProToken, ProThemeToken {
}
}
const { createStyles, ThemeProvider } = createInstance<ProToken>({
customToken: {
proPrefix: 'pro',
},
})
export {
createGlobalStyle,
css,
cx,
injectGlobal,
keyframes,
useAntdToken as useToken,
type AntdToken,
} from 'antd-style'
export * from './themes'
export { ThemeProvider, createStyles }