Last active
November 8, 2024 18:58
-
-
Save Albert221/753d7f8955eeb6f5e50486fce048e39f to your computer and use it in GitHub Desktop.
CSS for using JetBrains Mono on the Web. Simply copy&paste it to your stylesheet.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: 'JetBrains Mono'; | |
src: url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Bold-Italic.woff2') format('woff2'), | |
url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Bold-Italic.woff') format('woff'); | |
font-weight: 700; | |
font-style: italic; | |
font-display: swap; | |
} | |
@font-face { | |
font-family: 'JetBrains Mono'; | |
src: url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Bold.woff2') format('woff2'), | |
url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Bold.woff') format('woff'); | |
font-weight: 700; | |
font-style: normal; | |
font-display: swap; | |
} | |
@font-face { | |
font-family: 'JetBrains Mono'; | |
src: url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-ExtraBold-Italic.woff2') format('woff2'), | |
url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-ExtraBold-Italic.woff') format('woff'); | |
font-weight: 800; | |
font-style: italic; | |
font-display: swap; | |
} | |
@font-face { | |
font-family: 'JetBrains Mono'; | |
src: url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-ExtraBold.woff2') format('woff2'), | |
url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-ExtraBold.woff') format('woff'); | |
font-weight: 800; | |
font-style: normal; | |
font-display: swap; | |
} | |
@font-face { | |
font-family: 'JetBrains Mono'; | |
src: url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Italic.woff2') format('woff2'), | |
url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Italic.woff') format('woff'); | |
font-weight: 400; | |
font-style: italic; | |
font-display: swap; | |
} | |
@font-face { | |
font-family: 'JetBrains Mono'; | |
src: url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Medium-Italic.woff2') format('woff2'), | |
url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Medium-Italic.woff') format('woff'); | |
font-weight: 500; | |
font-style: italic; | |
font-display: swap; | |
} | |
@font-face { | |
font-family: 'JetBrains Mono'; | |
src: url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Medium.woff2') format('woff2'), | |
url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Medium.woff') format('woff'); | |
font-weight: 500; | |
font-style: normal; | |
font-display: swap; | |
} | |
@font-face { | |
font-family: 'JetBrains Mono'; | |
src: url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Regular.woff2') format('woff2'), | |
url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Regular.woff') format('woff'); | |
font-weight: 400; | |
font-style: normal; | |
font-display: swap; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're a savior Albert <3
My fingers thank you.