Color
color
is a utility for control color's value or status.
Introduction
Installation
Yarn
yarn add @pluginjs/color
NPM
npm i @pluginjs/color
Getting Started
CDN:
Development:
<script src="https://unpkg.com/@pluginjs/color/dist/color.js"></script>
Production:
<script src="https://unpkg.com/@pluginjs/color/dist/color.min.js"></script>
API
color
Parameters
| Name | Type | Description |
|||-|
| element | HTMLElement
| |
Returns
| Name | Type | Description |
|||-|
| element | HTMLElement
| |
matchString
Parameters
| Name | Type | Description |
|||-|
| string | String
| |
Returns
| Name | Type | Description |
|||-|
| isString | Boolean
| |
setDefaults
Parameters
| Name | Type | Description |
|||-|
| options | Options
| |
Browser support
Tested on all major browsers.
IE / Edge | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|
IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
License
@pluginjs/color is Licensed under the GPL-v3 license.
If you want to use @pluginjs/color project to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary.
For purchase an Commercial License, contact us purchase@thecreation.co.
Copyright
Copyright (C) 2022 Creation Studio Limited.