OpenDyslexic
Getting Started
Installation
Install the variable version of this font by running the following command:
⬤⬤
npm install @fontsource-variable/opendyslexic
sh
⬤⬤
yarn add @fontsource-variable/opendyslexic
sh
⬤⬤
pnpm add @fontsource-variable/opendyslexic
sh
⬤⬤
bun add @fontsource-variable/opendyslexic
sh
Import
Include the following line in the root layout of your project to import the font:
⬤⬤
import '@fontsource/opendyslexic';
jsx
CSS
Include the CSS in your project by adding the following line to your project:
⬤⬤
body {font-family: 'OpenDyslexic', sans-serif;}
css
Note: Advanced usage is recommended for users who explicitly need to control their @font-face
declarations and is only compatible with Vite-based frameworks or similar.
Subsets
Weights
Display
Formats
Copy CSS
Import this into your global CSS file. Your bundler will automatically rewrite the URL into a useable asset:
⬤⬤
/* opendyslexic-latin-400-normal */@font-face {font-family: 'OpenDyslexic';font-style: normal;font-display: swap;font-weight: 400;src: url(@fontsource/opendyslexic/files/opendyslexic-latin-400-normal.woff2) format('woff2'), url(@fontsource/opendyslexic/files/opendyslexic-latin-400-normal.woff) format('woff');}
css
Then include the following CSS in your project:
⬤⬤
body {font-family: 'OpenDyslexic', sans-serif;}
css
Installation
Install the static version of this font by running the following command:
⬤⬤
npm install @fontsource/opendyslexic
sh
⬤⬤
yarn add @fontsource/opendyslexic
sh
⬤⬤
pnpm add @fontsource/opendyslexic
sh
⬤⬤
bun add @fontsource/opendyslexic
sh
Import
Include the following line in the root layout of your project to import the font:
⬤⬤
import '@fontsource/opendyslexic';
jsx
CSS
Include the CSS in your project by adding the following line to your project:
⬤⬤
body {font-family: 'OpenDyslexic', sans-serif;}
css
Note: Advanced usage is recommended for users who explicitly need to control their @font-face
declarations and is only compatible with Vite-based frameworks or similar.
Subsets
Weights
Display
Formats
Copy CSS
Import this into your global CSS file. Your bundler will automatically rewrite the URL into a useable asset:
⬤⬤
/* opendyslexic-latin-400-normal */@font-face {font-family: 'OpenDyslexic';font-style: normal;font-display: swap;font-weight: 400;src: url(@fontsource/opendyslexic/files/opendyslexic-latin-400-normal.woff2) format('woff2'), url(@fontsource/opendyslexic/files/opendyslexic-latin-400-normal.woff) format('woff');}
css
Then include the following CSS in your project:
⬤⬤
body {font-family: 'OpenDyslexic', sans-serif;}
css