seed.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. export const defaultPresetColors = {
  2. blue: '#1677FF',
  3. purple: '#722ED1',
  4. cyan: '#13C2C2',
  5. green: '#52C41A',
  6. magenta: '#EB2F96',
  7. /**
  8. * @deprecated Use magenta instead
  9. */
  10. pink: '#EB2F96',
  11. red: '#F5222D',
  12. orange: '#FA8C16',
  13. yellow: '#FADB14',
  14. volcano: '#FA541C',
  15. geekblue: '#2F54EB',
  16. gold: '#FAAD14',
  17. lime: '#A0D911'
  18. };
  19. const seedToken = Object.assign(Object.assign({}, defaultPresetColors), {
  20. // Color
  21. colorPrimary: '#1677ff',
  22. colorSuccess: '#52c41a',
  23. colorWarning: '#faad14',
  24. colorError: '#ff4d4f',
  25. colorInfo: '#1677ff',
  26. colorLink: '',
  27. colorTextBase: '',
  28. colorBgBase: '',
  29. // Font
  30. fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
  31. 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
  32. 'Noto Color Emoji'`,
  33. fontFamilyCode: `'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace`,
  34. fontSize: 14,
  35. // Line
  36. lineWidth: 1,
  37. lineType: 'solid',
  38. // Motion
  39. motionUnit: 0.1,
  40. motionBase: 0,
  41. motionEaseOutCirc: 'cubic-bezier(0.08, 0.82, 0.17, 1)',
  42. motionEaseInOutCirc: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)',
  43. motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)',
  44. motionEaseInOut: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
  45. motionEaseOutBack: 'cubic-bezier(0.12, 0.4, 0.29, 1.46)',
  46. motionEaseInBack: 'cubic-bezier(0.71, -0.46, 0.88, 0.6)',
  47. motionEaseInQuint: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',
  48. motionEaseOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)',
  49. // Radius
  50. borderRadius: 6,
  51. // Size
  52. sizeUnit: 4,
  53. sizeStep: 4,
  54. sizePopupArrow: 16,
  55. // Control Base
  56. controlHeight: 32,
  57. // zIndex
  58. zIndexBase: 0,
  59. zIndexPopupBase: 1000,
  60. // Image
  61. opacityImage: 1,
  62. // Wireframe
  63. wireframe: false,
  64. // Motion
  65. motion: true
  66. });
  67. export default seedToken;