brandkitjs
v1.0.6
Published
A modern way to use brand icons in your React applications - 40+ social, development, and design tool icons
Downloads
24
Maintainers
Readme
Highlights
- Total Icons: 42
- Categories: Social (16), Development & Tools (25), Design (1)
- Formats: SVG (scalable, editable)
- Bundle-friendly: ESM build with named exports for tree-shaking
- Customization:
size,color,className, andstyleprops
Features
- React Components - Drop-in React components for easy integration
- Individual Exports - Import only the icons you need to keep bundles small
- Search & Filter Utilities - Helpers to find icons by name or category
- Lightweight - Minified size ~15KB, gzip ~5KB (approx.)
- TypeScript Ready - Provided type definitions for easy TSX usage
NPM Usage (recommended)
- Package name:
brandkitjs(published to npm)
Install (choose your package manager):
npm install brandkitjs
# or
# yarn add brandkitjs
# pnpm add brandkitjsNotes:
- The package is published as ESM (
type: "module",modulefield). Use named imports so bundlers can tree-shake unused icons. - Peer dependencies:
reactandreact-dom.
Basic usage:
import { Github } from 'brandkitjs';
export default function App() {
return <Github />;
}Customize size and color:
import { Github } from 'brandkitjs';
export default function App() {
return <Github size="48px" color="#181717" />;
}Import only what you need (bundle-friendly):
import { Facebook, Instagram, Github } from 'brandkitjs';
function SocialLinks() {
return (
<div style={{ display: 'flex', gap: 12 }}>
<Facebook size="24px" />
<Instagram size="24px" />
<Github size="24px" />
</div>
);
}CommonJS / Node consumers
- In CommonJS-only environments use dynamic import interop:
(async () => {
const pkg = await import('brandkitjs');
const { Github } = pkg;
// use Github
})();CDN usage (ES module build)
<script type="module">
import { Github } from 'https://cdn.jsdelivr.net/npm/[email protected]/dist/index.esm.js';
// mount your React app that uses <Github />
</script>Icon Catalog
Brandkit includes 42 icons across three categories. Below is a concise catalog with IDs and brand colors (hex) taken from the icon metadata.
Social Icons (16)
| Name | ID | Color |
|-----------|------------|-----------|
| Facebook | facebook | #1877F2 |
| Instagram | instagram | #E4405F |
| Twitter | twitter | #1DA1F2 |
| YouTube | youtube | #FF0000 |
| Google | google | #4285F4 |
| LinkedIn | linkedin | #0A66C2 |
| TikTok | tiktok | #000000 |
| Discord | discord | #5865F2 |
| Spotify | spotify | #1DB954 |
| Twitch | twitch | #9146FF |
| Pinterest | pinterest| #E60023 |
| Reddit | reddit | #FF4500 |
| WhatsApp | whatsapp | #25D366 |
| Telegram | telegram | #26A5E4 |
| Snapchat | snapchat | #FFFC00 |
| Medium | medium | #000000 |
Development & Tools (25)
| Name | ID | Color |
|-------------|--------------|-----------|
| GitHub | github | #181717 |
| NPM | npm | #CB3837 |
| React | react | #61DAFB |
| Vue.js | vue | #4FC08D |
| Slack | slack | #4A154B |
| HTML5 | html5 | #E34F26 |
| CSS3 | css3 | #1572B6 |
| JavaScript | javascript | #F7DF1E |
| Python | python | #3776AB |
| Java | java | #007396 |
| Node.js | nodejs | #339933 |
| TypeScript | typescript | #3178C6 |
| Angular | angular | #DD0031 |
| Docker | docker | #2496ED |
| Git | git | #F05032 |
| MongoDB | mongodb | #47A248 |
| VS Code | vscode | #007ACC |
| Bootstrap | bootstrap | #7952B3 |
| Tailwind | tailwind | #06B6D4 |
| WordPress | wordpress | #21759B |
| Sass | sass | #CC6699 |
| Flutter | flutter | #02569B |
| Kotlin | kotlin | #7F52FF |
| Go | go | #00ADD8 |
| Ruby | ruby | #CC342D |
Design (1)
| Name | ID | Color |
|-------|---------|-----------|
| Figma | figma | #F24E1E |
Utilities
getAllIcons()— Returns an array of all icon metadata objects.getIconsByCategory(category)— Filter icons bysocial,development, ordesign.searchIcons(query)— Search by name or id (case-insensitive).Iconcomponent — Dynamic renderer:<Icon id="github" size="24px" />.
Example: dynamic icon grid
import React, { useState } from 'react';
import { searchIcons, Icon } from 'brandkitjs';
export default function IconGrid() {
const [query, setQuery] = useState('');
const icons = query ? searchIcons(query) : [];
return (
<div>
<input
type="text"
placeholder="Search icons..."
value={query}
onChange={(e) => setQuery(e.target.value)}
/>
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(4, 1fr)', gap: '16px' }}>
{icons.map((icon) => (
<div key={icon.id}>
<Icon id={icon.id} size="32px" />
<p>{icon.name}</p>
</div>
))}
</div>
</div>
);
}Popular Combinations
- Full Stack Developer:
html5,css3,javascript,react,nodejs,mongodb - Web Designer:
html5,css3,figma,bootstrap - Social Media Manager:
facebook,instagram,twitter,linkedin,pinterest - DevOps:
docker,git,github - Mobile Developer:
flutter,react
Component Props
All icon components accept the following props:
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| size | string | '24px' | Icon size (px, em, rem, etc.) |
| color | string | Icon default color | SVG fill color (hex, rgb, rgba) |
| className | string | undefined | CSS class name |
| style | object | undefined | Inline CSS styles |
Performance
- SVG-based icons for crisp rendering at any size
- Tree-shakeable ESM build to eliminate unused icons in production
- No runtime dependencies beyond React
TypeScript
Type definitions are provided via the types field (dist/index.d.ts). Import components normally in TSX files.
Contributing
Contributions are welcome! Submit a Pull Request or open an Issue on GitHub.
Security
If you discover a security vulnerability in the project, do not open a public issue.
Instead, submit a private report through the Security advisories section.
License
This project is licensed under the MIT License. For more details, see the LICENSE file.
Support
For issues and questions, please open an issue on GitHub.
Links
- Repository: https://github.com/samirrhashimov/brandkit
- NPM Package: https://www.npmjs.com/package/brandkitjs
