1.1.49 • Published 1 year ago

@realtby/icons v1.1.49

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
1 year ago

@realtby/icons

realt.by icons library

npm code style: prettier

install

npm i -S @realtby/icons

usage

  1. import icons.css to your project, for example:
import '@realtby/icons/dist/icons.css';
  1. import icons from lib root:
import { SuccessIcon } from '@realtby/icons';
  1. render icon, pass props:
<SuccessIcon size={20} className="text-success-500" />

development

make install
make dev # run storybook
make lint
make build
make release # to push new version & generate changelog
make prerelease # then select pre- version, only push new version to npm, for testing
make build-size # reset cache, build & run size-limit
make size-limit-generate # generate icon size limit

How add svg to the library

  1. Copy the raw svg (for example: login.svg) and put it in the desired folder in src/icons (for example: admin):
  src/
      icons/
            ...
            admin/
                  ...
                  login.svg
  1. Run svg:processing script for the admin folder:
  $ npm run svg:processing src/icons/admin
  1. Check result:
  src/
      icons/
            ...
            admin/
                  ...
                  login.optimized.svg
                  login.tsx
                  index.tsx

Note: Processing performs an average optimization. For the best result, optimize the icon manually in the SVGOMG service, save it to a file with the extension .optimized.svg and run svg:processing again.

  1. Generate icon size-limit:
$ make build
$ make size-limit-generate
1.1.49

1 year ago

1.1.48

1 year ago

1.1.47

1 year ago

1.1.46

1 year ago

1.1.45

1 year ago

1.1.44

1 year ago

1.1.43

1 year ago

1.1.42

1 year ago

1.1.41

1 year ago

1.1.40

1 year ago

1.1.38

1 year ago

1.1.37

1 year ago

1.1.39

1 year ago

1.1.36

1 year ago

1.1.35

2 years ago

1.1.34

2 years ago

1.1.33

2 years ago

1.1.32

2 years ago

1.1.31

2 years ago

1.1.30

2 years ago

1.1.29

2 years ago

1.1.28

2 years ago

1.1.27

2 years ago

1.1.26

3 years ago

1.1.25

3 years ago

1.1.23

3 years ago

1.1.22

3 years ago

1.1.24

3 years ago

1.1.16

3 years ago

1.1.19

3 years ago

1.1.18

3 years ago

1.1.17

3 years ago

1.1.21

3 years ago

1.1.20

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.13

3 years ago

1.1.1

4 years ago

1.0.2

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.0.4

4 years ago

1.1.2

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago

0.1.0

4 years ago

0.0.2-16

4 years ago

0.0.2-15

4 years ago

0.0.2-14

4 years ago

0.0.2-13

4 years ago

0.0.2-12

4 years ago

0.0.2-11

4 years ago

0.0.2-10

4 years ago

0.0.2-9

4 years ago

0.0.2-8

4 years ago

0.0.2-7

4 years ago

0.0.2-6

4 years ago

0.0.2-5

4 years ago

0.0.2-4

4 years ago

0.0.2-3

4 years ago

0.0.2-2

4 years ago

0.0.2-1

4 years ago

0.0.2-0

4 years ago