817 sao GitHub và vẫn tăng — jxnblk/geomicons-open là dự án HTML mà TopGit đang theo dõi trên nền tảng. Open Source Icons for the Web
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.
Smaller than similar webfonts and making fewer network requests than other icon solutions,
Geomicons Open is built from the ground up for performance.
Designed on a grid for pixel-precision at standard sizes,
each icon is hand-coded to avoid the extra bloat from traditional vector drawing applications.
Getting Started
Download the source or install via npm or Bower:
npm install geomicons-open
bower install geomicons-open
Client-side Javascript Usage
Include the client-side JavaScript file.
<script src="geomicons.min.js"></script>
Add the data-icon attribute with an icon name to an element.
Pass a nodelist to the geomicons.inject() method to replace elements with SVG icons.
<script>
var icons = document.querySelectorAll('.js-geomicon');
geomicons.inject(icons);
</script>
Node Usage
var geomicons = require('geomicons-open');
var pathData = geomicons.paths.heart; // Returns the path's d attribute value
var svgString = geomicons.toString('heart'); // Returns an SVG string
SVG Defs Usage
For a server-side solution, you can use native SVG defs instead of the javascript method above.
This method makes zero extra network requests beyond the HTML file that includes it.
Instead of linking to the geomicons.min.js file, copy and paste the contents of the dist/geomicons-defs.svg file in your HTML. This code will not show up in your page.
You can also create partials, helper methods, or components to streamline the development process.
Copy/Paste
If you're only using one or two icons in your markup, it's probably better to paste the SVG code inline.
Copy the icon from the website
or open the icon SVG file and copy and paste the SVG code.
Be sure to adjust the id attribute to not conflict with other elements.
Vector Drawing Applications
The SVG files in the dist/icons folder should open in applications such as Adobe Illustrator and Sketch.
If you encounter any problems, please create an issue.
React
A React component for Geomicons Open is available on NPM.
npm install react-geomicons
See react-geomicons for more details.
Styling inline SVG with CSS
Inline SVGs can be styled with CSS, just like any other HTML element.
Geomicons Open icons have the fill attribute set to currentcolor to inherit the foreground color.
Set the width, height, and other properties with additional CSS.
Each icon is designed on a 32 x 32px grid. This means icons will look best at multiples of 16. I recommend sizing icons based on your type scale, or using one of the following sizes: 16, 24, 32, 48, or 64px.
1em
Leaving the default browser font size set at 16px,
you can add styles that set width and height in ems and use multiples to keep the icons pixel perfect.
.geomicon {
width: 1em;
height: 1em;
}
Requesting Additional Icons
This set is intended to cover the most common use cases,
and some things are not well suited to be represented as an icon.
I intend to add more, but if you have any requests,
please Create an Issue.
Contributing
Geomicons Open is a curated set of icons.
Guidelines for contributing are coming soon.
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/jxnblk/geomicons-open là nguồn chính thức.
jxnblk/geomicons-open có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho jxnblk/geomicons-open. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
jxnblk/geomicons-open có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho jxnblk/geomicons-open. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
jxnblk/geomicons-open có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho jxnblk/geomicons-open. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
jxnblk/geomicons-open còn đang phát triển không?
Commit gần nhất trên jxnblk/geomicons-open là 8.7 năm trước (theo timestamp GitHub). Repo có 42 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
geomicons-open có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về geomicons-open.