PHP Classes

PHP Hex Color Value Enum: Retrieve color values used in CSS stylesheets

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 66 All time: 10,372 This week: 488Up
Version License PHP version Categories
hex-colors 1.0MIT/X Consortium ...8.1HTML, Graphics
Description 

Author

This package can retrieve color values used in CSS stylesheets.

It provides several enumeration definitions with constant values that associate names with color values in hexadecimal format.

Currently, it provides enumeration definitions for:

- Constant color values used in all browsers

- Color values used by BootStrap and Tailwind CSS libraries

A package with CSS Enum colors and Tailwindcss Enum colors as Hex color.

Innovation Award
PHP Programming Innovation award nominee
September 2023
Number 4
In Web browsers, colors can be referred to using the numeric values of the component color values, like in hexadecimal or by the respective names.

The popularity of CSS frameworks like Bootstrap and Tailwind has increased the number of colors developers may want to use in their site pages.

Humans usually prefer to use names rather than numbers to refer to objects because names are easier to remember.

This package provides sets of enumeration definitions for colors used by default browsers, Tailwindow or Bootstrap.

This way, developers can refer to any of those colors by name rather than by color values.

Manuel Lemos
Picture of Angel Campos
Name: Angel Campos <contact>
Classes: 9 packages by
Country: Spain Spain
Innovation award
Innovation award
Nominee: 4x

 

Documentation

hex-colors

A package with CSS Enum colors.

At the moment, those are the colors included.

  • Bootstrap colors.
  • Browser default HTML/CSS colors.
  • Tailwindcss colors.

  Files folder image Files (32)  
File Role Description
Files folder imagesrc (3 directories)
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file CODE_OF_CONDUCT.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:66
This week:0
All time:10,372
This week:488Up