index.js 537 B

123456789101112131415161718192021
  1. import { genComponentStyleHook } from '../../theme/internal';
  2. // =============================== Base ===============================
  3. const genBaseStyle = token => {
  4. const {
  5. componentCls,
  6. colorText,
  7. fontSize,
  8. lineHeight,
  9. fontFamily
  10. } = token;
  11. return {
  12. [componentCls]: {
  13. color: colorText,
  14. fontSize,
  15. lineHeight,
  16. fontFamily
  17. }
  18. };
  19. };
  20. // ============================== Export ==============================
  21. export default genComponentStyleHook('App', token => [genBaseStyle(token)]);