Socket
Socket
Sign inDemoInstall

color-elements

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    color-elements

A set of web components for working with color. A Color.js project.


Version published
Maintainers
1
Created

Readme

Source

Color Elements

These are some highly experimental color-related web components. Use at your own risk, the API can change at any point.

Usage

CDN

To include all components at once:

<script src="https://elements.colorjs.io/index.js"></script>

To cherry-pick individual components, follow the instructions within the component’s page, but it generally looks like this:

<script src="https://elements.colorjs.io/src/COMPONENT_NAME/COMPONENT_NAME.js"></script>

Each component imports its own dependencies and styles.

NPM

As usual:

npm i color-elements

and then:

import "color-elements";

You can also import individual components:

import "color-elements/COMPONENT_NAME";

All elements

  • <color-picker>
  • <color-slider>
  • <channel-slider>
  • <color-swatch>
  • <color-inline>
  • <color-gamut>

Upcoming:

  • <color-plane>

Keywords

FAQs

Last updated on 15 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc