castle-fill SVG 图标
keyline-iconscastle-fill
来自 Keyline Icons 开源图标集,矢量 SVG 可无损缩放到任意尺寸,支持在线改色、复制 React/Vue/HTML 代码。
- 图标 ID
- keyline-icons:castle-fill
- 中文名
- —
- 所属集合
- Keyline Icons
- 集合规模
- 13,232 枚
- 基础网格
- 24px
- 色彩
- 单色(可改色)
- 开源协议
- MIT
- 作者
- Keyline Icons
keyline-iconscastle-fill
来自 Keyline Icons 开源图标集,矢量 SVG 可无损缩放到任意尺寸,支持在线改色、复制 React/Vue/HTML 代码。
SVG 矢量源文件,或 PNG 按 16~512 预设与 16~1024 自定义尺寸导出,任意尺寸边缘锐利。
PNG 由矢量源实时渲染,任意尺寸边缘锐利无锯齿;下载与预览均免费,无需注册。
切换预览颜色后,下方三底色、真实界面场景与各尺寸渲染会实时跟随。
内联 SVG、React、Vue 与 CSS mask 四种主流引用方式,代码基于当前源文件生成,复制即用。
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M8 22L4 22C2.3431 22 1 20.6569 1 19L1 8C1 7.4477 1.4477 7 2 7C2.5523 7 3 7.4477 3 8L3 9L5 9L5 3C5 2.4477 5.4477 2 6 2C6.5523 2 7 2.4477 7 3L7 4L11 4L11 3C11 2.4477 11.4477 2 12 2C12.5523 2 13 2.4477 13 3L13 4L17 4L17 3C17 2.4477 17.4477 2 18 2C18.5523 2 19 2.4477 19 3L19 9L21 9L21 8C21 7.4477 21.4477 7 22 7C22.5523 7 23 7.4477 23 8L23 19C23 20.6569 21.6569 22 20 22L16 22L16 16.5001C16 16.0544 15.8495 15.6516 15.665 15.3246C15.4737 14.9951 15.2374 14.6939 14.963 14.4295C14.6919 14.1649 14.395 13.928 14.0767 13.7225C13.7656 13.5191 13.4335 13.3497 13.0862 13.2173C12.7532 13.0929 12.3781 13.0001 12 13.0001C11.622 13.0001 11.2469 13.0929 10.9139 13.2173C10.5666 13.3497 10.2345 13.5191 9.9234 13.7225C9.6051 13.928 9.3082 14.1649 9.0371 14.4295C8.7627 14.6939 8.5264 14.9951 8.335 15.3246C8.1505 15.6516 8 16.0544 8 16.5001L8 22Z"/></svg>export function CastleFillIcon(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: `<path fill="currentColor" d="M8 22L4 22C2.3431 22 1 20.6569 1 19L1 8C1 7.4477 1.4477 7 2 7C2.5523 7 3 7.4477 3 8L3 9L5 9L5 3C5 2.4477 5.4477 2 6 2C6.5523 2 7 2.4477 7 3L7 4L11 4L11 3C11 2.4477 11.4477 2 12 2C12.5523 2 13 2.4477 13 3L13 4L17 4L17 3C17 2.4477 17.4477 2 18 2C18.5523 2 19 2.4477 19 3L19 9L21 9L21 8C21 7.4477 21.4477 7 22 7C22.5523 7 23 7.4477 23 8L23 19C23 20.6569 21.6569 22 20 22L16 22L16 16.5001C16 16.0544 15.8495 15.6516 15.665 15.3246C15.4737 14.9951 15.2374 14.6939 14.963 14.4295C14.6919 14.1649 14.395 13.928 14.0767 13.7225C13.7656 13.5191 13.4335 13.3497 13.0862 13.2173C12.7532 13.0929 12.3781 13.0001 12 13.0001C11.622 13.0001 11.2469 13.0929 10.9139 13.2173C10.5666 13.3497 10.2345 13.5191 9.9234 13.7225C9.6051 13.928 9.3082 14.1649 9.0371 14.4295C8.7627 14.6939 8.5264 14.9951 8.335 15.3246C8.1505 15.6516 8 16.0544 8 16.5001L8 22Z"/>` }}
/>
);
}<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 = `<path fill="currentColor" d="M8 22L4 22C2.3431 22 1 20.6569 1 19L1 8C1 7.4477 1.4477 7 2 7C2.5523 7 3 7.4477 3 8L3 9L5 9L5 3C5 2.4477 5.4477 2 6 2C6.5523 2 7 2.4477 7 3L7 4L11 4L11 3C11 2.4477 11.4477 2 12 2C12.5523 2 13 2.4477 13 3L13 4L17 4L17 3C17 2.4477 17.4477 2 18 2C18.5523 2 19 2.4477 19 3L19 9L21 9L21 8C21 7.4477 21.4477 7 22 7C22.5523 7 23 7.4477 23 8L23 19C23 20.6569 21.6569 22 20 22L16 22L16 16.5001C16 16.0544 15.8495 15.6516 15.665 15.3246C15.4737 14.9951 15.2374 14.6939 14.963 14.4295C14.6919 14.1649 14.395 13.928 14.0767 13.7225C13.7656 13.5191 13.4335 13.3497 13.0862 13.2173C12.7532 13.0929 12.3781 13.0001 12 13.0001C11.622 13.0001 11.2469 13.0929 10.9139 13.2173C10.5666 13.3497 10.2345 13.5191 9.9234 13.7225C9.6051 13.928 9.3082 14.1649 9.0371 14.4295C8.7627 14.6939 8.5264 14.9951 8.335 15.3246C8.1505 15.6516 8 16.0544 8 16.5001L8 22Z"/>`;
</script>.castle-fill {
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%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M8%2022L4%2022C2.3431%2022%201%2020.6569%201%2019L1%208C1%207.4477%201.4477%207%202%207C2.5523%207%203%207.4477%203%208L3%209L5%209L5%203C5%202.4477%205.4477%202%206%202C6.5523%202%207%202.4477%207%203L7%204L11%204L11%203C11%202.4477%2011.4477%202%2012%202C12.5523%202%2013%202.4477%2013%203L13%204L17%204L17%203C17%202.4477%2017.4477%202%2018%202C18.5523%202%2019%202.4477%2019%203L19%209L21%209L21%208C21%207.4477%2021.4477%207%2022%207C22.5523%207%2023%207.4477%2023%208L23%2019C23%2020.6569%2021.6569%2022%2020%2022L16%2022L16%2016.5001C16%2016.0544%2015.8495%2015.6516%2015.665%2015.3246C15.4737%2014.9951%2015.2374%2014.6939%2014.963%2014.4295C14.6919%2014.1649%2014.395%2013.928%2014.0767%2013.7225C13.7656%2013.5191%2013.4335%2013.3497%2013.0862%2013.2173C12.7532%2013.0929%2012.3781%2013.0001%2012%2013.0001C11.622%2013.0001%2011.2469%2013.0929%2010.9139%2013.2173C10.5666%2013.3497%2010.2345%2013.5191%209.9234%2013.7225C9.6051%2013.928%209.3082%2014.1649%209.0371%2014.4295C8.7627%2014.6939%208.5264%2014.9951%208.335%2015.3246C8.1505%2015.6516%208%2016.0544%208%2016.5001L8%2022Z%22%2F%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%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M8%2022L4%2022C2.3431%2022%201%2020.6569%201%2019L1%208C1%207.4477%201.4477%207%202%207C2.5523%207%203%207.4477%203%208L3%209L5%209L5%203C5%202.4477%205.4477%202%206%202C6.5523%202%207%202.4477%207%203L7%204L11%204L11%203C11%202.4477%2011.4477%202%2012%202C12.5523%202%2013%202.4477%2013%203L13%204L17%204L17%203C17%202.4477%2017.4477%202%2018%202C18.5523%202%2019%202.4477%2019%203L19%209L21%209L21%208C21%207.4477%2021.4477%207%2022%207C22.5523%207%2023%207.4477%2023%208L23%2019C23%2020.6569%2021.6569%2022%2020%2022L16%2022L16%2016.5001C16%2016.0544%2015.8495%2015.6516%2015.665%2015.3246C15.4737%2014.9951%2015.2374%2014.6939%2014.963%2014.4295C14.6919%2014.1649%2014.395%2013.928%2014.0767%2013.7225C13.7656%2013.5191%2013.4335%2013.3497%2013.0862%2013.2173C12.7532%2013.0929%2012.3781%2013.0001%2012%2013.0001C11.622%2013.0001%2011.2469%2013.0929%2010.9139%2013.2173C10.5666%2013.3497%2010.2345%2013.5191%209.9234%2013.7225C9.6051%2013.928%209.3082%2014.1649%209.0371%2014.4295C8.7627%2014.6939%208.5264%2014.9951%208.335%2015.3246C8.1505%2015.6516%208%2016.0544%208%2016.5001L8%2022Z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}单文件 CSS 即可播放,无需任何依赖;描画动效仅对描边类图标生效。
透明度往复渐变,适合状态提示与在线指示。
.icon-castle-fill {
animation: icon-breathe 1.8s ease-in-out infinite;
}
@keyframes icon-breathe {
0%, 100% { opacity: 1; }
50% { opacity: 0.35; }
}匀速循环旋转,适合加载中场景。
.icon-castle-fill {
animation: icon-spin 1.6s linear infinite;
}
@keyframes icon-spin {
to { transform: rotate(360deg); }
}对源文件的客观技术指标,供工程侧评估引用方式。
文件体积
0.93 KB
956 字节
viewBox
0 0 24 24
矢量坐标系
图元总数
1
<path> ×1
风格
单色(跟随 currentColor)
填充跟随容器颜色
同时含 width/height 与 viewBox:可以只保留 viewBox,让图标跟随容器自适应缩放。 文件体积 0.93 KB(956 字节),图元 1 个,风格为单色(跟随 currentColor)。
关于 castle-fill 图标的下载、商用与改色。
它是 Keyline Icons(keyline-icons)开源图标集中的 castle-fill 图标,单色(跟随 currentColor),viewBox 为 0 0 24 24,文件仅 0.93 KB,矢量格式可无损缩放到任意尺寸。
点击「下载与导出」中的 SVG 源文件按钮保存矢量文件;也可以按 512 / 256 / 128 / 64 / 32 / 16px 预设导出 PNG,或在输入框填 16~1024 之间的任意尺寸。需要 iOS、Android 全套尺寸时,用素材包生成器一键打包。
该图标采用 MIT(MIT) 开源协议,通常允许在遵守协议的前提下免费使用,常见要求是保留作者版权声明。商用前建议阅读协议原文确认。
在「预览与场景」的色板中切换颜色,三底色与全部场景会实时跟随;点击任一相近图标可打开预览弹层,复制对应颜色的 SVG 源码或 PNG。也可以复制 SVG 源码后自行修改 fill 值。