@minedelve/webkit-colors-x11
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

WebKit Colors X11

Minedelve Github Minedelve Discord

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.

github-banner

DDL_ALL  DDL_MONTHS  LICENSE  VERSION_X11COLOR  DISCORD_BADGE

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

Laurent Grimaldi

License

Licensed under the MIT license.

Copyright © 2021-2023 Minedelve

We support these projects

Human.txt

Package Sidebar

Install

npm i @minedelve/webkit-colors-x11

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

35.6 kB

Total Files

12

Last publish

Collaborators

  • nycolaide