1.15.4 • Published 7 years ago

@codecademy/identity v1.15.4

Weekly downloads
-
License
-
Repository
github
Last release
7 years ago

IDENTITY

Ikona icon font

Icon specs:

  1. icons should render sharply at 16x16px
  2. icons should be centered in thier artboard, which should be square
  3. 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

  1. run npm install to make sure you have all of the dependencies
  2. add your svg file to src/icons; the unicode will be generated by the next step
  3. run npm run compile
  4. open public/icons.html in your browser, and make sure your icon is there and looks correct
  5. commit your changes
  6. bump the npm module version (as a patch level change), using 'npm version patch'
  7. 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
  1. npm push --tags so the npm version is tagged in github.
  2. :+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

7 years ago

1.15.3

7 years ago

1.15.2

8 years ago

1.15.1

8 years ago

1.15.1-0

8 years ago

1.15.0

8 years ago

1.14.1

8 years ago

1.14.0

8 years ago

1.13.0

8 years ago

1.12.0

8 years ago

1.11.0

8 years ago

1.10.0

8 years ago

1.9.0

8 years ago

1.8.0

8 years ago

1.7.0

8 years ago

1.6.4

9 years ago

1.6.3

9 years ago

1.6.2

9 years ago

1.6.0

9 years ago

1.5.0

9 years ago

1.4.0

9 years ago

1.3.0

9 years ago

1.2.4

9 years ago

1.2.3

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago