Giter Site home page Giter Site logo

astrit / css.gg Goto Github PK

View Code? Open in Web Editor NEW
9.5K 104.0 476.0 6.4 MB

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

Home Page: https://css.gg

License: MIT License

CSS 32.07% JavaScript 0.02% SCSS 67.91%
css icons retina-ready multiple-icons customizable css-icon svg npm styled-components purecss

css.gg's Introduction

YouTube   ·   App   ·   Figma


Open-source CSS, SVG and Figma UI Icons
Available in SVG Sprite, styled-components, NPM & API !!! Now available as PNG in white and black colors


Now also a collection of well organised 6000+ glyphs, easy copy paste and available on the raycast extension.





npm GitHub last commit Website npm GitHub issues GitHub stars Twitter Follow

css.gg glyphs.css.gg



New in 2.1

🥳 1400 New Icons, in white and black PNG

🚀 6000+ glyphs available also available on glyphs.css.gg



Table of Contents

Get Started

Install the latest version via npm or yarn

npm i css.gg
yarn add css.gg

Using Package Manager
This package contains the following directories and files:

Path                             What it is
/icons/css individual *.css icons
/icons/scss individual *.scss icons
/icons/svg individual *.svg icons
/icons/tsx individual *.tsx icons styled-components
/icons/icons.css all icons compressed in a single file
/icons/icons.d.ts styled-components
/icons/icons.fig local figma file same as https://css.gg/fig
/icons/icons.js list of exported styled-components
/icons/icons.js.map styled-components
/icons/icons.json all icons _.css, _.svg, *.tsx including markup & public path
/icons/icons.scss all icons in a single SCSS file npm i node-sass needed
/icons/icons.svg SVG Sprite with all icons
/icons/icons.xml all icons _.css, _.svg, *.tsx including markup & public path
/glyphs/glyphs.json 6000 glyphs categorized and available on json format


❤️ Support

If you want to support further development of this project consider becoming a sponsor
Github Sponsor — github.com/sponsors/astrit


HTML include

1. All icons

<!-- css.gg -->
<link href="https://css.gg/css" rel="stylesheet" />

<!-- UNPKG -->
<link href="https://unpkg.com/css.gg/icons/icons.css" rel="stylesheet" />

<!-- JSDelivr -->
<link
  href="https://cdn.jsdelivr.net/npm/css.gg/icons/icons.css"
  rel="stylesheet"
/>

2. Single icon

<!-- css.gg -->
<link href="https://css.gg/ {ICONNAME} .css" rel="stylesheet" />

<!-- UNPKG -->
<link
  href="https://unpkg.com/css.gg/icons/css/ {ICONNAME} .css"
  rel="stylesheet"
/>

<!-- JSDelivr -->
<link
  href="https://cdn.jsdelivr.net/npm/css.gg/icons/css/ {ICONNAME} .css"
  rel="stylesheet"
/>

3. Collection

<!-- CSS Format -->
<link href="https://css.gg/css?= {ICONNAME} | {ICONNAME}" rel="stylesheet" />

4. Markup

<i class=" {ICONNAME} "></i>

<!-- reference icon using span -->
<span class=" {ICONNAME} "></span>

<!-- reference icon using div -->
<div class=" {ICONNAME} "></div>

<!-- reference icon using custom tag -->
<gg-icon class=" {ICONNAME} "></gg-icon>
5. Example
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>

    <!-- You can add this link or any other CDN alternatives as mentioned above -->
    <link href="https://css.gg/css" rel="stylesheet" />
  </head>
  <body>
    <!-- Using i tag  -->
    <i class="gg- {ICONNAME} "></i>

    <!-- Using div tag  -->
    <div class="gg- {ICONNAME} "></div>

    <!-- Using custom tag  -->
    <gg-icon class="gg- {ICONNAME} "></gg-icon>
  </body>
</html>

CSS @import

1. All icons

/* css.gg */
@import url("https://css.gg/css");

/* UNPKG */
@import url("https://unpkg.com/css.gg/icons/icons.css");

/* JSDelivr */
@import url("https://cdn.jsdelivr.net/npm/css.gg/icons/icons.css");

2. Single icon

