1.2.8 • Published 7 months ago
@impactium/icons v1.2.8
@impactium/icons
This package provides a convenient wrapper around lucide-react and vercel-icons. It includes over 1900 icons, making it easy to use them in your projects.
Key Features
- Default Size: Icons have a default size of
16. - Default Color: Default
colorvalue iscurrentColor. - Color Priority: The
colorproperty takes precedence overvariant. - Recommendation: Avoid using universal CSS rules like
* { color: something }as all icons will inherit that color. Instead use*:not(svg *){} @param fromGeist: Allows selecting an icon that exists in both libraries.
Usage
import { Icon } from '@impactium/icons';
// Basic usage
<Icon name="FunctionGo" />
// Setting color
<Icon name="FunctionGo" color="gray" />
<Icon name="FunctionGo" color="#212121" />
// Using variant
<Icon name="FunctionGo" variant="dimmed" />
// Example with TypeScript types
const name: Icon.Name = "FunctionNode";
const variant: Icon.Variant = "white";
<Icon name={name} variant={variant} size={32} />Changelog
- 1.0.0: Package initialized.
- 1.0.1: Added size customization support.
- 1.0.2: Added color customization support.
- 1.0.3: Fixed an issue where lucide-icons rendered incorrectly.
- 1.0.4: Improved performance.
- 1.0.5: Fixed an issue multicolor icons rendered incorrectly.
- 1.0.6: Now
lucide-iconshave priority oververcel-icons. - 1.0.7: Replaced
var(--vercel-color)with hardcoded color values. - 1.0.8:
- The default icon size has been updated from 20px to 16px.
- Fixed an issue with the built-in icon compiler from
lucide-react. A custom algorithm was implemented to:- Support
defselements. - Work with nodes of any depth.
- Support
- Added support for the
fromGeistparameter, allowing the selection of icons with the same name from both libraries. For example:
<Icon name='User' />// defaults tolucide-react.<Icon name='User' fromGeist />// loads the icon fromGeist/Vercel.
- 1.0.9: New version just because i want to.
- 1.1.0:
- Decreased package-size from 2MB to 1.2MB.
- Licence improvements.
- 1.1.1: More icons.
- 1.1.2: Fixed
unique key error. - 1.1.3: Cause i want to.
- 1.1.4: Fixed colors for PrismColor icon.
- 1.1.5: Fixed icons order.
- 1.1.6: Added new logo.
- 1.1.7: Fixed new logo.
- 1.1.7: Added new logo.
- 1.1.8: Fixed new logo.
- 1.1.9: Fixed colors for Python icon.
- 1.2.0: Added Impactium logo and better icon generation algorhythm.
- 1.2.1: Added two icons:
PointerLeftandPointerRight. - 1.2.2: Two icons has been merged into one ic on
Pointerand has been redrew. - 1.2.3: Now any version of
Reactis supported. - 1.2.4: Now any version of
React-Domis supported. - 1.2.5: Added
LogoTailwindicon. - 1.2.6: Removed
Pointericon due to duplication ofGPSicon. - 1.2.7: Added error message for unknown name prop.
- 1.2.8: Added
LogoDockericon.
TODO
- Suggested Improvement: Enhance the algorithm to enable the compiler to preserve key icon settings, such as
viewBoxandwidth.
This package makes it quick and easy to integrate icons into your projects with minimal configuration.
Need help or something? Write here: admin@impactium.fun
Made by Mireg from Impactium with 🖤
1.2.8
7 months ago
1.2.7
7 months ago
1.2.6
7 months ago
1.2.5
7 months ago
1.2.4
7 months ago
1.2.3
7 months ago
1.2.2
8 months ago
1.2.1
8 months ago
1.2.0
9 months ago
1.1.8
9 months ago
1.1.7
9 months ago
1.1.6
9 months ago
1.1.5
9 months ago
1.1.4
9 months ago
1.1.3
10 months ago
1.1.2
10 months ago
1.1.1
11 months ago
1.1.0
11 months ago
1.0.9
11 months ago
1.0.8
11 months ago
1.0.7
12 months ago
1.0.5
12 months ago
1.0.4
12 months ago
1.0.3
12 months ago
1.0.2
12 months ago
1.0.1
12 months ago
1.0.0
12 months ago