/css.gg

700+ Pure CSS, SVG & Figma UI Icons Available in SVG Sprite, styled-components, NPM & API

Primary LanguageSCSSMIT LicenseMIT

eibens/css.gg

This is a fork of css.gg.

Why?

Add the generate.ts script to generate TSX ES modules that are independent of the React implementation.

How?

Running this command will generate the TSX files under icons/tsx-esm.

deno run --allow-read --allow-write generate.ts

Add this to your import map:

{
  "imports": {
    "icons": "https://raw.githubusercontent.com/eibens/css.gg/main/icons/tsx-esm/"
  }
}

Then import the icons like this:

import { ArrowLeft } from "icons/ArrowLeft.tsx";