1.15.4 • Published 8 years ago
@codecademy/identity v1.15.4
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
1.15.4
8 years ago
1.15.3
8 years ago
1.15.2
9 years ago
1.15.1
9 years ago
1.15.1-0
9 years ago
1.15.0
9 years ago
1.14.1
9 years ago
1.14.0
9 years ago
1.13.0
9 years ago
1.12.0
9 years ago
1.11.0
9 years ago
1.10.0
9 years ago
1.9.0
9 years ago
1.8.0
9 years ago
1.7.0
9 years ago
1.6.4
10 years ago
1.6.3
10 years ago
1.6.2
10 years ago
1.6.0
10 years ago
1.5.0
10 years ago
1.4.0
10 years ago
1.3.0
10 years ago
1.2.4
10 years ago
1.2.3
10 years ago
1.2.2
10 years ago
1.2.1
10 years ago
1.2.0
10 years ago
1.1.1
10 years ago
1.1.0
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago