WebKit Colors X11
Webkit colors X11 is a package that allows you to retrieve any standard X11 or X11 color adapted to HTML/CSS in RGB or Hexadecimal format. It aims to be simple, fast and supports all JS frameworks as well as Vanilla.
Table of Contents
Installation
yarn add @minedelve/webkit-colors-x11 -D
npm install @minedelve/webkit-colors-x11 --save-dev
Use
import getColor from "webkit-colors-x11";
[...]
const color = getColor('red', 'hex', 'x11');
// return color red to x11 on hexadecimal value.
const color = getColor('red');
// return color red to html on rgb.
const color = getColor('red', 'hex');
// return color red to html on hexadecimal.
const color = getColor('red', undefined, 'x11');
// return color red to x11 on rgb.
Core Team
License
Licensed under the MIT license.
Copyright © 2021-2023 Minedelve
We support these projects
Human.txt |