fira_code.css 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @font-face {
  2. font-family: 'Fira Code';
  3. src: url('woff2/FiraCode-Light.woff2') format('woff2'),
  4. url('woff/FiraCode-Light.woff') format('woff');
  5. font-weight: 300;
  6. font-style: normal;
  7. }
  8. @font-face {
  9. font-family: 'Fira Code';
  10. src: url('woff2/FiraCode-Regular.woff2') format('woff2'),
  11. url('woff/FiraCode-Regular.woff') format('woff');
  12. font-weight: 400;
  13. font-style: normal;
  14. }
  15. @font-face {
  16. font-family: 'Fira Code';
  17. src: url('woff2/FiraCode-Medium.woff2') format('woff2'),
  18. url('woff/FiraCode-Medium.woff') format('woff');
  19. font-weight: 500;
  20. font-style: normal;
  21. }
  22. @font-face {
  23. font-family: 'Fira Code';
  24. src: url('woff2/FiraCode-SemiBold.woff2') format('woff2'),
  25. url('woff/FiraCode-SemiBold.woff') format('woff');
  26. font-weight: 600;
  27. font-style: normal;
  28. }
  29. @font-face {
  30. font-family: 'Fira Code';
  31. src: url('woff2/FiraCode-Bold.woff2') format('woff2'),
  32. url('woff/FiraCode-Bold.woff') format('woff');
  33. font-weight: 700;
  34. font-style: normal;
  35. }
  36. @font-face {
  37. font-family: 'Fira Code VF';
  38. src: url('woff2/FiraCode-VF.woff2') format('woff2-variations'),
  39. url('woff/FiraCode-VF.woff') format('woff-variations');
  40. /* font-weight requires a range: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide#Using_a_variable_font_font-face_changes */
  41. font-weight: 300 700;
  42. font-style: normal;
  43. }