mercury-icons
v4.0.4
Published
A comprehensive pack of SVG icons for Mercury Development projects
Downloads
76
Maintainers
Readme
Mercury Icons
Install
npm install mercury-iconsUse
React Components
import { ArrowDown24, Heart20, Star16 } from "mercury-icons";
function App() {
return (
<div>
<ArrowDown24 color="#ff0000" />
<Heart20 />
<Star16 color="#gold" />
</div>
);
}Props
color: string (default: '#FAFBFB') - disabled for colorful icons
Colorful Icons
Icons starting with colorful- (like flags, social media) keep their original colors and don't accept the color prop
For Designers: Updating Icons
When you have new or updated icons to add to the package:
Replace the all-icons folder:
- Delete the existing
all-icons/folder - Place your updated
all-icons/folder in the project root
- Delete the existing
Commit the updates to remote repo
git add . git commit -m "your commit comment here" # For bug fixes (patch version update) npm run release:patchRebuild and publish:
# For new icons (minor version update) npm run release:minor # For bug fixes (patch version update) npm run release:patch
For Developers: Version Management
This package uses automated version management with semantic versioning (SemVer):
Release Commands
# Patch release (1.0.0 → 1.0.1) - Bug fixes
npm run release:patch
# Minor release (1.0.0 → 1.1.0) - New icons, new features
npm run release:minor
# Major release (1.0.0 → 2.0.0) - Breaking changes
npm run release:major
# Pre-release versions
npm run release:beta # 1.0.0 → 1.0.1-beta.0
npm run release:alpha # 1.0.0 → 1.0.1-alpha.0Version Guidelines
- Patch (
1.0.0 → 1.0.1): Bug fixes, documentation updates - Minor (
1.0.0 → 1.1.0): New icons, new features, backward compatible changes - Major (
1.0.0 → 2.0.0): Breaking changes, API changes, removing features
Build Process
The build script automatically:
- Processes all SVG files in the
all-icons/folder - Generates React components and TypeScript definitions
- Creates ES modules and SVG string functions
- Handles colorful icons (preserves original colors)
- Updates all index files
- Supports tree-shaking
License
MIT
