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.
 
 

72 line
1.2 KiB

  1. // ==============================|| DEFAULT THEME - TYPOGRAPHY ||============================== //
  2. const Typography = (fontFamily) => ({
  3. htmlFontSize: 16,
  4. fontFamily,
  5. fontWeightLight: 300,
  6. fontWeightRegular: 400,
  7. fontWeightMedium: 500,
  8. fontWeightBold: 600,
  9. h1: {
  10. fontWeight: 600,
  11. fontSize: '2.375rem',
  12. lineHeight: 1.21
  13. },
  14. h2: {
  15. fontWeight: 600,
  16. fontSize: '1.875rem',
  17. lineHeight: 1.27
  18. },
  19. h3: {
  20. fontWeight: 600,
  21. fontSize: '1.5rem',
  22. lineHeight: 1.33
  23. },
  24. h4: {
  25. fontWeight: 600,
  26. fontSize: '1.25rem',
  27. lineHeight: 1.4
  28. },
  29. h5: {
  30. fontWeight: 600,
  31. fontSize: '1rem',
  32. lineHeight: 1.5
  33. },
  34. h6: {
  35. fontWeight: 400,
  36. fontSize: '0.875rem',
  37. lineHeight: 1.57
  38. },
  39. caption: {
  40. fontWeight: 400,
  41. fontSize: '0.75rem',
  42. lineHeight: 1.66
  43. },
  44. body1: {
  45. fontSize: '0.875rem',
  46. lineHeight: 1.57
  47. },
  48. body2: {
  49. fontSize: '0.75rem',
  50. lineHeight: 1.66
  51. },
  52. subtitle1: {
  53. fontSize: '0.875rem',
  54. fontWeight: 600,
  55. lineHeight: 1.57
  56. },
  57. subtitle2: {
  58. fontSize: '0.75rem',
  59. fontWeight: 500,
  60. lineHeight: 1.66
  61. },
  62. overline: {
  63. lineHeight: 1.66
  64. },
  65. button: {
  66. textTransform: 'capitalize'
  67. }
  68. });
  69. export default Typography;