{"id":46901120,"url":"https://github.com/hauntedjpeg/stera-icons","last_synced_at":"2026-03-11T00:01:00.433Z","repository":{"id":314380471,"uuid":"1055255458","full_name":"hauntedjpeg/Stera-Icons","owner":"hauntedjpeg","description":"Stera Icon Library — React","archived":false,"fork":false,"pushed_at":"2026-03-08T02:38:55.000Z","size":33735,"stargazers_count":6,"open_issues_count":16,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-10T17:17:19.304Z","etag":null,"topics":["design","icons","library"],"latest_commit_sha":null,"homepage":"https://stera.site","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hauntedjpeg.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-12T02:19:08.000Z","updated_at":"2026-03-08T02:37:53.000Z","dependencies_parsed_at":"2026-01-07T07:10:03.618Z","dependency_job_id":null,"html_url":"https://github.com/hauntedjpeg/Stera-Icons","commit_stats":null,"previous_names":["chazgiese/stera-icons","hauntedjpeg/stera-icons"],"tags_count":65,"template":false,"template_full_name":null,"purl":"pkg:github/hauntedjpeg/Stera-Icons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hauntedjpeg%2FStera-Icons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hauntedjpeg%2FStera-Icons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hauntedjpeg%2FStera-Icons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hauntedjpeg%2FStera-Icons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hauntedjpeg","download_url":"https://codeload.github.com/hauntedjpeg/Stera-Icons/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hauntedjpeg%2FStera-Icons/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30362683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["design","icons","library"],"created_at":"2026-03-11T00:00:58.517Z","updated_at":"2026-03-11T00:00:59.920Z","avatar_url":"https://github.com/hauntedjpeg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stera Icons\n\n[![npm version](https://img.shields.io/npm/v/stera-icons.svg)](https://www.npmjs.com/package/stera-icons)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA modern, lightweight React icon library with 760+ icons. All icons available in 6 variants with triple-aliased exports for maximum flexibility.\n\n## ✨ Features\n\n- **760+ Icons** - Comprehensive icon set in 6 variants (Regular, Bold, Fill × Duotone/Standard)\n- **Tree-Shakeable** - Only ~300 bytes per icon variant in your bundle\n- **Triple Aliasing** - Import icons with base name, Icon suffix, or Si prefix\n- **Dynamic Loading** - Lazy-load icons at runtime for large applications\n- **Accessible** - Auto `aria-hidden` for decorative icons\n- **CSS Classes** - Automatic icon-specific classes for easy styling\n- **Subpath Exports** - Import directly from icon paths for optimal tree-shaking\n- **TypeScript** - Full type definitions with comprehensive JSDoc\n- **React 17+** - Works with all modern React versions\n\n## Installation\n\n```bash\nnpm install stera-icons\n```\n\n\u003e Requires Node.js 18+ and React 17+. ESM-only (no CommonJS).\n\n## Quick Start\n\n```tsx\nimport { Search, Home } from 'stera-icons';\n\nfunction App() {\n  return (\n    \u003c\u003e\n      \u003cSearch size={24} color=\"blue\" /\u003e\n      \u003cHome size={32} /\u003e\n    \u003c/\u003e\n  );\n}\n```\n\nBase icon names (`Search`, `Home`, etc.) give you the Regular variant with optimal bundle size (~300 bytes each).\n\n## Usage\n\n### Simple Import (Recommended)\n\n```tsx\nimport { Search, Home, User } from 'stera-icons';\n\n\u003cSearch size={24} /\u003e\n\u003cHome /\u003e\n\u003cUser color=\"gray\" /\u003e\n```\n\n### Explicit Variant Imports\n\nNeed a specific weight or duotone style? Import it directly\n\n```tsx\nimport { SearchBold, HomeFill, UserRegularDuotone } from 'stera-icons';\n\n\u003cSearchBold size={24} /\u003e           {/* Bold weight */}\n\u003cHomeFill /\u003e                       {/* Fill weight */}\n\u003cUserRegularDuotone color=\"blue\" /\u003e {/* Regular + Duotone */}\n```\n\nEach icon has 6 variants available:\n- `SearchRegular`, `SearchBold`, `SearchFill`\n- `SearchRegularDuotone`, `SearchBoldDuotone`, `SearchFillDuotone`\n\n### Triple Aliasing (Prevent Name Collisions)\n\nAll icons support 3 naming styles to avoid conflicts with your codebase:\n\n```tsx\n// Base name (gives you Regular variant)\nimport { Search } from 'stera-icons';\n\n// Icon suffix style\nimport { SearchIcon } from 'stera-icons';\n\n// Si prefix style (recommended for consistency)\nimport { SiSearch, SiHome, SiUser } from 'stera-icons';\n```\n\nAll aliases point to the same component with zero bundle size overhead.\n\n### Dynamic Variants (Runtime Switching)\n\nNeed to switch icon weight or duotone at runtime? Use the dynamic variants entry point\n\n```tsx\nimport { Search } from 'stera-icons/dynamic-variants';\n\n\u003cSearch /\u003e                        {/* Regular */}\n\u003cSearch weight=\"bold\" /\u003e          {/* Bold */}\n\u003cSearch weight=\"fill\" duotone /\u003e  {/* Fill + Duotone */}\n```\n\n**Note:** Dynamic variants include all 6 variants per icon (~1KB each vs ~300 bytes for direct imports). Only use this when you need runtime variant switching.\n\n### Subpath Imports\n\nFor maximum tree-shaking control, import directly from icon paths\n\n```tsx\nimport { Search } from 'stera-icons/icons/Search';\nimport { SearchBold } from 'stera-icons/icons/SearchBold';\n\n\u003cSearch size={24} /\u003e\n\u003cSearchBold size={24} /\u003e\n```\n\n### Dynamic Icon Loading\n\nLoad icons dynamically at runtime when icon names come from external data sources like a CMS or API.\n\n```tsx\nimport { DynamicIcon } from 'stera-icons/dynamic';\n\n// Load icon by name from external data\nfunction IconDisplay({ iconName }) {\n  return (\n    \u003cDynamicIcon \n      name={iconName}        // e.g., \"search\", \"home\", \"user\"\n      weight=\"bold\"          // optional: regular, bold, fill\n      duotone={false}        // optional: enable duotone variant\n      size={24}\n      fallback={\u003cSpinner /\u003e} // optional: show while loading\n    /\u003e\n  );\n}\n```\n\n**When to use:** Dynamic imports are ideal when you need to render a small number of icons whose names are determined at runtime (e.g., from a database, CMS, or user input).\n\n**When NOT to use:** For displaying many icons at once (like an icon gallery), use direct imports instead - dynamic imports trigger individual network requests per icon.\n\n## Props\n\n| Prop | Type | Default | Description |\n|------|------|---------|-------------|\n| `size` | `number \\| string` | — | When set, applies `width`/`height` SVG attributes. Omit to let CSS control size freely (e.g. Tailwind `size-6`, `w-4 h-4`). |\n| `color` | `string` | `'currentColor'` | Icon color |\n| `weight` | `'regular' \\| 'bold' \\| 'fill'` | `'regular'` | Icon weight (dynamic variants only) |\n| `duotone` | `boolean` | `false` | Use duotone variant (dynamic variants only) |\n\nThe `weight` and `duotone` props are only available when importing from `stera-icons/dynamic-variants`. For regular imports, choose the specific variant you need (e.g., `SearchBold`, `HomeFillDuotone`).\n\nAll standard SVG props are also supported.\n\n## Accessibility\n\nStera Icons follows ARIA best practices:\n\n```tsx\n// Decorative icons (auto aria-hidden=\"true\")\n\u003cSearch size={24} /\u003e\n\n// Meaningful icons (provide aria-label)\n\u003cSearch aria-label=\"Search products\" size={24} /\u003e\n\n// Icons with text labels (explicit aria-hidden)\n\u003cbutton\u003e\n  \u003cSearch aria-hidden=\"true\" /\u003e\n  Search\n\u003c/button\u003e\n```\n\n**Auto aria-hidden:** Icons automatically get `aria-hidden=\"true\"` when no accessibility props are present, following WCAG guidelines for decorative images.\n\n## Styling with CSS\n\n### Sizing with CSS\n\nWhen no `size` prop is provided, icons have no `width` or `height` SVG attributes, giving CSS full control:\n\n```tsx\n// CSS controls the size — no conflicting SVG attributes\n\u003cSearch className=\"size-6\" /\u003e    // Tailwind: 24px\n\u003cSearch className=\"w-4 h-4\" /\u003e   // Tailwind: 16px\n\n// Explicit size prop sets width/height SVG attributes directly\n\u003cSearch size={32} /\u003e             // renders width=\"32\" height=\"32\"\n```\n\n### Icon Classes\n\nAll icons include automatic CSS classes for easy targeting:\n\n```tsx\n\u003cSearchBold className=\"my-icon\" /\u003e\n// Renders with classes: \"stera stera-search-bold my-icon\"\n```\n\n```css\n/* Target all Stera icons */\n.stera {\n  transition: color 0.2s;\n}\n\n/* Target specific icon */\n.stera-search-bold {\n  color: blue;\n}\n\n/* Target with your own classes */\n.my-icon:hover {\n  color: darkblue;\n}\n```\n\n## Bundle Size\n\nStera Icons is optimized for minimal bundle impact:\n\n| Import Pattern | Bundle Size | Example |\n|---------------|-------------|---------|\n| Base name import | ~300 bytes | `import { Search } from 'stera-icons'` |\n| Explicit variant | ~300 bytes | `import { SearchBold } from 'stera-icons'` |\n| Dynamic variant | ~1KB | `import { Search } from 'stera-icons/dynamic-variants'` |\n| Dynamic loading | ~2KB + lazy | `import { DynamicIcon } from 'stera-icons/dynamic'` |\n| Base utilities | ~500 bytes | `import { IconBase } from 'stera-icons/base'` |\n\nAll measurements are gzipped and minified. The default import pattern (`import { Search }`) is optimized for the smallest possible bundle size.\n\n## License\n\nMIT © [Chaz Giese](https://github.com/hauntedjpeg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhauntedjpeg%2Fstera-icons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhauntedjpeg%2Fstera-icons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhauntedjpeg%2Fstera-icons/lists"}