twbs/icons là dự án Astro với 8.2k sao trong nhóm UI / UX. Official open source SVG icon library for Bootstrap.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Copy an SVG into your project and reference it like any other image. Use useful alt text when the image conveys meaning and an empty alt when it is decorative.
The package includes bootstrap-icons.svg. Copy it to your own origin and use an icon filename as the fragment identifier. Cross-origin external sprites are restricted by some browsers, so serve the sprite with your application.
See the complete sprite guide for local and external examples.
Icon font
Include the icon font stylesheet, then combine the base bi class with an icon class based on its filename. Font icons inherit the current text size and color.
<i class="bi bi-alarm" aria-hidden="true"></i>
When your Sass compiler cannot resolve the package's relative font URLs, set the font directory before importing the source:
Hide purely decorative icons from assistive technology with aria-hidden="true". Meaningful standalone images need an appropriate text alternative. For icon-only controls, put the accessible name on the control—not on its decorative child icon.
Prefer visible text when possible. A visible label or a visually-hidden label stays available to screen readers and supports users who may not recognize an icon.
Use in CSS
SVG data URLs work in CSS, but URL-sensitive characters must be escaped—for example, # becomes %23. Keep the viewBox when resizing with background-size, and include the SVG namespace.
The official Bootstrap Icons community file makes the icon set available in Figma for design work.
Releases and resources
Browse and search every icon
Detailed installation and usage guide
SVG sprite guide
Icon font guide
Release notes and downloads
Package on npm
Development
Clone the repo, install the root and Astro dependencies, and start the docs
server locally.
git clone https://github.com/twbs/icons/
cd icons
npm ci
npm ci --prefix astro
npm start
Then open http://localhost:4321 in your browser.
npm scripts
Here are some key scripts you'll use during development. Be sure to look to our package.json or npm run output for a complete list of scripts.
Script
Description
start
Alias for running docs-serve
docs-serve
Starts the local Astro development server
docs-build
Builds the production documentation site
docs-test
Checks, builds, and validates the documentation site
pages
Generates permalink pages for each icon with template Markdown
icons
Processes and optimizes SVGs in icons directory, generates fonts and sprite
Adding SVGs
Icons are typically only added by @mdo, but exceptions can be made. New glyphs are designed in Figma first on a 16x16px grid, then exported as flattened SVGs with fill (no stroke). Once a new SVG icon has been added to the icons directory, we use an npm script to:
Optimize our SVGs with SVGO.
Modify the SVGs source code, removing all attributes before setting new attributes and values in our preferred order.
Use npm run icons to run the script, run npm run pages to build permalink pages, complete those pages, and, finally, commit the results in a new branch for updating.
Warning: Please exclude any auto-generated files, like font/** and bootstrap-icons.svg from your branch because they cause conflicts, and we generally update the dist files before a release.
Publishing
Documentation is published automatically when a new Git tag is published. See our GitHub Actions and package.json for more information.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/twbs/icons là nguồn chính thức.
twbs/icons có những chủ đề gì?
GitHub topics của twbs/icons: "bootstrap", "font", "icons", "sprite", "svg", "woff", "woff2". TopGit xếp repo vào nhóm UI / UX.
twbs/icons có phải mã nguồn mở không?
Có — twbs/icons phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/twbs/icons.
twbs/icons có trang demo không?
Dự án có trang chủ ở https://icons.getbootstrap.com. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
twbs/icons còn đang phát triển không?
Commit gần nhất trên twbs/icons là 3 tháng trước (theo timestamp GitHub). Repo có 1.1k fork — một chỉ báo về mức độ quan tâm của cộng đồng.
twbs/icons dùng license gì?
twbs/icons phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về icons?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về icons.