index.js 663 B

123456789101112131415161718192021222324252627
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _internal = require("../../theme/internal");
  7. // =============================== Base ===============================
  8. const genBaseStyle = token => {
  9. const {
  10. componentCls,
  11. colorText,
  12. fontSize,
  13. lineHeight,
  14. fontFamily
  15. } = token;
  16. return {
  17. [componentCls]: {
  18. color: colorText,
  19. fontSize,
  20. lineHeight,
  21. fontFamily
  22. }
  23. };
  24. };
  25. // ============================== Export ==============================
  26. var _default = exports.default = (0, _internal.genComponentStyleHook)('App', token => [genBaseStyle(token)]);