Skip to content

Easy access fonts as a git submodule for using SFMono and SFProText font-faces

Notifications You must be signed in to change notification settings

pedrouid/san-francisco-fonts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

San Francisco Fonts

Easy access fonts as a git submodule for using SFMono and SFProText font-faces

Setup

1. Install git submodule from this repository

$ git submodule add git@pedrouid:san-francisco-fonts <WEBSITE_DIR>/fonts

2. Add font-faces link tag to html header

  <link rel="stylesheet" type="test/css" href="fonts/san-francisco.css">

3. Use font in your stylesheet

/* For using SFMono with fallbacks */
.class {
  font-family: "SFMono", "Roboto Mono", Courier New, Courier, monospace;
}

/* For using SFProText with fallbacks */
.class {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text", Roboto, Helvetica, Arial, sans-serif;
}

/* Available font-weights for both font-faces */
.class {
  font-weight: 400; /* normal */
  font-weight: 500;
  font-weight: 600;
  font-weight: 700; /* bold */
}

About

Easy access fonts as a git submodule for using SFMono and SFProText font-faces

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages