eibens / css.gg

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

Home Page:https://css.gg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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";

About

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

https://css.gg

License:MIT License


Languages

Language:SCSS 67.0%Language:CSS 30.3%Language:TypeScript 2.7%Language:JavaScript 0.0%