Socket
Socket
Sign inDemoInstall

@sport-activities/springboard-icons

Package Overview
Dependencies
Maintainers
6
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sport-activities/springboard-icons

Springboard icons


Version published
Weekly downloads
6
decreased by-66.67%
Maintainers
6
Weekly downloads
 
Created
Source

Springboard Icons

Usage

Install with npm or yarn

npm i @sport-activities/springboard-icons

Import font-icon.css

<link rel="stylesheet" href="./node_modules/@sport-activities/springboard-icons/font-icons.css">

Use icon

<i class="icon-arrow-down"></i>

Development

Config:

  • .svgo.yml: optimizer config
  • .glyphs2font.yml font icon generator config

Add new icon

  • Update font icon generator config file:
# .glyphs2font.yml

glyphs:
  - glyph:    ./icons/newIconName.svg
    name:     newIconName
    code:     0xE001 # increment this
  • Optimize and build font icon
npm run build:prod

For windows users: Change path of the files imported in font-icons.css

  • See your new icon in icons-reference.html _Users_VINCENT_Documents_boulot_springboard_packages_icons_dist_springboard html (1) PS: icons are red but it's just to test css color modification

Releasing

Release are prepare using release-it script.

npm i -g release-it
release-it

Know issues

Issue 1

For some icons, we can see rectangle like this: Capture d’écran 2019-09-13 à 10 32 18

Instead:

Capture d’écran 2019-09-13 à 10 33 33

I think this problem is caused by Sketch export.

Solution
  • Remove this line below in your svg icon before generate the font
<!-- icon.svg -->

<svg>
  <rect x="0" y="0" width="72" height="72"></rect> <!-- remove this -->
</svg>

Issue 2

Check complex icon with rotate or things like this, example:

The compilation:

<!-- icon.svg -->
<svg>
  <use transform="rotate(-45 16.012 11.1)" /> <!-- transform="rotate" is not interpreted in our font  -->
</svg>
Capture d’écran 2019-09-13 à 11 09 46

Expected:

Capture d’écran 2019-09-13 à 11 11 04

I think this problem is caused by Sketch export.

UPDATE:

This is really Sketch export because valid-tiny-bold looks good: Capture d’écran 2019-09-16 à 10 09 45

Issue 3

stroke-* properties aren't supported.

Solution

You have to export svg file as (computed) paths only using Sketch or Illustrator.

FAQs

Package last updated on 26 May 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc