language-colors
v2.1.55
Published
GitHub programming languages color codes in CSS, NodeJS and Javascript
Downloads
36
Readme
language-colors.css
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
CSS List of Programming Languages colors values. Foreground and Background
Browser JavaScript List of Programming Languages colors values
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