language-colors

2.1.55 • Public • Published

language-colors
language-colors.css

Travis (.org) npm GitHub repo size GitHub contributors Twitter Follow

GitHub programming languages color codes in CSS, NodeJS and Javascript. Base on GitHub linguist (https://github.com/github/linguist)

The colors are auto updated weekly from Travis CI. All the colors can be viewed here.


Table of content

Installation

CSS

Add the style-sheet from the repository page.

<link rel="stylesheet" href="https://kujitegemea.github.io/language-colors/language-colors.css"> 

Load the style-sheet from within another css file

@import url("https://kujitegemea.github.io/language-colors/language-colors.css");

NodeJS

Using npm:

npm install language-colors

Using bower:

bower install language-colors

Using yarn:

yarn add language-colors

Browser

Add the script from the repository website.

<script src="https://kujitegemea.github.io/language-colors/language-colors.js"></script>

Usage

CSS

Set as foreground color

<span class="color-c">this is the color of C</span>

Set as background color

<span class="bg-color-c">this is the background color of C</span>

NodeJS

All the colors are exported in lowercase and some invalid characters is changed to conform with JavaScript identifier naming rules. The colors are exported as the color objects.

const LanguageColors = require("language-colors")

console.log(LanguageColors.c); //ANSI C
console.log(LanguageColors.cpp); //C++

Browser

All the colors are exported in lowercase and some invalid characters is changed to conform with JavaScript identifier naming rules. The colors are exported as string values.

<script src="https://kujitegemea.github.io/language-colors/language-colors.js"></script>
<script>
console.log(LanguageColors.c); //ANSI C
console.log(LanguageColors.cpp); //C++
</script>

Wiki

Contributing

There is really nothing to contribute here, the source for the nodejs, pure js and css files is auto generated by the powershell script language-colors.ps1. Only PR on language-colors.ps1 is accepted if it really needed.

The release on github, npm registry and github page is automated using Travis-CI apis. No human input is really needed. The source files are updated weekly and new build are released also every month.

If any issue or bug is detected you can open an issue here.

Whatever changes you made to the auto generated sources will be over written by Travis-CI update push.

The following files are auto generated

  • language-colors.css
  • language-colors.js
  • index.js
  • docs/language-colors.css
  • docs/language-colors.js

Support

Support

You can support some of this community as they make big impact in the traing of individual to get started with software engineering and open source contribution.

You can make big difference.

License

MIT License (2019) Adewale Azeez

Readme

Keywords

Package Sidebar

Install

npm i language-colors

Weekly Downloads

24

Version

2.1.55

License

MIT

Unpacked Size

24.3 kB

Total Files

3

Last publish

Collaborators

  • thecarisma