1.20.0 • Published 2 days ago

@atom-learning/icons v1.20.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 days ago

Icons

This package exports the Ikonate icon set as React components alongside custom icons specific to Atom Learning.

Installation & usage

yarn add @atom-learning/icons
import { Danger } from '@atom-learning/icons'

const Component = () => (
  <Danger />
)

To use alongside the @atom-learning/components package, you can combine any imported icon with the Icon primitive to provide a set of default sizes and props for styling.

import { Icon } from '@atom-learning/components'
import { Danger } from '@atom-learning/icons'

const Component = () => (
  <Icon is={Danger} css={{ color: 'red' }} size="lg" />
)

Contributing

Custom SVG icons can be added to ./src and will automatically be bundled. When adding to the custom icon set you must follow the following guidelines:

  • The viewBox must be 0 0 24 24 and no height or width should be set
  • Visually the contents of the icon should work when stroke-width: 2 and fill: none are applied

You can remove all attributes that we default to in our @atom-learning/components Icon component to save on file size:

  • fill (default fill="none")
  • stroke (default stroke="currentcolor")
  • stroke-linecap (default stroke-linecap="round")
  • stroke-linejoin (default stroke-linejoin="round")
  • stroke-width (default stroke-width="2")

However, you may include these if necessary if you need to override these default styles used above, e.g. fill="currentColor" and stroke-width="0" for a filled path

1.20.0

2 days ago

1.19.0

8 days ago

1.18.0

16 days ago

1.17.0

1 month ago

1.16.0

1 year ago

1.15.0

1 year ago

1.15.0-beta.1

1 year ago

1.14.0

2 years ago

1.13.0

2 years ago

1.11.2

2 years ago

1.12.0

2 years ago

1.11.1

2 years ago

1.11.0

2 years ago

1.10.0

2 years ago

1.9.0

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago