Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ritterim/platform-icons

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ritterim/platform-icons

Platform icons are part of the [Platform UI](https://github.com/ritterim/platform-ui) project from Ritter Insurance Marketing

  • 2.1.16
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Platform Icons

Separate package for Platform UI Icons

How to use

CDN Usage

  • In your projects <head> section, include one of the following lines:
<!-- UNPKG -->
<link rel="stylesheet" href="https://unpkg.com/@ritterim/platform-icons/dist/platform-icons.css"/>

<!-- JSDELIVR -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ritterim/platform-icons/dist/platform-icons.css"/>

<!-- Skypack -->
<link rel="stylesheet" href="https://cdn.skypack.dev/@ritterim/platform-icons/dist/platform-icons.css"/>

NPM Installation

  • In your project, install the Platform Icons package via npm
npm install @ritterim/platform-icons
  • Include in your HTML or import into your stylesheet
<!-- index.html -->
<link rel="stylesheet" href="path/to/node_modules/@ritterim/platform-icons/dist/platform-icons.css"/>
/* style.css */
import 'path/to/node_modules/@ritterim/platform-icons/dist/platform-icons.css'
  • Use icons in your HTML:
<i class="pi-check"></i>

Dev Instructions

  1. Clone repo
  2. Navigate into the repo folder
  3. Run npm install to install dependencies
  4. After installing dependencies, build the project by running npm run build
  5. To start dev server, run npm start
  6. To create package, run npm run pack

SVG Setup for Contributing

Some notes on svg setup

sourcedefault
artboard4" x 4"
main stroke24pt
auxiliary stroke18pt
corner.15"
joinround
  • Use compound paths (remember, there is no white 😜)
  • Expand to outlines

Codepoints

Codepoints are the hexadecimal pointer to an icon. Here, they're used to target icons in CSS using :before:

<i class="pi-platfrom-ui"></i>

<style>
  .pi-platform-ui:before {
    content: "\f18f";
  }
</style>

Each time the icon set is generated there's a chance these pointers may shift. To avoid this, we copy ./public/platform-icons.json map to reserved-codepoints.json to maintain the current label-to-codepoint map so codepoints don't change.

Dependencies

Keywords

FAQs

Package last updated on 28 May 2024

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