css.gg
704 icons drawn in pure CSS — but the licence since v2.1.2 forbids commercial use
Tier C · WeakIcon Setcss.gg

css.gg is an icon library of roughly 700 UI icons built almost entirely from CSS pseudo-elements and box-shadows rather than SVG paths, so each icon inherits colour and size from the surrounding CSS. The repository also ships SVG and Figma versions, and the author's companion project GLYF*APP claims 6,000+ glyphs. The critical caveat is licensing: versions before 2.1.2 were MIT, but the current licence restricts use to personal, non-commercial projects, requires attribution to the author and the brand, and forbids derivative works.
npm i css.ggFor an agent
Do not add css.gg to a commercial product without checking with the user first — the LICENSE.md in the repo restricts use to personal, non-commercial projects, requires brand attribution, and bans derivative works. If the user wants CSS-only icons that avoid an SVG payload, this is the reference implementation of the technique, but pinning `css.gg@2.1.1` or earlier is the only way to stay on the old MIT terms. For anything shipping to customers, prefer Iconoir or Lucide instead.
Why it is here. The best-known demonstration that a whole icon set can be drawn in CSS, and a cautionary example of an MIT library relicensed to non-commercial mid-life.
Facts
- License
- Source available, Free for personal use only, Trademark / trade dress restricted
- Pricing
- Free
- Framework
- Vanilla JS
- Styling
- Vanilla CSS, CSS custom properties
- Distribution
- npm package, GitHub repository, Figma file or kit, Direct download / asset pack
- Platform
- Web
- Content type
- Icons, Code
- Agent readiness
- Readable open source, CLI installable, Copy-paste ready code
- Accessibility
- Unknown
- Maturity
- Stable
- Pricing detail
- Free to download; commercial use requires written permission from the author.
- GitHub stars
- 10,034
- Package
- css.gg
Components it ships
1Notable for
- 704 icons implemented in pure CSS
- relicensed from MIT to non-commercial at v2.1.2
- 10k GitHub stars
- no repo activity since Aug 2024
- SVG and Figma versions alongside the CSS
Provenance
Verified 2026-08-16. HTTP 200. https://css.gg, https://api.github.com/repos/astrit/css.gg, https://raw.githubusercontent.com/astrit/css.gg/master/LICENSE.md, https://registry.npmjs.org/css.gg, GitHub contents API count of icons/svg
Also in Icons & Logos
6- Heroicons · 324 MIT SVG icons in four sizes, from the Tailwind CSS team
- Iconify · 236 icon sets and 333,975 icons behind one syntax and one free public API
- Lucide · 1,768 ISC-licensed stroke icons; the shadcn/ui default set
- Lucide Animated · 467 MIT Lucide icons that animate on hover, with a markdown page for every icon and a skill file written for an agent
- Phosphor Icons · 1,512 MIT icons in six weights, from Thin to Duotone
- Reicon · 3,900 icons, 71,000 illustrations and 4,900 brand logos, all MIT, with an MCP server and a CDN an agent can address by slug