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.

28 lines
614 B

7 months ago
  1. import { createInstance } from 'antd-style'
  2. import { ProThemeToken } from './themes'
  3. type ProToken = {
  4. proPrefix: string;
  5. };
  6. declare module 'antd-style' {
  7. // eslint-disable-next-line @typescript-eslint/no-empty-interface
  8. export interface CustomToken extends ProToken, ProThemeToken {
  9. }
  10. }
  11. const { createStyles, ThemeProvider } = createInstance<ProToken>({
  12. customToken: {
  13. proPrefix: 'pro',
  14. },
  15. })
  16. export {
  17. createGlobalStyle,
  18. css,
  19. cx,
  20. injectGlobal,
  21. keyframes,
  22. useAntdToken as useToken,
  23. type AntdToken,
  24. } from 'antd-style'
  25. export * from './themes'
  26. export { ThemeProvider, createStyles }