Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/city-of-helsinki/hel-icons

City of Helsinki style icon library
https://github.com/city-of-helsinki/hel-icons

icon-pack svg-icons

Last synced: about 1 month ago
JSON representation

City of Helsinki style icon library

Awesome Lists containing this project

README

        

# Helsinki SVG icons

City of Helsinki brand identity icon set.

## Installation

```
npm install hel-icons
```
you only need hel-icons.svg file.

## How to use

Insert icon in inline content.
```

```

To make sure icons appear correct size depending on context include this default to styles
```

.icon {
width:1em;
height:1em
}

```

## Accessibility

### Decorative icon
When icon is used for decoration or emphasis it should be hidden from screen readers with `aria-hidden=true`

### Interactive icon without text
When the icon is used without explanatory text as purely visual cue in UI you should provide a screen reader -friendly aria-label. In interactive elements this should be included in the wrapping `` or `` element.
```





```
### Informative icon without text
When icon is not wrapped in interactive element, svg title can be used.
```

Book

```

## Browser support

This spritemap displays fine in Chrome, Safari 7.1+, Firefox, and Opera.

For extended browser support (Safari 6, IE 6+, and Edge 12) you should use [svg4everybody](https://github.com/jonathantneal/svg4everybody).

## Contribution

Clone the repository.

Install dependencies.

```
npm install
```

Add new svg files in `src/svg/`. For icon naming try to follow [Font Awesome](http://fontawesome.io) naming practices.

Compile svg sprite file.
```
grunt dev
```
View the test page on your browser in http://localhost:9090

## Further reading
- [Florens Verschelde: How to work with SVG icons](https://fvsch.com/code/svg-icons/how-to/)