3.6.0 • Published 2 months ago

@webjet/react-icons v3.6.0

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

React Icons

Getting started

> npm i

> npm start

Export svg icon from figma and import it to UI-IconsLibrary repo

  1. In icon figma file, select 16x16 icon you want to download. Note: It's important to select the Icon layer size 16x16 from they figma file image

  2. Open Export tab, select option 'SVG' from dropdown and click the Export button at the right hand side. image

  3. Open downloaded SVG file using Visual Code, it will have something like below:

<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="..." fill="black"/>
</svg>
  1. Remove change width and height to be 1em, change svg fill to be #646464 and remove fill="black" from the end of <path>. It should look like this.
<svg width="1em" height="1em" viewBox="0 0 16 16" fill="#646464" xmlns="http://www.w3.org/2000/svg">
<path d="..." />
</svg>
  1. Add this file under /src/icons/category folder.

How to convert Webjet-Font icon to UI-IconsLibrary repo

  1. Open file UIPatternLibraries/src/Webjet/fonts/webjet-icons.svg
  2. Open https://services.webjet.com.au/web/ui/uipatternlibrary/patterns/webjet/icons-images.html
  3. Find the icon that you want to add into library, and find the icon hexadecimal value (from the icon's css content property)
  4. Search for the hexadecimal value from webjet-icons.svg, and copy the value inside d= attribute
  5. Create new svg file with below content, and change the d= value with the copied value from previous step
<svg width="2048" height="2048" viewBox="0 0 2048 2048" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="" fill="#646464"/>
</svg>
  1. Bring the file into figma. Atm The file is very big, and we want to reduce the size to be 16x16 OR 32x32 pixels only. Please adjust this using figma so the icon fit into the viewBox nicely.
  2. After finish adjusting the icon, please export file as SVG using figma
3.6.0

2 months ago

3.5.0

3 months ago

3.4.2

4 months ago

3.4.0

6 months ago

3.3.1

8 months ago

3.0.4

10 months ago

3.3.0

9 months ago

3.2.0

9 months ago

3.1.0

10 months ago

3.3.3

7 months ago

3.4.1

6 months ago

3.3.2

8 months ago

3.0.3

12 months ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

3.0.0-beta.3

1 year ago

3.0.0-beta.2

1 year ago

2.0.4

1 year ago

3.0.0-beta.1

1 year ago

3.0.0-beta.0

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago