Milligram
The milligram icon represents a unit of measurement, specifically a milligram, which is a unit of mass or weight.
Exports at 17 × 24 px
Code
Milligram in your framework
In any framework. Customize it above, and the code follows.
export const MilligramIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="24" viewBox="0 0 256 370" {...props}>
<path fill="#9B4DCA" d="M128 0C36.468 150.218 0 178.702 0 241.794c0 70.692 57.308 128 128 128s128-57.308 128-128C256 178.15 218.973 149.942 128 0m0 348.777c-59.203 0-107.196-47.994-107.196-107.197c0-52.837 30.541-76.692 107.196-202.495C204.188 164.657 235.196 188.28 235.196 241.58c0 59.203-47.993 107.197-107.196 107.197m-13.27-44.966c-12.333-2.766-21.681-7.743-30.53-16.095c-6.361-6.03-9.845-10.62-13.385-17.477c-5.586-10.896-7.522-19.635-7.08-32.08c.166-6.14.554-9.236 1.66-13.33c1.659-6.25 4.424-13.107 5.918-14.766c.608-.664 1.106-1.44 1.106-1.77c0-.332.442-1.217.94-1.991c1.438-2.268 1.494-5.476.166-8.131c-2.986-5.807-7.854-8.241-13.827-6.913c-4.148.94-6.305 3.705-10.509 13.44c-5.033 11.725-7.079 20.353-7.577 32.079c-1.881 42.698 27.489 80.253 69.357 88.77c4.259.83 6.195.996 7.909.609c8.573-1.936 11.726-11.781 5.863-18.197c-1.77-1.991-3.429-2.655-10.011-4.148"/>
</svg>
);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
Milligram is tagged logo, measurement, lab and 3 more. Related tags follow; each opens its icons from every library.
Pricing
SVG Logos MCP, with Pro
Ask for Milligram 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 Milligram icon means and where it's used, then how to install, style, label and license it.
The milligram icon represents a unit of measurement, specifically a milligram, which is a unit of mass or weight. Milligrams are commonly used in chemistry, pharmacy, or laboratory settings.
In real-world applications, the milligram icon may appear in laboratory software, chemistry tools, or medical applications. For instance, it could be used in a medical app to display medication dosages in milligrams.
From a UX perspective, the milligram icon communicates the concept of measurement and quantification. It helps users understand and work with mass or weight values in various contexts.
Milligram is one of 2,063 icons in SVG Logos, made by Gil Barbara and released under CC0. It is drawn on a 256 × 370 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 MilligramIcon to components/icons/logos-milligram.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 MilligramIcon 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 Milligram 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 × 370 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="Milligram", so screen readers say what it does.
Yes. MilligramIcon passes every SVG prop to the svg element, so <MilligramIcon 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.
Its tags are logo, measurement, lab, chemistry, weight and unit. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Milligram in another set.
4.9 out of 5 from 150+ developers
Install Milligram from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro