EvoCalculator.Client2/apps/web/scripts/generate-antd-css.ts
2024-04-11 14:09:29 +03:00

18 lines
358 B
TypeScript

import withTheme from '../styles/theme';
import fs from 'fs';
import { extractStyle } from 'ui/tools';
const outputPath = './styles/antd.min.css';
// 1. default theme
// const css = extractStyle();
// 2. With custom theme
const css = extractStyle(withTheme);
fs.writeFileSync(outputPath, css);
console.log(`🎉 Antd CSS generated at ${outputPath}`);