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.
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");
Using npm:
npm install language-colors
Using bower:
bower install language-colors
Using yarn:
yarn add language-colors
Add the script from the repository website.
<script src="https://kujitegemea.github.io/language-colors/language-colors.js"></script>
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>
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++
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>
-
CSS List of Programming Languages colors values. Foreground and Background
-
Browser JavaScript List of Programming Languages colors values
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
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.
MIT License (2019) Adewale Azeez