Socket
Socket
Sign inDemoInstall

@expo/styleguide-icons

Package Overview
Dependencies
6
Maintainers
25
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @expo/styleguide-icons

Expo's icons for use on the web.


Version published
Maintainers
25
Install size
7.12 MB
Created

Readme

Source

@expo/styleguide-icons

Expo's icons for use on the web.

Get started

  1. Install dependencies with yarn.
  2. Set up a .env file. To do this, you'll need to: a. Duplicate the .env.example file, and name the copy: .env. b. Inside it, define a FIGMA_TOKEN with a personal access token from Figma. Click on your avatar in Figma in the top right > Settings > Account tab. The personal access token settings are near the bottom.
  3. Build everything with yarn build.

Icon generation

We generate all icon files based on our Figma icons. The process is:

  1. Make a call to Figma to get all the icons from a specific file.
  2. Once we get every component from the icons pages specified in figma.config.js, we optimize them all with SVGO.
  3. After that, we use SVGR to create React components of each icon. The outputter is defined in figma.config.js, and we use a custom template in svgr-icon-template.js. These components are stored in tmp.
  4. Finally, we use rollup to build our final package. These files are saved in dist.

FAQs

Last updated on 12 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc