Giter Site home page Giter Site logo

shadoath / language-icons Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anandchowdhary/language-icons

0.0 0.0 0.0 219 KB

๐Ÿˆน Better icons for languages, because flags just don't cut it

Home Page: https://anandchowdhary.github.io/language-icons/

License: MIT License

TypeScript 100.00%

language-icons's Introduction

๐ŸŒ Language icons

NPM Icon size Build Type definitions GitHub Vulnerabilities

Flags are not languages, so we shouldn't use country flags as language icons.

You can use these icons instead.

They are generated using the language's ISO 639-1 code, combined with some colors. Colors are flag-inspired. For example, green/red for Portuguese, and they fallback to blue for unknown colors. If you want to color a currently blue icon, edit the colors.json file and make a pull request.

Each icon is an SVG, around 300 ยฑ 10 bytes.

๐Ÿ–ผ๏ธ Usage

You can use a CDN like Unpkg to embed a flag icon:

https://unpkg.com/language-icons/icons/LANGUAGE_CODE.svg

In HTML, for example:

<img alt="English" src="https://unpkg.com/language-icons/icons/en.svg">

Icons are also available on NPM:

npm install language-icons

They are in the ./icons folder, you can use an SVG loader to import them:

import English from "./node_modules/language-icons/icons/en.svg"

โญ Why

Example of flags versus language icons

๐ŸŽจ Icons

See the list of icons: https://unpkg.com/[email protected]/icons/

English Hindi Portuguese German French Chinese Spanish Dutch Urdu

โš’๏ธ Building

Install Typescript dependencies and build icons using the npm run build command.

๐Ÿ“ License

Icons and code, both MIT

language-icons's People

Contributors

anandchowdhary avatar oiyouyeahyou avatar kera-cudmore avatar shadoath avatar imgbotapp avatar maheshde2528 avatar nesjett avatar barbeque-squared avatar

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.