[!重要]
我们要求所有用户在使用Simple Icons的图标之前阅读我们的法律免责声明。
可以直接从我们的网站下载SVG格式的图标 - 只需点击想要的图标的下载按钮,下载就会自动开始。
图标可以通过CDN服务如jsDelivr或Unpkg提供。只需使用simple-icons npm包,并在URL中指定版本,如下所示:
<img height="32" width="32" src="https://cdn.jsdelivr.net/npm/simple-icons@v13/icons/[图标别名].svg" /> <img height="32" width="32" src="https://unpkg.com/simple-icons@v13/icons/[图标别名].svg" />
其中[图标别名]替换为您想使用的图标的[别名],例如:
<img height="32" width="32" src="https://yellow-cdn.veclightyear.com/835a84d5/6871e262-c66d-4976-b6c4-3805ecd6616d.svg" /> <img height="32" width="32" src="https://yellow-cdn.veclightyear.com/835a84d5/a16ef106-930a-4cd9-8968-0b41255c2783.svg" />
这些示例使用最新的主要版本。这意味着您在下一个主要版本发布后将不会收到任何更新。您可以使用@latest来无限期接收更新。但是,如果图标被移除,这将导致404错误。
我们还提供了一个允许您使用颜色的CDN服务。
<img height="32" width="32" src="https://cdn.simpleicons.org/[图标别名]" /> <img height="32" width="32" src="https://cdn.simpleicons.org/[图标别名]/[颜色]" /> <img height="32" width="32" src="https://cdn.simpleicons.org/[图标别名]/[颜色]/[深色模式颜色]" />
其中[颜色]是可选的,可以替换为您想使用的图标的十六进制颜色或CSS关键字。颜色默认为simpleicons.org网站上显示的图标的HEX颜色。[深色模式颜色]用于深色模式。当指定值时,将使用CSS prefers-color-scheme。例如:
<img height="32" width="32" src="https://cdn.simpleicons.org/simpleicons" /> <img height="32" width="32" src="https://cdn.simpleicons.org/simpleicons/gray" /> <img height="32" width="32" src="https://cdn.simpleicons.org/simpleicons/hotpink" /> <img height="32" width="32" src="https://cdn.simpleicons.org/simpleicons/0cf" /> <img height="32" width="32" src="https://cdn.simpleicons.org/simpleicons/0cf9" /> <img height="32" width="32" src="https://cdn.simpleicons.org/simpleicons/00ccff" /> <img height="32" width="32" src="https://cdn.simpleicons.org/simpleicons/00ccff99" /> <img height="32" width="32" src="https://cdn.simpleicons.org/simpleicons/orange/pink" /> <img height="32" width="32" src="https://cdn.simpleicons.org/simpleicons/_/eee" /> <img height="32" width="32" src="https://cdn.simpleicons.org/simpleicons/eee/_" />
您可以使用viewbox=auto参数来获取自动大小的视图框。如果您希望所有图标以一致的大小渲染,这很有用:
<img height="20" src="https://cdn.simpleicons.org/github?viewbox=auto" /> <img height="20" src="https://cdn.simpleicons.org/simpleicons?viewbox=auto" /> <img height="20" src="https://cdn.simpleicons.org/awesomelists?viewbox=auto" />
图标也可以通过我们的npm包获取。安装只需运行:
npm install simple-icons
所有图标都从单个文件导入,其中[图标别名]替换为大写的[别名]。我们强烈建议使用可以进行树摇(tree shake)的打包工具,如webpack,以移除未使用的图标代码:
// 通过别名导入特定图标: // import { si[图标别名] } from 'simple-icons' // 例如: // 使用import/esm以允许树摇 import { siSimpleicons } from 'simple-icons'; // 或使用require/cjs const { siSimpleicons } = require('simple-icons');
它将返回一个图标对象:
console.log(siSimpleicons); /* { title: 'Simple Icons', slug: 'simpleicons', hex: '111111', source: 'https://simpleicons.org/', svg: '<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">...</svg>', path: 'M12 12v-1.5c-2.484 ...', guidelines: 'https://simpleicons.org/styleguide', license: { type: '...', url: 'https://example.com/' } } 注意:如果我们还没有该图标的指南,`guidelines`条目将为`undefined`。 注意:如果我们还没有该图标的许可数据,`license`条目将为`undefined`。 */
如果需要遍历所有图标,请使用:
import * as icons from 'simple-icons';
类型定义与包一起捆绑。
import type { SimpleIcon } from 'simple-icons';
图标也可以通过我们的Packagist包获取。安装只需运行:
composer require simple-icons/simple-icons
然后可以按如下方式使用该包,其中[图标别名]替换为[别名]:
<?php // 通过别名导入特定图标: echo file_get_contents('path/to/package/icons/[图标别名].svg'); // 例如: echo file_get_contents('path/to/package/icons/simpleicons.svg'); // <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">...</svg> ?>
以下是已 知的第三方工具扩展。
| 扩展 | 作者 |
|---|---|
| Blender 插件 <img src="https://cdn.simpleicons.org/blender/000/fff" alt="Blender" align=left width=24 height=24> | @mondeja |
| Boxy SVG 库 <img src="https://cdn.simpleicons.org/boxysvg/000/fff" alt="Boxy SVG" align=left width=24 height=24> | @Jarek |
| Drawio 库 <img src="https://cdn.simpleicons.org/diagramsdotnet/000/fff" alt="Drawio" align=left width=24 height=24> | @mondeja |
| Figma 插件 <img src="https://cdn.simpleicons.org/figma/000/fff" alt="Figma" align=left width=24 height=24> | @LitoMore |
| Miro 应用 <img src="https://cdn.simpleicons.org/miro/000/fff" alt="Miro" align=left width=24 height=24> | @LitoMore |
| Raycast 扩展 <img src="https://cdn.simpleicons.org/raycast/000/fff" alt="Raycast" align=left width=24 height=24> | @LitoMore |
| Stream Deck 图标包 <img src="https://cdn.simpleicons.org/elgato/000/fff" alt="Stream Deck" align=left width=24 height=24> | @mackenly |
| Webflow 应用 <img src="https://cdn.simpleicons.org/webflow/000/fff" alt="Webflow" align=left width=24 height=24> | @diegoliv |
维护一个扩展?提交PR将其添加到上面的列表中。
以下是已知的可用于您自己项目的第三方库。我们只保留至少与我们上一个主要版本保持更新的项目。
| 库 | 作者 | 许可证 | Simple Icons 版本 |
|---|---|---|---|
| Astro 包 <img src="https://cdn.simpleicons.org/astro/000/fff" alt="Astro" align=left width=24 height=24> | @Aviortheking | ||
| Blazor Nuget 包 <img src="https://cdn.simpleicons.org/blazor/000/fff" alt="Blazor" align=left width=24 height=24> | @TimeWarpEngineering | ||
| Flutter 包 <img src="https://cdn.simpleicons.org/flutter/000/fff" alt="Flutter" align=left width=24 height=24> | @jlnrrg | ||
| Framer 组件 <img src="https://cdn.simpleicons.org/framer/000/fff" alt="Framer" align=left width=24 height=24> | @LitoMore | ||
| Hugo 模块 <img src="https://cdn.simpleicons.org/hugo/000/fff" alt="Hugo" align=left width=24 height=24> | @foo-dogsquared | ||
| Kirby 插件 <img src="https://cdn.simpleicons.org/kirby/000/fff" alt="Kirby" align=left width=24 height=24> | @runxel | ||
| LaTeX 包 <img src="https://cdn.simpleicons.org/latex/000/fff" alt="LaTeX" align=left width=24 height=24> | @ineshbose | ||
| Laravel 包 <img src="https://cdn.simpleicons.org/laravel/000/fff" alt="Laravel" align=left width=24 height=24> | @adrian-ub | ||
| React 包 <img src="https://cdn.simpleicons.org/react/000/fff" alt="React" align=left width=24 height=24> | @wootsbot | ||
| Ruby gem <img src="https://cdn.simpleicons.org/rubygems/000/fff" alt="Ruby" align=left width=24 height=24> | @thepew | ||
| Svelte 包 <img src="https://cdn.simpleicons.org/svelte/000/fff" alt="Svelte" align=left width=24 height=24> | @wootsbot | ||
| Vue 3 包 <img src="https://cdn.simpleicons.org/vuedotjs/000/fff" alt="Vue" align=left width=24 height=24> | @wyatt-herkamp |
维护一个库?提交 PR 将其添加到上面的列表中。
关于如何贡献的信息可以在 CONTRIBUTING.md 文件中找到。


