JetBrains Mono – the free and open-source typeface for developers
This is a convenience package to self host the JetBrains Mono font for use in web apps.
I don't claim any rights to the font itself, I just wrote the CSS file.
This package is based on the version 2.242 of the font.
This version is listed as "2.300 (unreleased) EAP" in the changelog.
npm install jetbrains-monoThe default export of this package is a CSS file. Load it as follows:
import 'jetbrains-mono'Alternatively, you can just include it in HTML like this:
<link rel="stylesheet" href="./node_modules/jetbrains-mono/css/jetbrains-mono.css">The variant of the font without ligatures (JetBrains Mono NL) is also available:
<link rel="stylesheet" href="./node_modules/jetbrains-mono/css/jetbrains-mono-nl.css">Set the $font-dir variable to the correct path, as shown here:
$font-dir: './node_modules/jetbrains-mono/fonts/webfonts';
@import '~jetbrains-mono/scss/jetbrains-mono';Without ligatures:
@import '~jetbrains-mono/scss/jetbrains-mono-nl';The files I authored are licensed under the MIT License.
JetBrains Mono typeface is available under the OFL-1.1 License and can be used free of charge, for both commercial and non-commercial purposes.