Git Product home page Git Product logo

sf-symbols's Introduction

SF Symbols SVG Library

SF Symbols is the greatest icon set to ever be created, and will likely remain so for the foreseeable future. Unfortunately, Apple has always hated the web...

  • This repo is used to convert SF Symbols to SVGs, which can then be used in web projects.
  • The SVGs are generated from the SF Symbols font files, and the names are taken from the SF Symbols app.
  • All 4,491 symbols in 9 weights are included. Monochrome color mode only.

Usage

  1. If first time, install dependencies.
pnpm i
  1. Then, generate the JSON output with SVGs (this will take multiple minutes on an M1 Mac).
pnpm run make
  1. Output can be found in /src

Creating a new version

Place the char and name files into `/sources

  1. Download the latest SF Symbols version from Apple's website.
  2. Go to Edit > Select All
  3. Right click on the selection, and press Copy all {x} symbols
  4. Paste symbols into a file in sources/{version}/chars.txt
  5. Right click again on the selection, this time press Copy all {x} names
  6. Paste names into a file in sources/{version}/names.txt

Place the font files into /sources

  1. Download SF Pro font from Apple's website.
  2. Install the font, and open Font Book app.
  3. Find SF Pro, and right click on it. Press Show in Finder.
  4. Copy SF-Pro-Text-Ultralight.otf through SF-Pro-Text-Black.otf file into sources/{version}/ folder.
  5. Thats it, now you can run the script below.

Note on Bounding Boxes

Currently, extra space is trimmed at the 4 outer edges of each symbol. It might be desirable to retain the initial extra spacing to preserve baseline consistency or x-axis overflow. Preserving these properties would make the symbols in this library more similar to the characters in the font.

Note on License

I do not own nor claim to own SF Symbols. This repo is simply a tool to convert the SF Symbols font into SVGs.

sf-symbols's People

Contributors

g-a-v-i-n avatar alexstaravoitau avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.