Skip to content

dmitriyg0r/SVG-Icons-by-Dreamsoftware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

SVG Icons by Dreamsoftware

npm version downloads bundle size license

Lightweight SVG icon collection for React with zero dependencies

image

✨ Features

13+ Essential Icons (Arrow, Calendar, Chat, Check, etc.)
React Components & Raw SVG files
Customizable via props (size, color, className)
Tree-shakable - import only what you need
TypeScript Support out of the box
Works with Vite, Next.js, CRA, Gatsby

🚀 Quick Start

Installation

npm install svg-by-dreamsoftware
# or
yarn add svg-by-dreamsoftware

Basic Usage

import { Search, Profile } from 'svg-by-dreamsoftware/icons-react-dist';

export default function App() {
  return (
    <div>
      <Search width={24} fill="#3b82f6" />
      <Profile className="icon-profile" />
    </div>
  );
}

🔧 API Reference

Common Props

Prop Type Default Description
width number 24 Icon width in px
height number 24 Icon height in px
fill string currentColor Color value
className string - Custom CSS class
style object - Inline styles

🎨 Customization Examples

Change color and size

<Calendar width={32} height={32} fill="#10b981" />

Use CSS classes

<Settings className="icon-settings" />
.icon-settings {
  color: #f59e0b;
  transition: all 0.3s ease;
}

.icon-settings:hover {
  color: #ef4444;
  transform: rotate(45deg);
}

Use as SVG file

import calendarIcon from 'svg-by-dreamsoftware/icons-svg-dist/calendar.svg';

📦 Bundle Optimization

Import only needed icons to reduce bundle size:

import Search from 'svg-by-dreamsoftware/icons-react-dist/Search';
// Instead of:
// import { Search } from 'svg-by-dreamsoftware/icons-react-dist';

🤔 FAQ

Q: How to add new icons?

A: Open an issue with your icon request or submit a PR!

Q: Can I use these in Vue/Angular?

A: Yes! Use the raw SVG files from icons-svg-dist folder.

Q: Why my icons don't change color?

A: Make sure your SVG uses fill="currentColor" and you're applying color via CSS or fill prop.

🌟 Pro Tips

  1. Animate icons using CSS transitions
  2. Combine with Tailwind for quick styling
  3. Lazy load icons for better performance
  4. Use CSS variables for theme support

🤝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Add your new icons to /src folder
  3. Run npm build
  4. Submit a PR

See our contribution guide for details.

📜 License

MIT © Dmitriy Gordienko

💖 Support the Project

If you find this useful, please consider: