fonts.pcss.css

Same filename in other branches
  1. 10 core/themes/olivero/css/base/fonts.pcss.css
  2. 11.x core/themes/olivero/css/base/fonts.pcss.css
  3. 11.x core/modules/navigation/css/base/fonts.pcss.css
  4. 10 core/modules/navigation/css/base/fonts.pcss.css

Base Fonts.

File

core/themes/olivero/css/base/fonts.pcss.css

View source
  1. /**
  2. * @file
  3. * Base Fonts.
  4. */
  5. @import "variables.pcss.css";
  6. @font-face {
  7. font-family: metropolis;
  8. src:
  9. url("../../fonts/metropolis/Metropolis-Regular.woff2") format("woff2"),
  10. url("../../fonts/metropolis/Metropolis-Regular.woff") format("woff");
  11. font-weight: normal;
  12. font-style: normal;
  13. font-display: swap;
  14. }
  15. @font-face {
  16. font-family: metropolis;
  17. src:
  18. url("../../fonts/metropolis/Metropolis-Bold.woff2") format("woff2"),
  19. url("../../fonts/metropolis/Metropolis-Bold.woff") format("woff");
  20. font-weight: 700;
  21. font-style: normal;
  22. font-display: swap;
  23. }
  24. @font-face {
  25. font-family: metropolis;
  26. src:
  27. url("../../fonts/metropolis/Metropolis-SemiBold.woff2") format("woff2"),
  28. url("../../fonts/metropolis/Metropolis-SemiBold.woff") format("woff");
  29. font-weight: 600;
  30. font-style: normal;
  31. font-display: swap;
  32. }
  33. /* lora-regular - latin */
  34. @font-face {
  35. font-family: Lora;
  36. src:
  37. local("Lora Regular"),
  38. local("Lora-Regular"),
  39. url("../../fonts/lora/lora-v14-latin-regular.woff2") format("woff2"),
  40. url("../../fonts/lora/lora-v14-latin-regular.woff") format("woff");
  41. font-weight: 400;
  42. font-style: normal;
  43. font-display: swap;
  44. }
  45. /* lora-italic - latin */
  46. @font-face {
  47. font-family: Lora;
  48. src:
  49. local("Lora Italic"),
  50. local("Lora-Italic"),
  51. url("../../fonts/lora/lora-v14-latin-italic.woff2") format("woff2"),
  52. url("../../fonts/lora/lora-v14-latin-italic.woff") format("woff");
  53. font-weight: 400;
  54. font-style: italic;
  55. font-display: swap;
  56. }
  57. /* lora-700 - latin */
  58. @font-face {
  59. font-family: Lora;
  60. src:
  61. local("Lora Bold"),
  62. local("Lora-Bold"),
  63. url("../../fonts/lora/lora-v14-latin-700.woff2") format("woff2"),
  64. url("../../fonts/lora/lora-v14-latin-700.woff") format("woff");
  65. font-weight: 700;
  66. font-style: normal;
  67. font-display: swap;
  68. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.