Skip to content
css.gg

css.gg

704 icons drawn in pure CSS — but the licence since v2.1.2 forbids commercial use

Tier C · WeakIcon Setcss.gg

Preview image from css.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.

Install
npm i css.gg

For 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.

Install command, framework, licence and component list.

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

1

Notable 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
css.ggTier C