Get started with color-name-list CDN
MIT licensed
Library maps color names to hex codes: color-name-list in JS.
Tags:- colors
- color
- names
- naming
Stable version
Copied!
How to start using color-name-list CDN
// Import the color-name-list library
import colors from 'https://cdn.cdnhub.io/color-name-list/10.20.2/colornames.umd.js';
// Create a select element for color names
const colorSelect = document.createElement('select');
document.body.appendChild(colorSelect);
// Get all color names from the library
colors.names.then((colorNames) => {
// Populate the select element with color names
colorNames.forEach((colorName) => {
const option = document.createElement('option');
option.value = colorName;
option.textContent = colorName;
colorSelect.appendChild(option);
});
});
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
All versions
10.0.0
10.0.1
10.1.0
10.10.0
10.11.0
10.12.0
10.13.0
10.14.0
10.15.0
10.16.0
10.17.0
10.18.0
10.19.0
10.2.0
10.2.1
10.20.0
10.20.1
10.20.2
10.20.3
10.21.0
10.22.0
10.23.0
10.24.0
10.24.1
10.24.2
10.25.0
10.25.1
10.26.0
10.26.1
10.27.0
10.28.0
10.28.1
10.3.0
10.4.0
10.5.0
10.6.0
10.6.1
10.6.2
10.7.0
10.8.0
10.8.1
10.9.0
*** 11.0.0
8.10.0
8.11.0
8.12.0
8.13.0
8.14.0
8.14.1
8.15.0
8.16.0
8.17.0
8.18.0
8.19.0
8.20.0
8.21.0
8.22.0
8.23.0
8.24.0
8.25.0
8.26.0
8.27.0
8.28.0
8.28.1
8.29.0
8.30.0
8.31.0
8.32.0
8.33.0
8.34.0
8.35.0
8.36.0
8.37.0
8.37.1
8.38.0
8.4.0
8.5.0
8.6.0
8.7.0
8.8.0
8.9.0
9.0.0
9.0.1
9.1.0
9.10.0
9.11.0
9.12.0
9.13.0
9.14.0
9.15.0
9.16.0
9.17.0
9.18.0
9.18.1
9.19.0
9.2.0
9.20.0
9.21.0
9.22.0
9.23.0
9.24.0
9.25.0
9.26.0
9.26.1
9.27.0
9.28.0
9.29.0
9.3.0
9.30.0
9.31.0
9.32.0
9.33.0
9.4.0
9.4.1
9.5.0
9.6.0
9.7.0
9.7.1
9.8.0
9.9.0
9.9.1