0.1.13 • Published 2 years ago

sketch-icons v0.1.13

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Sketch-icons

Sketch icons is a completely open-source icon set with 600+ icons that makes it easy for individuals to utilise icons. The Sketch-icons Web Component is a simple and effective way to incorporate Sketch icons into your app. The component will dynamically load an SVG for each icon, ensuring that your app only requests the icons it requires.

npm yarn total downloads npm downloads

sketch-icons

Installation

npm i sketch-icons
# or
yarn add sketch-icons

Usage

import { PlayFill } from "sketch-icons";

class Icons extends React.Component {
  render() {
    return (
      <h2>
        Here's a <PlayFill />
      </h2>
    );
  }
}

Using CDN

If you want to use the icons in your project, you can use the CDN. Add the following cdn to your HTML file.

<link
  rel="stylesheet"
  type="text/css"
  href="https://unpkg.com/sketch-icons@0.1.13/dist/cdn/icons.css"
/>

Example

To utilize the pre-built icon from the sketch icons bundle, populate the class property on the i tag

<head>
  ...
  <link
    rel="stylesheet"
    type="text/css"
    href="https://unpkg.com/sketch-icons@0.1.13/dist/cdn/icons.css"
  />
  ...
</head>
<body>
  ...
  <i class="sk sk-alarm-fill"></i>
  ...
</body>

Using CSS Selector

You can change the properties of icon using the css selector. The selector is .sk- followed by the icon name.

.sk-alarm-fill {
  color: red;
  font-size: 35px;
}

Properties

PropertyAttributeDefault
colorcolor="color"#2A2238
heightheight={height}32
widthwidth={width}32
strokestroke="stroke-color"#2A2238
strokeWidthstrokeWidth="stroke-width"1.5
import { ArrowUpCircle, ArrowDown } from "sketch-icons";

class Icons extends React.Component {
  render() {
    return (
      <h2>
        Go Up <ArrowUpCircle height={100} width={100} />
        Move Down <ArrowDown stroke="blue" strokeWidth="0.1" color="#ffffff" />
      </h2>
    );
  }
}

How to Contribute Assets

Note : At this moment, we just ask that you place your icon in the assets folder and not to run build commands.

  1. Create an icon with color #2A2238 and strokeWidth of 1 or 1.5.
  2. Export your icon to svg format.
  3. Place your assets in the assets/simple folder.
  4. Similarly if the icon is colored place it in assets/color folder.
  5. Add your asset in icon_list.
  6. Submit a Pull Request with title [Icon request]
  7. Your asset will be added to the list.

Icon Description

Icon TypeFile nameSizeColor
Normalicon-name.svg28 x 28#2a2238
Circleicon-name-circle.svg28 x 28#2a2238
Filledicon-name-fill.svg28 x 28#2a2238
Coloricon-name-color.svg28 x 28colors

Note : Ensure that the names of the icons do not conflict with those that already exist.

Icons List

Click here to see all sketch-icons

Changelog

Check here for CHANGELOG

Contributing

Please see CONTRIBUTING GUIDELINES

Code of Conduct

Please read the CODE OF CONDUCT

Versioning

Refer Versioning

Contributors

ND RohithAravind SwaminathanND RevanthGarudaTechDevSM LogsubramaniThanushraamRAM SOLAIAPPAN

Color icons credits : Jenish Lunagariya under CC BY 4.0

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7-beta.2

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1-beta.4

2 years ago

0.0.1-beta.3

2 years ago

0.0.1-beta.2

2 years ago

0.0.1-beta.1

2 years ago

0.0.12-beta.7

2 years ago

0.0.12-beta.6

2 years ago

0.0.12-beta.5

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago