下载 key-broken 图标
SVG 矢量源文件,或 PNG 按 16~512 预设与 16~1024 自定义尺寸导出,任意尺寸边缘锐利。
PNG 由矢量源实时渲染,任意尺寸边缘锐利无锯齿;下载与预览均免费,无需注册。
key-broken 的预览与使用场景
切换预览颜色后,下方三底色、真实界面场景与各尺寸渲染会实时跟随。
在真实界面里长这样
各尺寸下的可读性
复制 key-broken 图标代码
内联 SVG、React、Vue 与 CSS mask 四种主流引用方式,代码基于当前源文件生成,复制即用。
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"><path stroke-linejoin="round" d="M21.0667 5C21.6586 5.95805 22 7.08604 22 8.29344C22 11.7692 19.1708 14.5869 15.6807 14.5869C15.0439 14.5869 13.5939 14.4405 12.8885 13.8551L12.0067 14.7333C11.272 15.465 11.8598 15.465 12.1537 16.0505C12.1537 16.0505 12.8885 17.075 12.1537 18.0995C11.7128 18.6849 10.4783 19.5045 9.06754 18.0995L8.77362 18.3922C8.77362 18.3922 9.65538 19.4167 8.92058 20.4412C8.4797 21.0267 7.30403 21.6121 6.27531 20.5876C6.22633 20.6364 5.952 20.9096 5.2466 21.6121C4.54119 22.3146 3.67905 21.9048 3.33616 21.6121L2.45441 20.7339C1.63143 19.9143 2.1115 19.0264 2.45441 18.6849L10.0963 11.0743C10.0963 11.0743 9.3615 9.90338 9.3615 8.29344C9.3615 4.81767 12.1907 2 15.6807 2C16.4995 2 17.282 2.15509 18 2.43738"/><path d="M17.8851 8.29353C17.8851 9.50601 16.8982 10.4889 15.6807 10.4889C14.4633 10.4889 13.4763 9.50601 13.4763 8.29353C13.4763 7.08105 14.4633 6.09814 15.6807 6.09814C16.8982 6.09814 17.8851 7.08105 17.8851 8.29353Z"/></g></svg>export function KeyBrokenIcon(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
viewBox="0 0 24 24"
fill="currentColor"
{...props}
dangerouslySetInnerHTML={{ __html: `<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"><path stroke-linejoin="round" d="M21.0667 5C21.6586 5.95805 22 7.08604 22 8.29344C22 11.7692 19.1708 14.5869 15.6807 14.5869C15.0439 14.5869 13.5939 14.4405 12.8885 13.8551L12.0067 14.7333C11.272 15.465 11.8598 15.465 12.1537 16.0505C12.1537 16.0505 12.8885 17.075 12.1537 18.0995C11.7128 18.6849 10.4783 19.5045 9.06754 18.0995L8.77362 18.3922C8.77362 18.3922 9.65538 19.4167 8.92058 20.4412C8.4797 21.0267 7.30403 21.6121 6.27531 20.5876C6.22633 20.6364 5.952 20.9096 5.2466 21.6121C4.54119 22.3146 3.67905 21.9048 3.33616 21.6121L2.45441 20.7339C1.63143 19.9143 2.1115 19.0264 2.45441 18.6849L10.0963 11.0743C10.0963 11.0743 9.3615 9.90338 9.3615 8.29344C9.3615 4.81767 12.1907 2 15.6807 2C16.4995 2 17.282 2.15509 18 2.43738"/><path d="M17.8851 8.29353C17.8851 9.50601 16.8982 10.4889 15.6807 10.4889C14.4633 10.4889 13.4763 9.50601 13.4763 8.29353C13.4763 7.08105 14.4633 6.09814 15.6807 6.09814C16.8982 6.09814 17.8851 7.08105 17.8851 8.29353Z"/></g>` }}
/>
);
}<template>
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" v-html="body"></svg>
</template>
<script setup>
const body = `<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"><path stroke-linejoin="round" d="M21.0667 5C21.6586 5.95805 22 7.08604 22 8.29344C22 11.7692 19.1708 14.5869 15.6807 14.5869C15.0439 14.5869 13.5939 14.4405 12.8885 13.8551L12.0067 14.7333C11.272 15.465 11.8598 15.465 12.1537 16.0505C12.1537 16.0505 12.8885 17.075 12.1537 18.0995C11.7128 18.6849 10.4783 19.5045 9.06754 18.0995L8.77362 18.3922C8.77362 18.3922 9.65538 19.4167 8.92058 20.4412C8.4797 21.0267 7.30403 21.6121 6.27531 20.5876C6.22633 20.6364 5.952 20.9096 5.2466 21.6121C4.54119 22.3146 3.67905 21.9048 3.33616 21.6121L2.45441 20.7339C1.63143 19.9143 2.1115 19.0264 2.45441 18.6849L10.0963 11.0743C10.0963 11.0743 9.3615 9.90338 9.3615 8.29344C9.3615 4.81767 12.1907 2 15.6807 2C16.4995 2 17.282 2.15509 18 2.43738"/><path d="M17.8851 8.29353C17.8851 9.50601 16.8982 10.4889 15.6807 10.4889C14.4633 10.4889 13.4763 9.50601 13.4763 8.29353C13.4763 7.08105 14.4633 6.09814 15.6807 6.09814C16.8982 6.09814 17.8851 7.08105 17.8851 8.29353Z"/></g>`;
</script>.key-broken {
width: 1em;
height: 1em;
background-color: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-width%3D%221.5%22%3E%3Cpath%20stroke-linejoin%3D%22round%22%20d%3D%22M21.0667%205C21.6586%205.95805%2022%207.08604%2022%208.29344C22%2011.7692%2019.1708%2014.5869%2015.6807%2014.5869C15.0439%2014.5869%2013.5939%2014.4405%2012.8885%2013.8551L12.0067%2014.7333C11.272%2015.465%2011.8598%2015.465%2012.1537%2016.0505C12.1537%2016.0505%2012.8885%2017.075%2012.1537%2018.0995C11.7128%2018.6849%2010.4783%2019.5045%209.06754%2018.0995L8.77362%2018.3922C8.77362%2018.3922%209.65538%2019.4167%208.92058%2020.4412C8.4797%2021.0267%207.30403%2021.6121%206.27531%2020.5876C6.22633%2020.6364%205.952%2020.9096%205.2466%2021.6121C4.54119%2022.3146%203.67905%2021.9048%203.33616%2021.6121L2.45441%2020.7339C1.63143%2019.9143%202.1115%2019.0264%202.45441%2018.6849L10.0963%2011.0743C10.0963%2011.0743%209.3615%209.90338%209.3615%208.29344C9.3615%204.81767%2012.1907%202%2015.6807%202C16.4995%202%2017.282%202.15509%2018%202.43738%22%2F%3E%3Cpath%20d%3D%22M17.8851%208.29353C17.8851%209.50601%2016.8982%2010.4889%2015.6807%2010.4889C14.4633%2010.4889%2013.4763%209.50601%2013.4763%208.29353C13.4763%207.08105%2014.4633%206.09814%2015.6807%206.09814C16.8982%206.09814%2017.8851%207.08105%2017.8851%208.29353Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-width%3D%221.5%22%3E%3Cpath%20stroke-linejoin%3D%22round%22%20d%3D%22M21.0667%205C21.6586%205.95805%2022%207.08604%2022%208.29344C22%2011.7692%2019.1708%2014.5869%2015.6807%2014.5869C15.0439%2014.5869%2013.5939%2014.4405%2012.8885%2013.8551L12.0067%2014.7333C11.272%2015.465%2011.8598%2015.465%2012.1537%2016.0505C12.1537%2016.0505%2012.8885%2017.075%2012.1537%2018.0995C11.7128%2018.6849%2010.4783%2019.5045%209.06754%2018.0995L8.77362%2018.3922C8.77362%2018.3922%209.65538%2019.4167%208.92058%2020.4412C8.4797%2021.0267%207.30403%2021.6121%206.27531%2020.5876C6.22633%2020.6364%205.952%2020.9096%205.2466%2021.6121C4.54119%2022.3146%203.67905%2021.9048%203.33616%2021.6121L2.45441%2020.7339C1.63143%2019.9143%202.1115%2019.0264%202.45441%2018.6849L10.0963%2011.0743C10.0963%2011.0743%209.3615%209.90338%209.3615%208.29344C9.3615%204.81767%2012.1907%202%2015.6807%202C16.4995%202%2017.282%202.15509%2018%202.43738%22%2F%3E%3Cpath%20d%3D%22M17.8851%208.29353C17.8851%209.50601%2016.8982%2010.4889%2015.6807%2010.4889C14.4633%2010.4889%2013.4763%209.50601%2013.4763%208.29353C13.4763%207.08105%2014.4633%206.09814%2015.6807%206.09814C16.8982%206.09814%2017.8851%207.08105%2017.8851%208.29353Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}给 key-broken 加一点动效
单文件 CSS 即可播放,无需任何依赖;描画动效仅对描边类图标生效。
呼吸
透明度往复渐变,适合状态提示与在线指示。
.icon-key-broken {
animation: icon-breathe 1.8s ease-in-out infinite;
}
@keyframes icon-breathe {
0%, 100% { opacity: 1; }
50% { opacity: 0.35; }
}旋转
匀速循环旋转,适合加载中场景。
.icon-key-broken {
animation: icon-spin 1.6s linear infinite;
}
@keyframes icon-spin {
to { transform: rotate(360deg); }
}描画
线条从无到有依次绘出,适合线性图标与首屏引导。
.icon-key-broken path {
stroke-dasharray: 120;
animation: icon-draw 1.2s ease forwards;
}
@keyframes icon-draw {
from { stroke-dashoffset: 120; }
to { stroke-dashoffset: 0; }
}SVG 健康报告
对源文件的客观技术指标,供工程侧评估引用方式。
文件体积
1.10 KB
1,126 字节
viewBox
0 0 24 24
矢量坐标系
图元总数
2
<path> ×2
风格
单色轮廓(描边)
描边可随字号加粗
同时含 width/height 与 viewBox:可以只保留 viewBox,让图标跟随容器自适应缩放。 文件体积 1.10 KB(1,126 字节),图元 2 个,风格为单色轮廓(描边)。
常见问题
关于 key-broken 图标的下载、商用与改色。
key-broken 图标是什么?▾
它是 Solar(solar)开源图标集中的 key-broken 图标,单色轮廓(描边),viewBox 为 0 0 24 24,文件仅 1.10 KB,矢量格式可无损缩放到任意尺寸。
如何下载 key-broken 图标?▾
点击「下载与导出」中的 SVG 源文件按钮保存矢量文件;也可以按 512 / 256 / 128 / 64 / 32 / 16px 预设导出 PNG,或在输入框填 16~1024 之间的任意尺寸。需要 iOS、Android 全套尺寸时,用素材包生成器一键打包。
key-broken 图标可以商用吗?▾
该图标采用 CC BY 4.0(CC-BY-4.0) 开源协议,通常允许在遵守协议的前提下免费使用,常见要求是保留作者版权声明。商用前建议阅读协议原文确认。
如何修改 key-broken 图标的颜色?▾
在「预览与场景」的色板中切换颜色,三底色与全部场景会实时跟随;点击任一相近图标可打开预览弹层,复制对应颜色的 SVG 源码或 PNG。也可以复制 SVG 源码后自行修改 fill 值。