@codecademy/identity
v1.15.4
Published
## Ikona icon font
Downloads
39
Readme
IDENTITY
Ikona icon font
Icon specs:
- icons should render sharply at 16x16px
- icons should be centered in thier artboard, which should be square
- ideally, icons should exported at 1200x1200px
- this is not currently done with our icons, but will produce better results than exporting at 16x16
Adding an icon
- run
npm install
to make sure you have all of the dependencies - add your svg file to
src/icons
; the unicode will be generated by the next step - run
npm run compile
- open
public/icons.html
in your browser, and make sure your icon is there and looks correct - commit your changes
- bump the npm module version (as a patch level change), using 'npm version patch'
- publish to npm with
npm publish
. if you have not done so previously, you will need to create an ~/.npmrc file; the contents should be like so:
//registry.npmjs.org/:_authToken=thissecretwillhelpyoupublish
progress=false
npm push --tags
so the npm version is tagged in github.- :+1:
Colors
To use the "mint" color in JS, you would do this:
import { color } from '@codecademy/identity';
console.log(color.mint); // #39D1B4
in SCSS:
.button {
background-color: $color-mint;
}
Casing
in JS, variable names are camel case so you can use dot-notation
JS: identity.color.lp.chromeBgDark
SCSS: $color-lp-chrome-bg-dark