Socket
Socket
Sign inDemoInstall

@clearkit/icons

Package Overview
Dependencies
11
Maintainers
9
Versions
315
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @clearkit/icons

A directory of ClearKit glyph icons for consumption by the ClearKit React component library.


Version published
Weekly downloads
326
increased by340.54%
Maintainers
9
Install size
2.20 MB
Created
Weekly downloads
ย 

Readme

Source

ClearKit Icon Packages

Icons for consumption by applications that implement ClearKit.

Adding new icons

  1. Icons are created in the ClearKit Figma library and exported as SVGs. The design team is responsible for this process.
  2. Once developer has prepared SVG files from design, then add the SVG file(s) to correct directory inside /packages/icons/icons/* most icons should be added to /glyphs, unless it is a Nav, Service, or Identity icon.
  3. Run yarn setup and yarn start:docs to verify that icon displays properly
  4. Create a pull request and label with "minor" label
  5. Once CI passes, share the Netlify preview link with designer to verify that the icon meets expectations

Glyphs

  • Created on an 18x18 grid
  • Paths should be flattened (unless the glyph should support multi-path)
  • Any fill on exported paths will be stripped in the build process
Multi-path glyphs

Certain glyphs that require multiple fills e.g. an icon with a badge or foreground element, can be exported with multiple paths. When this is done the exported <path> elements should be given class names so they can be targeted in CSS.

Give each <path> a class attribute as follows -

  • Assign base to the path that makes up the base of the glyph
  • Assign modifier to the path that is intended to take a different fill

By default, all path elements will still receive fill="currentColor" so can still be rendered with a single color.

Nav

  • Created on a 22x22 grid
  • Paths should be flattened
  • Any fill on exported paths will be stripped in the build process

Services

  • Created on a 26x26 grid
  • Icons should be exported with their intended fills
  • All fill attributes will be preserved in the build process

Identity

  • Created on a 72x72 grid
  • Icons should be exported with their intended fills
  • All fill attributes will be preserved in the build process

FAQs

Last updated on 08 Mar 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