Castle icon
openmoji:castle
The Castle icon (openmoji:castle) is a free SVG icon from the OpenMoji set. It is drawn on a 72 × 72 grid. OpenMoji icons are released under the CC BY-SA 4.0 license, which allows use in personal and commercial projects as long as you credit the author and share changes to the icons under the same license. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- OpenMoji
- Author
- OpenMoji
- License
- CC-BY-SA-4.0
- Size
- 72 × 72
- Category
- Travel Places
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="72" height="72" viewBox="0 0 72 72"><path fill="#9b9b9a" d="M30 27h12v14H30z"/><path fill="#d0cfce" d="M52 55H20V39h7v2h5v-2h8v2h5v-2h7v2v-2zM10 32h10v23H10zm42 0h10v23H52zM8 26h14v6H8zm21.5-4h13v6h-13zM50 26h14v6H50z"/><path fill="#ea5a47" d="m36 12l-4.5 10h9zm-21 4L9.5 26h11zm42 0l-5.5 10h11z"/><path fill="#a57939" d="M40.5 55h-9v-6a3 3 0 0 1 3-3h3a3 3 0 0 1 3 3z"/><g fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2"><path d="M31 35v-7h10v7"/><path d="M37 35h-2v-3a1 1 0 0 1 1-1h0m16 24H20V39h7v2h5v-2h8v2h5v-2h7v2v-2zM10 32h10v23H10zm42 0h10v23H52zM8 26h14v6H8zm21.5-4h13v6h-13zM50 26h14v6H50zM36 12l-4.5 10h9zm-21 4L9.5 26h11zm42 0l-5.5 10h11z"/><path d="M40.5 55h-9v-6a3 3 0 0 1 3-3h3a3 3 0 0 1 3 3zM36 46v9M16 40h-2v-3a1 1 0 0 1 1-1h0m43 4h-2v-3a1 1 0 0 1 1-1h0"/></g></svg>How to use the Castle icon
React
import { Icon } from "@iconify/react";
<Icon icon="openmoji:castle" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="openmoji:castle" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="openmoji:castle" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[openmoji--castle]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/openmoji -->
<div class="i-openmoji:castle"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="openmoji:castle"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/openmoji/castle.svg" alt="Castle icon" width="24" height="24">Castle icon in other icon sets
Castle icon FAQ
Is the Castle icon free for commercial use?
Yes. OpenMoji icons are released under the CC BY-SA 4.0 license, which allows use in personal and commercial projects as long as you credit the author and share changes to the icons under the same license.
How do I use the Castle icon in React?
Install @iconify/react and render <Icon icon="openmoji:castle" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Castle icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/openmoji/castle.svg" alt="Castle icon">, or paste the SVG code inline to style it with CSS.