职场AI,就用扣子
AI办公助手,复杂任务高效处理。办公效率低?扣子空间AI助手支持播客生成、PPT制作、网页开发及报告写作,覆盖科研、商业、舆情等领域的专家Agent 7x24小时响应,生活工作无缝切换,提升50%效率!


多风格AI绘画神器
堆友平台由阿里巴巴设计团队创建,作为一款AI驱动的设计工具,专为设计师提供一站式增长服务。功能覆盖海量3D素材、AI绘画、实时渲染以及专业抠图,显著提升设计品质和效率。平台不仅提供工具,还是一个促进创意交流和个人发展的空间,界面友好,适合所有级别的设计师和创意工作者。


零代码AI应用开发平台
零代码AI应用开发平台,用户只需一句话简单描述需求,AI能自动生成小程序、APP或H5网页应用,无需编写代码。


免费创建高清无水印Sora视频
Vora是一个免费创建高清无水印Sora视频的AI工具


最适合小白的AI自动化工作流平台
无需编码,轻松生成可复用、可变现的AI自动化工作流

大模型驱动的Excel数据处理工具
基于大模型交互的表格处理系统,允许用户通过对话方式完成数据整理和可视化分析。系统采用机器学习算法解析用户指令,自动执行排序、公式计算和数据透视等操作,支持多种文件格式导入导出。数据处理响应速度保持在0.8秒以内,支持超过100万行数据的即时分析。


AI辅助编程,代码自动修复
Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升 开发效率的理想工具。


AI论文写作指导平台
AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检 索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。


AI一键生成PPT,就用博思AIPPT!
博思AIPPT,新一代的AI生成PPT平台,支持智能生成PPT、AI美化PPT、文本&链接生成PPT、导入Word/PDF/Markdown文档生成PPT等,内置海量精美PPT模板,涵盖商务、教育、科技等不同风格,同时针对每个页面提供多种版式,一键自适应切换,完美适配各种办公场景。


AI赋能电商视觉革命,一站式智能商拍平台
潮际好麦深耕服装行业,是国内AI试衣效果最好的软件。使用先进AIGC能力为电商卖家批量提供优质的、低成本的商拍图。合作品牌有Shein、Lazada、安踏、百丽等65个国内外头部品牌,以及国内10万+淘宝、天猫、京东等主流平台的品牌商家,为卖家节省将近85%的出图成本,提升约3倍出图效率,让品牌能够快速上架。
最新AI工具、AI资讯
独家AI资源、AI项目落地

微信扫一扫关注公众号