Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Icons
  3. Boxicons

Boxicons

MITTypeScript

A JavaScript library for Boxicons with full tree-shaking support, enabling efficient web icon usage.

Visit WebsiteGitHubGitHub
3.2k stars320 forks0 contributors

What is Boxicons?

@boxicons/js is a JavaScript library that provides the Boxicons icon set as tree-shakable SVG icons for web projects. It solves the problem of bloated icon bundles by allowing developers to import only the icons they need, while offering automatic DOM replacement and extensive customization options.

Target Audience

Frontend developers building web applications who need a performant, customizable icon solution with minimal bundle impact.

Value Proposition

Developers choose @boxicons/js for its excellent tree-shaking support that eliminates unused icon code, its flexible API that works with modern web patterns like Shadow DOM, and its rich customization options through simple data attributes.

Overview

High Quality web friendly icons

Use Cases

Best For

  • Web applications requiring minimal bundle sizes for icon sets
  • Projects using component frameworks that benefit from tree-shaking
  • Applications with Shadow DOM or custom element architectures
  • Developers who need programmatic control over SVG icon generation
  • Teams wanting consistent, customizable icons across their UI
  • Performance-conscious projects where every kilobyte matters

Not Ideal For

  • Projects requiring server-side rendering without client-side JavaScript execution
  • Teams preferring CSS-based icon fonts for simpler, no-JS fallbacks
  • Applications with strict accessibility needs where default aria-hidden='true' is problematic
  • Developers using frameworks with integrated icon components (e.g., React-specific libraries) for tighter ecosystem fit

Pros & Cons

Pros

Bundle Size Efficiency

Fully tree-shakable architecture ensures only imported icons are bundled, as demonstrated by the explicit warning to avoid importing all icons to prevent bloating.

Modern Web Compatibility

Seamlessly integrates with Shadow DOM and template tags via the root and inTemplates options, supporting component-based architectures without hacks.

Declarative Customization

Extensive data attributes like data-bx-size, data-bx-fill, and data-bx-rotate allow styling directly in HTML without additional CSS, with presets for common use cases.

Programmatic Flexibility

Provides createElement and createSvgString functions for dynamic SVG generation, enabling fine-grained control beyond auto-replacement.

Cons

JavaScript Dependency

Icons fail to render without JavaScript due to DOM auto-replacement, making it unsuitable for static sites or environments where JS is disabled.

Boilerplate for Basic Use

Requires importing icons and calling getIcons even for simple static icons, adding complexity compared to drop-in SVG or font icon solutions.

Limited Icon Set Breadth

Boxicons offers fewer total icons than alternatives like Font Awesome, which might not cover niche or specialized icon needs without manual additions.

Accessibility Overhead

Default aria-hidden='true' forces manual aria-label additions for screen readers, increasing development effort and risk of oversight.

Frequently Asked Questions

Quick Stats

Stars3,181
Forks320
Contributors0
Open Issues785
Last commit3 months ago
CreatedSince 2018

Tags

#icon-library#tree-shaking#icons#svg#frontend#typescript#icon-font#ui-components#icon-pack#javascript#shadow-dom#web-development#svg-icons#performance

Built With

J
JavaScript
T
TypeScript

Links & Resources

Website

Included in

Icons934
Auto-fetched 23 hours ago

Related Projects

Font AwesomeFont Awesome

The iconic SVG, font, and CSS toolkit

Stars76,635
Forks12,205
Last commit3 months ago
Material design iconsMaterial design icons

Material Design icons by Google (Material Symbols)

Stars53,405
Forks9,729
Last commit3 days ago
FeatherFeather

Simply beautiful open-source icons

Stars25,931
Forks1,285
Last commit1 year ago
HeroiconsHeroicons

A set of free MIT-licensed high-quality SVG icons for UI development.

Stars23,582
Forks1,316
Last commit27 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub