2.1.15 • Published 7 months ago

@ritterim/platform-icons v2.1.15

Weekly downloads
3
License
MIT
Repository
github
Last release
7 months ago

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

2.1.14

8 months ago

2.1.15

7 months ago

2.1.12

8 months ago

2.1.13

8 months ago

2.1.8

10 months ago

2.1.11

8 months ago

2.1.4

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.1.7

1 year ago

2.1.2

1 year ago

2.1.3

1 year ago

2.1.0

1 year ago

2.0.2

2 years ago

2.0.0

2 years ago

0.3.0

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago