CSS.gg Pill Icon
The CSS.gg Pill icon uses uses stroked lines with no fill — clean, legible, and versatile at any size. Compare it against similar icons in 27 other libraries on IconStash, adjust stroke width, change colors with a hex picker, and export at any size.
Interactive Customizer
About this icon
Use the Pill icon
Icons in the outline style — like Pill — are designed for app navigation bars, toolbar buttons, form labels, and UI controls where clarity at 16–24px is critical. Use it across health and fitness apps, medical record systems, wellness dashboards, telemedicine platforms, and patient portals for a consistent, professional look.
IconStash's editor lets you fine-tune color, size, and stroke width in real time, then export in the format that fits your workflow: SVG, PNG, JSX, or CSS background-mask.
Export formats
Copy clean SVG vectors with one click, generate custom-size PNG files from 16px to 512px, export JSX/React components ready to paste into your project, or use the icon as a CSS background-mask for flexible theming.
All exports are based on the same editable vector — so the Pill icon stays pixel-perfect at 16px, 24px, 48px, and any large marketing size.
Design & UX integration
Aesthetic characteristics
css.gg is unusual: Pill is available as pure CSS as well as SVG, so it can be dropped into a project with no build step and no icon dependency. The shapes are geometric and minimal by necessity — every icon has to be expressible with CSS borders, transforms and pseudo-elements.
UX best practices
In health, fitness and clinical interfaces, the Pill icon usually sits beside a number, so align it to the same baseline as the metric and give it room. Avoid encoding severity in colour alone: red-only status fails for colour-blind users and reads as alarm fatigue in long-term tracking screens.
Use in your project
React / npm — CSS.gg
npm install css.gg
/* Import the specific icon CSS */
@import url('css.gg/icons/css/pill.css');
<!-- HTML usage: -->
<i class="gg-pill"></i>
Copy the SVG markup directly from the IconStash editor to use the Pill icon without any npm package — paste it into HTML, JSX, or a design tool.
Inline SVG (copy & paste)
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="pill icon"><path fill="currentColor" fill-rule="evenodd" d="M12.657 2.757a6 6 0 1 1 8.485 8.486l-9.9 9.9a6 6 0 1 1-8.485-8.486zm7.07 7.071l-4.242 4.243l-5.657-5.657l4.243-4.242a4 4 0 1 1 5.657 5.656" clip-rule="evenodd"/></svg>
Library & related icons
About css.gg Icons
700+ open-source icons available as pure CSS, SVG, and npm packages. Each icon is a single CSS file with no external dependencies.
Browse all 705 css.gg Icons icons →Related searches
People also search for
Frequently asked questions
What is the Pill icon?
The Pill icon is a outline-style SVG icon from the CSS.gg library, categorized under Health. It is designed for use in health and fitness apps, medical record systems, wellness dashboards, telemedicine platforms, and patient portals. On IconStash you can preview it, customize its color and size, and export it in SVG, PNG, JSX, or CSS formats directly from your browser.
Is the Pill icon free to use?
Yes. CSS.gg is licensed under MIT, making it free for personal and commercial use. This means you can freely use the Pill icon in personal, commercial, and open-source projects. IconStash provides SVG and PNG access at no cost with no login required.
How do I use the Pill icon in React?
Install the package with `npm install css.gg`, then import the component into your React file. IconStash's detail panel shows you the exact npm command, import statement, and JSX usage snippet for every icon — just click the Code tab and copy with one click.
What is the CSS.gg icon library?
700+ open-source icons available as pure CSS, SVG, and npm packages. Each icon is a single CSS file with no external dependencies. It contains 705+ icons. IconStash indexes the complete CSS.gg collection alongside 27 other open-source libraries — 134,701 icons total — in a single unified search interface.
Can I download the Pill icon as a PNG?
Yes. Open the Pill icon in IconStash, set your desired pixel size (16px to 512px) in the detail panel, and click Download PNG. You can also export a multi-resolution ZIP pack containing 16, 24, 32, 48, 64, 128, 256, and 512px PNGs with a single click.
What does the outline icon style mean?
An icon in outline style uses stroked lines with no fill — clean, legible, and versatile at any size. This style is best suited for app navigation bars, toolbar buttons, form labels, and UI controls where clarity at 16–24px is critical. The CSS.gg Pill icon follows this visual convention throughout the CSS.gg design system.
Can I change the Pill icon's color and size before downloading?
Yes. In IconStash's editor panel, choose from six color presets (blue, slate, green, purple, red, teal) or enter a custom hex value. Drag the size slider (16–256px) or type an exact pixel value up to 512px. Changes apply instantly to the SVG preview, the PNG output, and the copied code.