@rmccue/sfsymbols

0.0.2 • Public • Published

sfsymbols

This package exposes a map of symbol name to character code for SF Symbols.

Note that this is the raw names and character data, not the visual representation of the symbols. You will still need a copy of the SF Symbols font, which is subject to the usage terms of SF Symbols.

Usage

import symbols from '@rmccue/sfsymbols';

// Use characters as needed.
`Here is a ${ symbols['pencil'] }`.

Development

To update the data, perform the following steps:

  1. Open the SF Symbols app
  2. Select all icons: ⌘A
  3. Copy data ⌘C and save into data/unicode.dat
  4. Copy names ⌘⇧C and save into data/names.dat
  5. Run yarn build

Readme

Keywords

none

Package Sidebar

Install

npm i @rmccue/sfsymbols

Weekly Downloads

9

Version

0.0.2

License

ISC

Unpacked Size

103 kB

Total Files

5

Last publish

Collaborators

  • rmccue