Mocha
The mocha icon represents Mocha, a popular JavaScript testing framework for Node.js applications.
Exports at 21 × 24 px
Code
Mocha in your framework
In any framework. Customize it above, and the code follows.
export const MochaIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="21" height="24" viewBox="0 0 256 291" {...props}>
<path fill="#8D6748" d="m248.195 223.766l-112.39 64.937a15.51 15.51 0 0 1-15.61 0L7.805 223.766C2.966 220.956 0 215.806 0 210.342V80.468c0-5.619 2.966-10.614 7.805-13.424l112.39-64.937a15.51 15.51 0 0 1 15.61 0l112.39 64.937c4.84 2.81 7.805 7.961 7.805 13.424v129.874c-.156 5.463-3.122 10.614-7.805 13.424"/><path fill="#FFF" d="M127.844 19.747c-2.341 0-4.683.624-6.712 1.873L24.039 77.659c-4.215 2.342-6.712 6.868-6.712 11.55v112.079c0 4.839 2.497 9.21 6.712 11.552l97.093 56.039c2.029 1.249 4.37 1.873 6.712 1.873c2.34 0 4.683-.624 6.712-1.873l97.093-56.04c4.215-2.341 6.712-6.868 6.712-11.55V89.209c0-4.838-2.497-9.208-6.712-11.55l-97.093-56.04c-2.03-1.248-4.371-1.872-6.712-1.872m0 4.683c1.56 0 2.966.468 4.37 1.249l97.093 56.039c2.654 1.56 4.37 4.527 4.37 7.649v112.078c0 3.122-1.716 6.087-4.37 7.648l-97.092 56.039c-1.405.78-2.81 1.249-4.371 1.249a8.4 8.4 0 0 1-4.371-1.25L26.38 209.094c-2.654-1.561-4.371-4.526-4.371-7.648V89.367c0-3.122 1.717-6.088 4.37-7.65l97.093-56.038c1.405-.781 2.966-1.25 4.37-1.25m-8.976 97.717h13.112c.469 0 .781-.157 1.093-.469c7.805-8.741 8.586-27.005 8.586-32.468c0-.78-.625-1.561-1.561-1.561h-29.347c-.78 0-1.561.624-1.561 1.561c0 5.307.781 23.571 8.586 32.468c.312.312.624.469 1.092.469m-3.59-29.659h20.605c.78 0 1.561.624 1.561 1.561c0 4.371-.781 16.702-6.088 23.102c-.468.313-.78.469-1.249.469h-9.209c-.469 0-.781-.156-1.093-.469c-5.308-6.243-5.932-18.731-6.088-23.102c0-.78.624-1.561 1.561-1.561m13.112-7.96s5.62-3.279 2.185-9.21c-2.029-3.123-2.965-5.776-2.185-6.869c-2.029 2.498-5.463 5.151-1.717 10.771c1.25 1.405 1.873 4.37 1.717 5.307m-6.244.467s3.746-2.185 1.405-6.244c-1.405-2.029-2.029-3.902-1.405-4.527c-1.405 1.717-3.59 3.434-1.093 7.337c.781.78 1.093 2.81 1.093 3.434m-.468 30.752h7.805q.468 0 .936-.468c2.654-3.122 3.903-7.961 4.527-12.176c0 0-.156 1.405-3.902 2.81c-5.15 1.873-14.205.624-14.205.624c.78 3.278 2.03 6.4 3.902 8.742c.156.312.625.468.937.468M62.985 159.61v-31.219H57.21l-9.522 14.673l-9.522-14.673H32.39v31.375h5.463v-22.322l9.678 14.517h.156l9.835-14.673v22.322zm34.967-30.595c-2.03-.78-4.215-1.249-6.556-1.249s-4.527.312-6.557 1.25c-2.03.78-3.746 2.028-5.151 3.433a15.7 15.7 0 0 0-3.434 5.151c-.78 2.03-1.25 4.058-1.25 6.244V144c0 2.185.47 4.371 1.25 6.244q1.17 3.044 3.278 5.151c1.405 1.405 3.122 2.654 5.15 3.434c2.03.781 4.216 1.25 6.557 1.25s4.527-.313 6.557-1.25c2.029-.78 3.746-2.029 5.15-3.434a15.7 15.7 0 0 0 3.435-5.15c.78-2.03 1.249-4.06 1.249-6.245v-.156c0-2.186-.47-4.37-1.25-6.244q-1.17-3.044-3.277-5.15c-1.405-1.406-3.122-2.655-5.151-3.435m3.746 15.141c0 1.405-.312 2.81-.781 4.215c-.624 1.248-1.248 2.497-2.185 3.434a12.5 12.5 0 0 1-3.278 2.341q-1.874.937-4.215.937c-1.404 0-2.965-.312-4.214-.937a12.5 12.5 0 0 1-3.278-2.34c-.937-1.094-1.717-2.187-2.186-3.59c-.468-1.406-.78-2.81-.78-4.372v-.156c0-1.405.312-2.81.78-4.215c.625-1.249 1.249-2.497 2.186-3.434a12.5 12.5 0 0 1 3.278-2.342q1.873-.936 4.214-.936q2.34 0 4.215.936a12.5 12.5 0 0 1 3.278 2.342c.937 1.093 1.717 2.185 2.185 3.59c.469 1.405.78 2.81.78 4.371zm23.102-4.683c.624-1.249 1.249-2.498 2.185-3.434a12.5 12.5 0 0 1 3.278-2.342c1.249-.624 2.498-.936 4.059-.936c1.873 0 3.434.312 4.839 1.092c1.405.781 2.654 1.718 3.902 2.81l3.591-4.058c-.781-.78-1.561-1.405-2.342-2.03c-.78-.624-1.717-1.092-2.653-1.56c-1.093-.313-2.03-.625-3.279-.937c-1.248-.156-2.497-.312-3.902-.312c-2.498 0-4.527.468-6.556 1.248c-2.029.781-3.746 2.03-5.151 3.435a18 18 0 0 0-3.278 5.151a16.5 16.5 0 0 0-1.249 6.244V144c0 2.185.468 4.214 1.249 6.244q1.17 3.044 3.278 5.151c1.405 1.405 3.122 2.654 4.995 3.434a15.9 15.9 0 0 0 6.244 1.25c1.405 0 2.809 0 4.214-.313c1.093-.156 2.342-.625 3.278-1.093c.937-.468 1.874-.937 2.81-1.717c.937-.78 1.717-1.405 2.498-2.342l-3.59-3.59c-1.405 1.25-2.81 2.186-4.059 2.966s-2.966 1.093-4.839 1.093c-1.405 0-2.81-.469-4.059-.937c-1.248-.468-2.341-1.405-3.278-2.34c-.936-1.094-1.717-2.187-2.185-3.592c-.468-1.404-.781-2.809-.781-4.37v-.156c0-1.405.313-2.81.781-4.215m32.937-11.082v31.219h5.463v-13.112h14.986v13.112h5.463v-31.22h-5.463v12.957H163.2V128.39zm59.941 23.727l3.122 7.493h5.775l-13.736-31.376h-4.996l-13.736 31.375h5.62l3.277-7.493zm-7.337-17.327l5.307 12.488h-10.614zM28.488 171.16h199.024v-1.717H28.488zm114.42-60.41c0 .624-.157 1.093-.157 1.718h84.761v-1.718zm-34.81 0h-79.61v1.718h79.766c0-.624-.157-1.093-.157-1.718"/>
</svg>
);Other libraries
Mocha in 3 more libraries
Each library draws it its own way. Open one to compare.
SVG Logos
More like it
Icons that share its tags, in the same style.
Search SVG Logos
Skip the copy and paste. With Pro, your AI agent finds and installs any SVG Logos icon from a prompt.
Get ProTags
Browse by tag
Mocha is tagged development, javascript, framework and 2 more. Related tags follow; each opens its icons from every library.
Pricing
SVG Logos MCP, with Pro
Ask for Mocha or any of 2,063 SVG Logos 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 Mocha icon means and where it's used, then how to install, style, label and license it.
The mocha icon represents Mocha, a popular JavaScript testing framework for Node.js applications. Mocha provides a flexible and powerful way to write and run tests, making it a widely-used tool in software development.
In real-world applications, the mocha icon appears on the Mocha website, documentation, and developer communities like GitHub. Software platforms and tools like Node.js, JavaScript, and testing frameworks might also utilize this icon.
From a UX perspective, the mocha icon effectively communicates the framework's focus on testing and quality assurance, helping developers quickly understand its purpose.
Mocha is one of 2,063 icons in SVG Logos, made by Gil Barbara and released under CC0. It is drawn on a 256 × 291 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 MochaIcon to components/icons/logos-mocha.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 MochaIcon 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 Mocha icon, or any of 2,063 SVG Logos 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 256 × 291 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="Mocha", so screen readers say what it does.
Yes. MochaIcon passes every SVG prop to the svg element, so <MochaIcon 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.
CC0 puts the icons in the public domain: use them anywhere, with no conditions. The full terms are in the license, linked on this page.
No. CC0 gives the icons to the public domain, so no credit and no notice is required. Icons installed with the shadcn CLI still start with a comment naming SVG Logos, Gil Barbara and the license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
3 other libraries draw an icon called Mocha. 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 development, javascript, framework, testing and nodejs. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Mocha in another set.
4.9 out of 5 from 150+ developers
Install Mocha from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro