4.2.1 • Published 6 years ago

@lushdigital/icons v4.2.1

Weekly downloads
14
License
MIT
Repository
gitlab
Last release
6 years ago

Icons

This repo contains all icons.


Storybook


Usage

Install

yarn add @lushdigital/icons

Include the component at the top of the component it's required in.

import Icon from '@lushdigital/icons';

Implement as follows

<Icon
  // Pass in name of icon. Required.
  icon='search'

  // Pass in a value to fill path. default: "currentColor"
  fill='#000'

  // Pass in size value, sets height & width. default: "16px"
  size='22px'
/>

Adding? Changing? Updaing?

Within this project a useful release script is avaliable. It allows you to automagically tag, push to git, publish to npm and deploy storybook... All you need to do it run: npm run release


Adding icon?

When adding an icon the key ingredient to make it work is ensure that the view box of the icon is 0 0 32px 32px.

The easiest way to achieve this is to open the icon/svg in illustrator.

  • Locate icon on cheatsheet

  • Locate icon in svg folder

  • Rename icon in svg folder to match cheatsheet name

  • Open icon in illustrator

  • Select icon

  • In the transform panel change make the largest axis 32px wide (ensure you constrain the proportions)

  • Click the artboard tool (shift + o)

  • In presets in the top bar select fit to selected art

  • Once you have done that ensure both height and width of artboard at 32px.

  • Export as SVG and you're done.

  • Copy <d> from newly saved svg

  • Add that raw data into the case swich in the src file

  • Remember to add a example in storybook

  • Run release script npm run release

4.2.1

6 years ago

4.2.0

6 years ago

4.1.0

6 years ago

4.0.0

6 years ago

4.0.0-beta.10

6 years ago

4.0.0-beta.9

6 years ago

4.0.0-beta.8

6 years ago

4.0.0-beta.7

6 years ago

4.0.0-beta.6

6 years ago

4.0.0-beta.5

6 years ago

4.0.0-beta.4

6 years ago

4.0.0-beta.3

7 years ago

3.0.4

7 years ago

3.0.3

7 years ago

4.0.0-beta.2

7 years ago

4.0.0-beta.1

7 years ago

4.0.0-beta.0

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0-beta.3

7 years ago

3.0.0-beta.2

7 years ago

2.1.8

7 years ago

2.1.7

7 years ago

2.1.6

7 years ago

2.1.5

7 years ago

2.1.4

7 years ago

3.0.0-beta.1

7 years ago

3.0.0-beta.0

7 years ago

3.1.0-beta.0

7 years ago

3.0.0

7 years ago

2.1.3

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.20.1

7 years ago

1.20.0

7 years ago

1.19.0

7 years ago

1.18.0

7 years ago

1.17.0

7 years ago

1.16.5

7 years ago

1.16.4

7 years ago

1.16.3

7 years ago

1.16.2

7 years ago

1.16.1

7 years ago

1.16.0

7 years ago

1.15.2

7 years ago

1.15.1

7 years ago

1.14.2

7 years ago

1.14.1

7 years ago

1.14.0

8 years ago

1.13.0

8 years ago

1.11.2

8 years ago

1.12.0

8 years ago

1.11.1

8 years ago

1.11.0

8 years ago

1.10.0

8 years ago

1.9.0

8 years ago

1.8.1

8 years ago

1.8.0

8 years ago

1.7.1

8 years ago

1.7.0

8 years ago

1.6.0

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.5

8 years ago

1.4.4

8 years ago

1.4.3

8 years ago

1.4.2

8 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.0.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago