Hardhat
The Hardhat icon represents the Hardhat development environment, a popular tool for building, testing, and deploying smart contracts on the Ethereum blockchain.
Exports at 24 × 24 px
Code
Hardhat in your framework
In any framework. Customize it above, and the code follows.
export const HardhatIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 128 128" {...props}>
<defs><linearGradient id="SVG6AfHZckL" x1="10.561" x2="10.561" y1="30.514" y2="6.186" gradientTransform="translate(-2.326 11.158)scale(2.56617)" gradientUnits="userSpaceOnUse"><stop stopColor="#edcf00"/><stop offset=".33" stopColor="#f0d500"/><stop offset=".77" stopColor="#f9e500"/><stop offset="1" stopColor="#fff100"/></linearGradient><linearGradient id="SVG1SV4JcVz" x1="46.089" x2="46.089" y1="30.692" y2="13.092" gradientTransform="translate(-2.326 11.158)scale(2.56617)" gradientUnits="userSpaceOnUse"><stop stopColor="#edcf00"/><stop offset=".59" stopColor="#f7e100"/><stop offset="1" stopColor="#fff100"/></linearGradient><radialGradient id="SVGjeQEkdxq" cx="0" cy="0" r="1" gradientTransform="matrix(47.57621 0 0 47.25236 7.172 132.114)" gradientUnits="userSpaceOnUse"><stop stopColor="#fff100"/><stop offset=".23" stopColor="#f9e500"/><stop offset=".67" stopColor="#f0d500"/><stop offset="1" stopColor="#edcf00"/></radialGradient></defs><path fill="#fff100" d="M127.99 98.893V92.68c0-1.155-1.943-2.256-5.43-3.249l.084-7.732a57.7 57.7 0 0 0-10.588-33.296A58.57 58.57 0 0 0 84.121 27.13l-.25-1.55a4.4 4.4 0 0 0-1.046-2.238a4.5 4.5 0 0 0-2.092-1.337a59.4 59.4 0 0 0-33.167 0c-.814.239-1.54.7-2.1 1.335a4.4 4.4 0 0 0-1.051 2.237l-.24 1.445a58.6 58.6 0 0 0-28.13 21.256A57.73 57.73 0 0 0 5.374 81.697v7.765c-3.439.99-5.356 2.079-5.356 3.226V98.9a1.5 1.5 0 0 0 .224 1.047a15 15 0 0 1 5.766-2.604a113 113 0 0 1 16.174-2.684a10.9 10.9 0 0 1 8.487 2.712a22.97 22.97 0 0 0 15.42 5.933h35.834a22.95 22.95 0 0 0 15.417-5.938a10.9 10.9 0 0 1 8.489-2.743A114 114 0 0 1 122 97.297a13.5 13.5 0 0 1 5.466 2.373c.09.09.2.17.277.254a1.54 1.54 0 0 0 .246-1.031z"/><path fill="url(#SVG6AfHZckL)" d="M30.752 85.818a136 136 0 0 1-.077-4.293c.018-21.597 5.112-40.966 13.503-54.493a58.6 58.6 0 0 0-28.13 21.253A57.73 57.73 0 0 0 5.373 81.697v7.765a143.5 143.5 0 0 1 25.38-3.644Z"/><path fill="url(#SVG1SV4JcVz)" d="M122.639 81.697a57.55 57.55 0 0 0-13.383-36.943a119.5 119.5 0 0 1 5.548 36.76c0 2.105-.056 4.183-.153 6.25a73 73 0 0 1 7.888 1.662l.097-7.73z"/><path fill="url(#SVGjeQEkdxq)" d="M122 97.32a113.5 113.5 0 0 0-16.175-2.685a10.9 10.9 0 0 0-8.488 2.726a22.95 22.95 0 0 1-15.42 5.935h-35.82a22.96 22.96 0 0 1-15.411-5.933a10.9 10.9 0 0 0-8.49-2.748a114 114 0 0 0-16.174 2.682A15.2 15.2 0 0 0 .26 99.9c2.72 4.127 30.234 8.456 63.758 8.456c33.527 0 61.029-4.345 63.754-8.453c-.095-.082-.2-.162-.28-.252A14 14 0 0 0 122 97.32"/><path fill="#0a0a0a" d="M64 37.882L50.28 61.034L64 69.477V37.88Z"/><path fill="#4b4d4d" d="M64.005 37.89v31.579l13.716-8.427zm0 36.165v11.011c.256-.364 13.716-19.451 13.716-19.46l-13.716 8.451z"/><path fill="#0a0a0a" d="m64.005 74.06l-13.72-8.438l13.72 19.452v-11.02Z"/>
</svg>
);Other libraries
Hardhat in 1 more libraries
Each library draws it its own way. Open one to compare.
Devicon
More like it
Icons that share its tags, in the same style.
Search Devicon
Skip the copy and paste. With Pro, your AI agent finds and installs any Devicon icon from a prompt.
Get ProTags
Browse by tag
Hardhat is tagged testing, Web3, ethereum and 1 more. Related tags follow; each opens its icons from every library.
Pricing
Devicon MCP, with Pro
Ask for Hardhat or any of 1,026 Devicon icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What the Hardhat icon means and where it's used, then how to install, style, label and license it.
The Hardhat icon represents the Hardhat development environment, a popular tool for building, testing, and deploying smart contracts on the Ethereum blockchain. Hardhat is widely used for blockchain development and is a key technology in the web3 ecosystem.
Hardhat is commonly used in blockchain development, particularly in the fields of Ethereum and smart contracts. It is used in various tools and platforms, such as web3.js, ethers.js, and Truffle.
From a UX perspective, the Hardhat icon communicates a sense of development and innovation, suggesting that the technology or tool associated with it enables developers to build and deploy smart contracts efficiently.
Hardhat is one of 1,026 icons in Devicon, made by konpa and released under MIT. It is drawn on a 128 × 128 grid.
Sign in (it's free), then open Get icon, Install with shadcn CLI, and pick your package manager to copy the command. It adds HardhatIcon to components/icons/devicon-hardhat.tsx: one file, a size prop (24 by default) and every SVG prop, with no icon package.
Copy it as React (from Get icon, or the Code section): a typed HardhatIcon component you paste into your project, with no package to install. Only the icons you import reach your bundle. It works in Next.js and any React app.
Open Get icon, then Copy as code, and pick Vue, Svelte, Angular, Solid or Preact; the Code section shows each one too. Every version is one self-contained component with the SVG inside, and SVG and data URL copies are there for plain HTML and CSS.
With Pro, the shadcn.io MCP server lets Claude Code, Cursor or any MCP client find the Hardhat icon, or any of 1,026 Devicon icons, and install it from a prompt.
It's multicolor, so it keeps its own colors.
Set width and height on the component, or a class like size-6. It's drawn on a 128 × 128 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It keeps its own colors in light and dark mode, so check it against both backgrounds. The icon is a vector, so it needs no separate dark asset.
Next to a visible label it's decoration: add aria-hidden="true" so screen readers skip it. Standing alone, as in an icon button, give the button a name instead, like aria-label="Hardhat", so screen readers say what it does.
Yes. HardhatIcon passes every SVG prop to the svg element, so <HardhatIcon aria-hidden="true" /> works, and so do role="img" with aria-label, or a title child, when it carries meaning on its own.
Yes. Open Get icon, then Download file: SVG for code or design tools like Figma; PNG, WebP or JPEG at 512px; or an ICO favicon with 16, 32 and 48px inside. Each one uses what you set in Customize.
Yes. MIT allows commercial use; keep the license notice when you ship the icons' source files. The full terms are in the license, linked on this page.
No visible credit is required: MIT only asks that you keep the license notice if you ship the icons' source files. Icons installed with the shadcn CLI already start with a comment naming Devicon, konpa and the license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
1 other library draws an icon called Hardhat. The Other libraries section on this page shows each one, so you can compare them and open the one that fits your style.
Its tags are testing, Web3, ethereum and smart contracts. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Hardhat in another set.
4.9 out of 5 from 150+ developers
Install Hardhat from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro