Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 

85 рядки
1.8 KiB

  1. import { TypographyOptions } from "@mui/material/styles/createTypography";
  2. import "@fontsource/inter/400.css";
  3. import "@fontsource/inter/500.css";
  4. import "@fontsource/inter/600.css";
  5. import "@fontsource/plus-jakarta-sans/700.css";
  6. const typography: TypographyOptions = {
  7. fontFamily:
  8. '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',
  9. body1: {
  10. fontSize: "1rem",
  11. fontWeight: 400,
  12. lineHeight: 1.5,
  13. },
  14. body2: {
  15. fontSize: "0.875rem",
  16. fontWeight: 400,
  17. lineHeight: 1.57,
  18. },
  19. button: {
  20. fontWeight: 600,
  21. },
  22. caption: {
  23. fontSize: "0.75rem",
  24. fontWeight: 500,
  25. lineHeight: 1.66,
  26. },
  27. subtitle1: {
  28. fontSize: "1rem",
  29. fontWeight: 500,
  30. lineHeight: 1.57,
  31. },
  32. subtitle2: {
  33. fontSize: "0.875rem",
  34. fontWeight: 500,
  35. lineHeight: 1.57,
  36. },
  37. overline: {
  38. fontSize: "0.75rem",
  39. fontWeight: 600,
  40. letterSpacing: "0.5px",
  41. lineHeight: 2.5,
  42. textTransform: "uppercase",
  43. },
  44. h1: {
  45. fontFamily: "'Plus Jakarta Sans', sans-serif",
  46. fontWeight: 700,
  47. fontSize: "3.5rem",
  48. lineHeight: 1.2,
  49. },
  50. h2: {
  51. fontFamily: "'Plus Jakarta Sans', sans-serif",
  52. fontWeight: 700,
  53. fontSize: "3rem",
  54. lineHeight: 1.2,
  55. },
  56. h3: {
  57. fontFamily: "'Plus Jakarta Sans', sans-serif",
  58. fontWeight: 700,
  59. fontSize: "2.25rem",
  60. lineHeight: 1.2,
  61. },
  62. h4: {
  63. fontFamily: "'Plus Jakarta Sans', sans-serif",
  64. fontWeight: 700,
  65. fontSize: "2rem",
  66. lineHeight: 1.2,
  67. },
  68. h5: {
  69. fontFamily: "'Plus Jakarta Sans', sans-serif",
  70. fontWeight: 700,
  71. fontSize: "1.5rem",
  72. lineHeight: 1.2,
  73. },
  74. h6: {
  75. fontFamily: "'Plus Jakarta Sans', sans-serif",
  76. fontWeight: 700,
  77. fontSize: "1.125rem",
  78. lineHeight: 1.2,
  79. },
  80. };
  81. export default typography;