2.6.0 • Published 15 days ago

@mskcc/icons v2.6.0

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
15 days ago

MSK Icons

Font files built with ligatures and Icon SVG sources

dist/svg/*SVG files
dist/msk-icon.min.csscss stylesheet
dist/msk-icon.scssscss stylesheet
$msk--icon-font-pathvariable for the font path

Usage

  • Use the class msk-icon in a span element to point to the font
  • The text inside the span will point to the correct icon
<span class="msk-icon">add</span>

Getting Started

npm install @mskcc/icons

Add icon stylesheet in your project

Add the msk-icon stylesheet to your project.

css

@import '@mskcc/icon/dist/msk-icon.min.css';

scss

// $msk-icon-font-path is the variable for the font path

@import '@mskcc/icons/dist/msk-icon.scss';

cdn

<head>
  <link
    href="https://cdn.jsdelivr.net/npm/@mskcc/icons@latest/dist/msk-icon.min.css"
    rel="stylesheet"
  />
</head>

Development Environment

Java is required for icon packaging. Jenv is a utility that makes setting the JAVA_HOME variable easier.

// After running each script, please follow the directions they provide
brew install maven jenv openjdk@11
jenv init -
// Run below within icons directory
mvn install
mvn package
gulp build

Codepoints

Each icon font has a reserved codepoints index that points to a unicode set, which is identified in reserved-codepoints.json. As a new icon gets added, we will assign the next available codepoints index.

Adding new icons to the font file

  • Add SVG files to src folder
  • Run pnpm run build and the files will render in dist

Reserving Codepoints

This task solidifies the space for the specified icon.

  • Run pnpm run build:codepoints to add the new icon codepoints index to the reserve list.
  • Commit the changes to reserved-codepoints.json
2.6.0

15 days ago

2.5.0

20 days ago

2.4.5

2 months ago

2.4.4

3 months ago

2.4.3

4 months ago

1.18.1

10 months ago

1.18.0

10 months ago

1.16.0

10 months ago

1.18.3

9 months ago

1.18.2

10 months ago

2.2.0

7 months ago

2.4.1

6 months ago

2.4.0

6 months ago

2.4.2

6 months ago

2.0.0

8 months ago

1.17.1

10 months ago

1.15.3

10 months ago

1.17.0

10 months ago

2.3.0

7 months ago

2.0.0-beta.2

10 months ago

2.0.0-beta.1

10 months ago

2.0.0-beta.0

10 months ago

2.1.0

8 months ago

1.15.2

11 months ago

1.15.0

11 months ago

1.14.0

12 months ago

1.13.1

12 months ago

1.13.0

1 year ago

1.15.1

11 months ago

1.10.3

1 year ago

1.12.0

1 year ago

1.11.1

1 year ago

1.10.2

1 year ago

1.9.0

1 year ago

1.11.0

1 year ago

1.10.1

1 year ago

1.10.0

1 year ago

1.8.0

1 year ago

1.7.0

1 year ago

1.6.0

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.8.0

2 years ago

0.5.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.4.0

2 years ago