Skip to content

edx/edx-fonts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

edX Fonts

This repo contains font faces used by edX applications. Use it, as well as the edX CDN, in favor of external providers such as Google Fonts (which is not available in all locales).

Current Fonts

Usage

The simplest method to use the fonts is to use the supplied CSS on the edX CDN. You can either link to the CSS file from your HTML or import it in your CSS.

From HTML

<link rel="stylesheet" type="text/css" href="https://files.edx.org/fonts/edx-fonts/open-sans/open-sans.css">

From CSS

@import url("https://files.edx.org/fonts/edx-fonts/open-sans/open-sans.css");

Building the CSS

A script is included to compile the SASS to CSS. If you would like to use your own static file server or serve the files from within your application, update the $fontRoot variable in _config.scss to the appropriate path. Afterward, run the script below to create the CSS.

$ ./compile.sh

About

Fonts for use in edX projects

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 46.9%
  • SCSS 36.6%
  • HTML 15.3%
  • Shell 1.2%