/* css.gg */
@import url("https://css.gg/ {ICONNAME} .css");

/* UNPKG */
@import url("https://unpkg.com/css.gg/icons/css/ {ICONNAME} .css");

/* JSDelivr */
@import url("https://cdn.jsdelivr.net/npm/css.gg/icons/css/ {ICONNAME} .css");

3. Collection

/* css.gg */
@import url("https://css.gg/css?= {ICONNAME} | {ICONNAME}");

4. Resizing

To resize an icon you just need to change the value of a css variable "--ggs" to any value you like if not specified it falls back to 1 or the actual size.

.gg-{ICONNAME} {
    /* This value will multiple the actual size  */
    --ggs: 10;
}

The variable can be added to the parent, custom class,body or root level if you want all icons same size.

:root {
  --ggs: 6;
}

5. Coloring

By default all the CSS, SCSS icons inherit the color from the parent by using currentColor attribute how ever you can apply any color you like.

.gg-{ICONNAME} {
  color: teal;
}

SVG

1. SVG Sprite - Download Path

You can't use these paths, you must download since SVG doesn't allow external sources.

<!-- css.gg -->
https://css.gg/svg

<!-- UNPKG -->
https://unpkg.com/css.gg/icons/icons.svg

<!-- JSDelivr -->
https://cdn.jsdelivr.net/npm/css.gg/icons/icons.svg
1.1. Example
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- First copy all.svg to your project directory -->
    <svg><use xlink:href="path/to/icons.svg# {ICONNAME} " /></svg>
  </body>
</html>

2. SVG Single Icon - Download Path

<!-- css.gg -->
https://css.gg/ {ICONNAME} .svg

<!-- UNPKG -->
https://unpkg.com/css.gg/icons/svg/ {ICONNAME} .svg

<!-- JSDelivr -->
https://cdn.jsdelivr.net/npm/css.gg/icons/svg/ {ICONNAME} .svg
2.1. Example - SVG Sprite
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- First copy all.svg to your project directory -->
    <svg><use xlink:href="path/to/icons.svg# {ICONNAME} " /></svg>
  </body>
</html>
2.2. Example - Inline SVG Sprite/Symbol

You can add as symbol each or copy the entire file contents at one of the CDN alternatives as mentioned at 2.1

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
      <symbol id="{ICONNAME}">
        <!-- here goes the icon path  -->
      </symbol>
    </svg>

    <!-- Afterward you can call the icons by id like this: -->
    <svg><use xlink:href="# {ICONNAME} " /></svg>
  </body>
</html>

2.3. Example Single copy/paste icon

You can go to https://css.gg/{ICONNAME} and copy the SVG icon directy and paste it on your project.
You can also download a single icon by just visiting https://css.gg/{ICONNAME}.svg

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- Just paste it where you want the icon to be  -->
    <svg
      width="24"
      height="24"
      viewBox="0 0 24 24"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
    >
      <path d="M9 13H15V17H9V13Z" fill="currentColor" fill-opacity="0.5" />
      <path d="M6 7H18V11H6V7Z" fill="currentColor" />
    </svg>
  </body>
</html>

3. Encode SVG for CSS

You need to define width and height in order for this to work. Afterwards you can just create a div

.gg-{ICONNAME} {

  background-image:
    url("data:image/svg+xml,<svg></svg>");

}

To encode use this tool
https://yoksel.github.io/url-encoder/

3.1. Example - Encoded SVG for CSS icon

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- Using i tag  -->
    <i class="gg- {ICONNAME} "></i>

    <!-- Using div tag  -->
    <div class="gg- {ICONNAME} "></div>

    <!-- Using custom tag  -->
    <gg-icon class="gg- {ICONNAME} "></gg-icon>
  </body>
</html>

4. Coloring a SVG icon

By default all colors use currentColor as value in order to inherit the color from the parent.
If you wish to change that color you can do the following.

4.1. Directly on the icon

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <svg><path fill=" {COLOR} " /></svg>
  </body>
</html>

4.2. using class

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>

    <style>
      /* 1. You define the CSS class like this:  */

      .custom__color path {
        color: teal;
      }
    </style>
  </head>
  <body>
    <!-- 2. After that you have to apply the class to the icon -->
    <svg class="custom__color"><path /></svg>
  </body>
</html>

JSON - paths

1. All icons

<!-- All attributes -->
https://css.gg/json

<!-- Only Style -->
https://css.gg/json?=&op=css

<!-- Style & Markup -->
https://css.gg/json?=&op=css+markup

<!-- UNPKG -->
https://unpkg.com/css.gg/icons/icons.json

<!-- JSDelivr -->
https://cdn.jsdelivr.net/npm/css.gg/icons/icons.json

2. Single icon

<!-- All attributes -->
https://css.gg/json?= {ICONNAME}

<!-- Only Style -->
https://css.gg/json?= {ICONNAME} &op=css

<!-- Style & Markup -->
https://css.gg/json?= {ICONNAME} &op=css+markup

<!-- No CDN Alternatives -->

3. Collection

<!-- All attributes -->
https://css.gg/json?= {ICONNAME} | {ICONNAME}

<!-- Only Style -->
https://css.gg/json?= {ICONNAME} | {ICONNAME} &op=css

<!-- Style & Markup -->
https://css.gg/json?= {ICONNAME} | {ICONNAME} &op=css+markup

<!-- No CDN Alternatives -->

XML - paths

1. All icons

<!-- All attributes -->
https://css.gg/xml

<!-- Only Style -->
https://css.gg/xml?=&op=css

<!-- Style & Markup -->
https://css.gg/xml?=&op=css+markup

<!-- UNPKG -->
https://unpkg.com/css.gg/icons/icons.xml

<!-- JSDelivr -->
https://cdn.jsdelivr.net/npm/css.gg/icons/icons.xml

2. Single icon

<!-- All attributes -->
https://css.gg/xml?= {ICONNAME}

<!-- Only Style -->
https://css.gg/xml?= {ICONNAME} &op=css

<!-- Style & Markup -->
https://css.gg/xml?= {ICONNAME} &op=css+markup

<!-- No CDN Alternatives -->

3. Collection

<!-- All attributes -->
https://css.gg/xml?= {ICONNAME} | {ICONNAME}

<!-- Only Style -->
https://css.gg/xml?= {ICONNAME} | {ICONNAME} &op=css

<!-- Style & Markup -->
https://css.gg/xml?= {ICONNAME} | {ICONNAME} &op=css+markup

<!-- No CDN Alternatives -->

React

On a React project you can include a single icon as CSS, Styled Component, SCSS, SVG or call the contents using .json or .xml files.
Note that only styled-components icons can be called directly such as:

import { ICONNAME } from "css.gg";

1. Styled Components 💅

After you install the package by using npm i css.gg or yarn add css.gg you can add a single icon like this:

import React from "react";
import { ICONNAME } from "css.gg";

export default function () {
  return (
    <div>
      <ICONNAME />
    </div>
  );
}

2. Local Single Icon as styled-component

If you need to download a single typescript or styled-componment format icon without downloading the entire package just visit the link like this:

https://css.gg/{ICONNAME}.tsx

2.1. Copy directly from the page

If you don't want to download at all but just copy paste visit the icon page and you have a special tab for it.

https://css.gg/{ICONNAME}

2.2. Local Component Example

import React from "react";

// local path
import { ICONNAME } from "./ {ICONNAME} ";

function App() {
  return (
    <div>
      <ICONNAME />
    </div>
  );
}

export default App;

3. SVG Sprite method

import React from "react";

// Import function from package
import { SVG } from "css.gg";

function App() {
  return (
    <div>
      <svg width="24" height="24">
        <use xlinkHref={SVG + "#gg-ICONNAME"} />
      </svg>
    </div>
  );
}

export default App;

4. All CSS icons

import React from 'react';

// Import function from package
import { CSS } from 'css.gg'

function App() {
  return (
    <div>

        <!-- Using i tag  -->
        <i className="gg- {ICONNAME} "></i>

        <!-- Using div tag  -->
        <div className="gg- {ICONNAME} "></div>

        <!-- Using custom tag  -->
        <gg-icon className="gg- {ICONNAME} "></gg-icon>

    </div>
  );
}

export default App;

4.1. Single CSS icon

import React from 'react';

// Import path from package
import 'css.gg/icons/css/ {ICONNAME} .css'

function App() {
  return (
    <div>

        <!-- Using i tag  -->
        <i className="gg- {ICONNAME} "></i>

        <!-- Using div tag  -->
        <div className="gg- {ICONNAME} "></div>

        <!-- Using custom tag  -->
        <gg-icon className="gg- {ICONNAME} "></gg-icon>

    </div>
  );
}

export default App;

5. All SCSS icons

SCSS format to work you need to have node-sass installed npm i node-sass

import React from 'react';

// Import function from package
import { SCSS } from 'css.gg'

function App() {
  return (
    <div>

        <!-- Using i tag  -->
        <i className="gg- {ICONNAME} "></i>

        <!-- Using div tag  -->
        <div className="gg- {ICONNAME} "></div>

        <!-- Using custom tag  -->
        <gg-icon className="gg- {ICONNAME} "></gg-icon>

    </div>
  );
}

export default App;

5.1. Single SCSS icon

SCSS format to work you need to have node-sass installed npm i node-sass

import React from 'react';

// Import path from package
import 'css.gg/icons/scss/ {ICONNAME} .scss'

function App() {
  return (
    <div>

        <!-- Using i tag  -->
        <i className="gg- {ICONNAME} "></i>

        <!-- Using div tag  -->
        <div className="gg- {ICONNAME} "></div>

        <!-- Using custom tag  -->
        <gg-icon className="gg- {ICONNAME} "></gg-icon>

    </div>
  );
}

export default App;

6. Combined import SVG, CSS, SCSS etc.

import { SVG, CSS, SCSS, ICONNAME, ICONNAME } from "css.gg";

Design Tools

All icons are available as components on assets from where you can search for a sigle icon or browse categories. css.gg figma

2. Adobe XD - https://css.gg/xd

All icons are available as components
css.gg figma

Contributors

  1. Astrit - Author
  2. JiangWeixian - Styled Components
  3. Lona - Figma/SVG Design

To become a contributor do a new pull request.

Support

Discord - https://github.com/astrit/css.gg/discussions

v.1.0.6 or older

In order to access older versions you can use one of the provided CDN Alternatives

<!-- UNPKG -  v.1.0.6 -->
https://unpkg.com/browse/[email protected]/

<!-- JSDelivr -  v.1.0.6 -->
https://cdn.jsdelivr.net/npm/[email protected]/

Contribute

If you would like to contribute feel free to do a new pull request.

Activity

css.gg's People

Contributors

astrit avatar denno020 avatar jiangweixian avatar ruudwelten avatar spekulatius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

css.gg's Issues

website filter accepts null but returns no results (sort of)

I was just passing through, and searched for several icons on the website, getting no results on any of them.

Starting to wonder if the problem was on my end (and wanted to see what icons you do have) so I left the filter field "blank" and hit Enter (same as clicking this).

It says 507 results (presumably all the icons) but displays zero of them.

✒ Request tracker

This issue is intended to track new icon request that are possible to be done and their progress and also those that are not due to the limitations on CSS, in order to reduce the number of new issues for the same icons.

Name Status Progress
📌 Reddit Impossible
📌 Github Impossible
📌 Speaker Deck Possible 0%

Update license

Hello! Great Project!

I really liked the way you handled the pricing for this project but I don't think that an MIT license is suitable here?

I'm looking to build projects with the same pricing structure and I hoped that you found a solution for which license to use 😸

✒ Request tracker

This issue is intended to track new icon request that are possible to be done and their progress and also those that are not due to the limitations on CSS, in order to reduce the number of new issues for the same icons.

Nr. Name Status Progress
#36 Reddit n/a --
#35 Github n/a --
#34 Speaker Deck Possible 0%
#28 Subscript Possible 0%
#28 Superscript Possible 0%
#30 Vercel Possible 80%
#44 Fingerprint Possible 0%

Testing with Jest

Hello guys,

We started using css.gg on our React/React Native Design System and it worked perfectly. On the other hand, when we tried to test it using Jest and React Testing Library all the components using this lib broke.

image

We don't have CSS files on our project, because we use styled-components for styling, so we don't have a CSS rule on our webpack.

test.tsx:

import * as React from 'react';
import { render } from '@testing-library/react-native';

import Button from '../index';

describe('Button Test', () => {
  it('should render the button', () => {
    const { toJSON } = render(<Button />);

    expect(toJSON()).toMatchSnapshot();
  });
});

component.tsx:

import React from 'react';
import { ButtonProps } from './types';
import { ButtonComponent, TextComponent, Wrapper } from './styles';
import { SVG } from 'css.gg';

const Button = ({ onPress, variant, text, iconName, iconMessage }: ButtonProps) => (
  <ButtonComponent variant={variant} onPress={onPress} activeOpacity={1}>
    {text && !iconName && (
      <Wrapper iconName={iconName}>
        <TextComponent>{text}</TextComponent>
      </Wrapper>
    )}
    {iconName && !text && (
      <>
        <div className="tooltip">
          <svg viewBox="0 0 24 24">
            <use xlinkHref={SVG + `#gg-${iconName}`} />
          </svg>
          <span className="tooltiptext">{iconMessage}</span>
        </div>
      </>
    )}
    {iconName && text && (
      <>
        <Wrapper iconName={iconName}>
          <TextComponent>{text}</TextComponent>
        </Wrapper>
        <svg viewBox="0 0 24 24">
          <use xlinkHref={SVG + `#gg-${iconName}`} />
        </svg>
      </>
    )}
  </ButtonComponent>
);

export default Button;

Any clues? Thank you :)

--

Edit: we are using react-native-web to organize what is native and what is web. We have an alias mapped to react-native to call react-native-web instead.

animations on pseudo elements don't work in safari

a lot of the animations rely on the pseudo elements being animated.
Since this doesn't work in some browsers. I suggest favouring animating the base element:
eg:

@keyframes spinneralt {
	0% { transform: rotate(0deg) }
	to { transform: rotate(359deg) }
}

.gg-spinner-alt {
	transform: scale(var(--ggs,1));
	animation: spinneralt 1s cubic-bezier(.6,0,.4,1) infinite; /*  this line was defined on the before pseudo-element and moving it doesn't change the behaviour but improves browser compatibility */ 
}

.gg-spinner-alt,
.gg-spinner-alt::before {
	box-sizing: border-box;
	position: relative;
	display: block;
	width: 20px;
	height: 20px
}

.gg-spinner-alt::before {
	content: "";
	position: absolute;
	border-radius: 100px;
	border: 3px solid transparent;
	border-top-color: currentColor
}

Icon Request: Cinema chair

It would be lovely to see a cinema chair in the collection which could be used to create seat booking pages.

inconsistencies between browsers and zoom levels

Some icons are inconsistent and broken in different browsers and at different zoom levels.
There's also inconsistencies between viewing them on my 4k screen at 125% DPI scaling or on my 1080p screen at 100% DPI scaling. Since you advertise your icons as both accessible and retina-ready, they should work consistently across all zoom levels and on all DPI scalings.

Here is an imgur album that demonstrates the issue: https://imgur.com/a/wGqacsx

Subscript and Superscript icons

Probably it would be good if you can add subscript and superscript icons as well. Most libraries dont have them. Hence, it would distinguish yours among them.

Angular support?

Hi, I've tried integrating css.gg on an angular project. Since this doesn't have SASS files, I added the CSS file in angular.json.

//angular.json
"styles": [
  "src/styles.scss",
  "node_modules/css.gg/icons-compressed/icons.css"
 ],

But I'm getting this error

WARNING in ./node_modules/css.gg/icons-compressed/icons.css (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/css.gg/icons-compressed/icons.css)
Module Warning (from ./node_modules/postcss-loader/src/index.js):
Warning

(1:80606) Gradient has outdated direction syntax. New syntax is like `closest-side at 0 0` instead of `0 0, closest-side`.

Any idea to add scss support too?

Just wondering If you have plans to add scss file too in addition to css file. that would come in handy when working with angular/react projects.

bootstrap button with css.gg icon not in one line

When I do this:

<button class="btn btn-primary btn-block">
        A button <span class="gg-sort-az"></span>
    </button>

the icon is moved to a new line. Like this:

+---------------------------------------------------------------+
|                         A button                              |
|  [icon]                                                       |
+---------------------------------------------------------------+

I am expecting this:

+---------------------------------------------------------------+
|                   A button   [icon]                           |
+---------------------------------------------------------------+

Icon Request: Speaker Deck

Hi. Awesome work, thanks!

I hope an issue is an acceptable form for an icon request. I couldn't find any info on requesting additional icons in the README.

I would appreciate an icon for the https://speakerdeck.com/ logo, a service for hosting slide decks.

image

CSS vs SVG for icons

Hi!
This is just out of curiosity,
What are the pro and cons of using CSS over SVG for icons? And vice-versa.

Anyway, thank you for this useful project!

Apple watch crown

Hi,

First of all thanks for your effort and for this awesome icons lib.

Is it just me or the apple watch crown looks weird as the crown has no round corners?
LE: As I see you've designed around the actual look and feel of an apple watch 5th series. As I'm looking down at my wriest the watch has no round corners and everything looks like having a smooth transition, even the crown.

Thanks!

Icon request : Hide icon

Hello,
Would it be possible to you to create a hide icon ? By that, I mean to take the eye icon which already exists, and cross it out.
If you create it, it would go complete the eye icon if someone want to use icons for a password input to reveal or hide the text, for instance.
Thanks in advance !

Icons in React

Good morning, sir,
I just started a new project and I'm starting to use css.gg.
I use React and styled-component.
I've made a codesandbox to show how, maybe, we could import these Icons into React.
I know there are already component style based Icons but they should, however, be more customizable.
It's just an approach that I think needs to be improved.
I also noticed that there are no title tags in the svg.
Thanks for the work.
Good continuation.

here is the codesandbox :

https://codesandbox.io/s/cssgg-styled-react-hdhtc?file=/src/App.tsx

✨ Bucketlist

Feature Status Progress
📌 Styled Components Finished 100%
📌 CSS Modules 0%
📌 Angular 0%
📌 Vue.js 0%
📌 Single File Components 0%
📌 Custom tag Working 70%
📌 WP Plugin 0%
📌 Laravel 0%
📌 Typed React Components 50%
📌 Figma Plugin 0%
📌 Custom SVG Sprite 0%
📌 Sanity Plugin 0%

Feature request: alternate searchable icon labels

A very important feature to add to the website would be alternate searchable icon labels.

  • If a user wants to find out if css.gg supports an icon they want, they will search for it
  • The search returns exact matches only and is missing icons which are a close match but with a different name

Examples of this issue

  • If someone searches for "person", 0 results show up even though "user", "profile", "boy", and "girl" exist and match what the user is looking for.
  • If someone searches for "user" only icons containing the word "user" show up. "Profile" does not even though it could represent a user.
  • If someone searches for "computer", 0 results show up, but "screen" looks like a computer and should show up.
  • If someone wants a dark mode icon, they may search "dark mode", but the "sun" and "moon" icons which can work as well don't show up. Css.gg itself uses the "sun" icon and not the "dark-mode" icon for the toggle.

Why this should be implemented

Very often, I will go to css.gg and search for an icon and I won't find any results, not because they aren't there, but because they only show up when you get the name exactly right.

Sometimes I need to make 4 or 5 searches to find an icon I'm looking for and many times I give up searching and look elsewhere.

Icon Request: IndieHackers

Hey Astrit. I am a huge fan of IndieHackers and would like to have an icon of it for a future web portfolio for myself. I've searched all I could and there is no other icon kit with a IH icon.

That would be great if you could add an IndieHackers icon to your kit.

SVG icons do not scale

The svg icons downloaded from the site do not scale with css properties height or width.
Please set the height and width properties inside the svg to 100% so it scales properly.
Affected platforms: anything which can display an svg

SCSS placeholders version

Hi there!
Thanks for building such a great tool :)

I was wondering if it were possible to have a SCSS version using placeholders instead of CSS classes. It would allow to @extend the icons instead of including all of them in our CSS. It would be a really great improvement for us as we could be able to include any of your awesome icons anytime without overcharging our final CSS with loads of unused selectors.

It shouldn't be that hard to do as the script would only have to replace .gg- by %gg-.
The few keyframes would still be output in the CSS by SASS. The only way to clean them might be to use a postcss script like postcss-discard-unused because SASS does not allow to put keyframes in a placeholder. This tip could be added in the documentation.

What do you think?

Gradient has outdated syntax

The new syntax is like closest-side at 0 0 instead of 0 0, closest-side.

This will show up in users' terminals if they're using postcss-loader or any other package that does evaluation.

🚨 Before creating a new issue

Please take a moment to review this document in order to make the contribution
process easy and effective for everyone involved.

Following these guidelines helps to communicate that you respect the time of
the developers managing and developing this open source project. In return,
they should reciprocate that respect in addressing your issue or assessing
patches and features.

Using the issue tracker

The issue tracker is the preferred channel for bug reports,
features requests and submitting pull
requests
, but please respect the following restrictions:

  • Please do not use the issue tracker for personal support requests (use
    Stack Overflow or IRC).

  • Please do not derail or troll issues. Keep the discussion on topic and
    respect the opinions of others.

Bug reports

A bug is a demonstrable problem that is caused by the code in the repository.
Good bug reports are extremely helpful - thank you!

Guidelines for bug reports:

  1. Use the GitHub issue search — check if the issue has already been
    reported.

  2. Check if the issue has been fixed — try to reproduce it using the
    latest master or development branch in the repository.

  3. Isolate the problem — create a reduced test
    case
    and a live example.

A good bug report shouldn't leave others needing to chase you up for more
information. Please try to be as detailed as possible in your report. What is
your environment? What steps will reproduce the issue? What browser(s) and OS
experience the problem? What would you expect to be the outcome? All these
details will help people to fix any potential bugs.

Example:

Short and descriptive example bug report title

A summary of the issue and the browser/OS environment in which it occurs. If
suitable, include the steps required to reproduce the bug.

  1. This is the first step
  2. This is the second step
  3. Further steps, etc.

<url> - a link to the reduced test case

Any other information you want to share that is relevant to the issue being
reported. This might include the lines of code that you have identified as
causing the bug, and potential solutions (and your opinions on their
merits).

Feature requests

Feature requests are welcome. But take a moment to find out whether your idea
fits with the scope and aims of the project. It's up to you to make a strong
case to convince the project's developers of the merits of this feature. Please
provide as much detail and context as possible.

Pull requests

Good pull requests - patches, improvements, new features - are a fantastic
help. They should remain focused in scope and avoid containing unrelated
commits.

Please ask first before embarking on any significant pull request (e.g.
implementing features, refactoring code, porting to a different language),
otherwise you risk spending a lot of time working on something that the
project's developers might not want to merge into the project.

Please adhere to the coding conventions used throughout a project (indentation,
accurate comments, etc.) and any other requirements (such as test coverage).

Follow this process if you'd like your work considered for inclusion in the
project:

  1. Fork the project, clone your fork,
    and configure the remotes:

    # Clone your fork of the repo into the current directory
    git clone https://github.com/<your-username>/<repo-name>
    # Navigate to the newly cloned directory
    cd <repo-name>
    # Assign the original repo to a remote called "upstream"
    git remote add upstream https://github.com/<upstream-owner>/<repo-name>
  2. If you cloned a while ago, get the latest changes from upstream:

    git checkout <dev-branch>
    git pull upstream <dev-branch>
  3. Create a new topic branch (off the main project development branch) to
    contain your feature, change, or fix:

    git checkout -b <topic-branch-name>
  4. Commit your changes in logical chunks. Please adhere to these git commit
    message guidelines

    or your code is unlikely be merged into the main project. Use Git's
    interactive rebase
    feature to tidy up your commits before making them public.

  5. Locally merge (or rebase) the upstream development branch into your topic branch:

    git pull [--rebase] upstream <dev-branch>
  6. Push your topic branch up to your fork:

    git push origin <topic-branch-name>
  7. Open a Pull Request
    with a clear title and description.

IMPORTANT: By submitting a patch, you agree to allow the project owner to
license your work under the same license as that used by the project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.