Installations
npm install ngx-colors
Developer Guide
Typescript
No
Module System
ESM
Node Version
16.14.2
NPM Version
8.19.2
Score
89.9
Supply Chain
97.1
Quality
77
Maintenance
100
Vulnerability
98.9
License
Releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (67.97%)
HTML (16.06%)
SCSS (13.63%)
JavaScript (2.34%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Download Statistics
Total Downloads
2,000,493
Last Day
643
Last Week
17,856
Last Month
77,223
Last Year
860,010
GitHub Statistics
MIT License
94 Stars
288 Commits
25 Forks
3 Watchers
3 Branches
7 Contributors
Updated on Feb 13, 2025
Bundle Size
56.40 kB
Minified
11.49 kB
Minified + Gzipped
Package Meta Information
Latest Version
3.6.0
Package Id
ngx-colors@3.6.0
Unpacked Size
742.63 kB
Size
258.88 kB
File Count
45
NPM Version
8.19.2
Node Version
16.14.2
Published on
May 12, 2024
Total Downloads
Cumulative downloads
Total Downloads
2,000,493
Last Day
56.1%
643
Compared to previous day
Last Week
-3.6%
17,856
Compared to previous week
Last Month
34.3%
77,223
Compared to previous month
Last Year
56.3%
860,010
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Peer Dependencies
4
ngx-colors
ngx-colors is a colorpicker component of angular with a material design style, allows users to select a color via text input (hexadecimal, rgba, hsla), choosing a preset color from the palette, or a color picker using the Hue, Lightness, and Alpha sliders.
Demo and documentation
Preview
Installation
Compatibility
Angular | Latest ngx-colors compatible |
---|---|
15 | Latest |
14 | 3.1.4 |
13 | 3.1.4 |
12 | 3.0.5 |
11 | 3.0.5 |
10 | 3.0.5 |
Npm
1npm install ngx-colors
Load the ngx-colors module in your app module:
1import { NgxColorsModule } from 'ngx-colors'; 2 3@NgModule({ 4 ... 5 imports: [ 6 ... 7 NgxColorsModule 8 ] 9})
Overview and usage
This library is composed of two parts:
- ngx-colors-trigger: This directive can be applied to any html element turning it into a trigger that when clicked will open the color picker
- ngx-colors: This component is a premade button that will display the selected color.
Use it in your HTML template with ngModel:
1<ngx-colors 2 ngx-colors-trigger 3 [(ngModel)]="color" 4></ngx-colors>
You can select just one format:
1<ngx-colors 2 ngx-colors-trigger 3 [(ngModel)]="color" 4 [format] = "'hex'" 5></ngx-colors>
Or you can choise some formats
1<ngx-colors 2 ngx-colors-trigger 3 [(ngModel)]="color" 4 [formats]="['hex','cmyk']" 5></ngx-colors>
Or with Reactive Forms:
1<form class="example-form"> 2 <ngx-colors 3 ngx-colors-trigger 4 style="display: inline-block; margin:5px;" 5 [formControl]="colorFormControl" 6 ></ngx-colors> 7</form>

No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 3/20 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/main.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/KroneCorylus/ngx-colors/main.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/KroneCorylus/ngx-colors/main.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/main.yml:22
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 13 are checked with a SAST tool
Reason
36 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-c75v-2vq8-878f
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-q9mw-68c2-j6m5
- Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99
- Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc
- Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx
- Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc
- Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp
- Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j
- Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj
- Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j
- Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986
- Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
- Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc
Score
2.6
/10
Last Scanned on 2025-02-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to ngx-colors
ngx-colors-v
A beautiful color picker for angular that let you choose from a color palette, using sliders (Hue, Lightness, Alpha sliders) or through text input(hex, rgba, hsla)
@kartik181197/ngx-colors
A beautiful color picker for angular that let you choose from a color palette, using sliders (Hue, Lightness, Alpha sliders) or through text input(hex, rgba, hsla)
ngx-pretty-checkbox
Quickly integrate pretty checkbox Components (checkbox, switch, radio button) with Angular
ngx-http-loader
Angular Loader or Spinner. Supports http interceptor, custom loader, complete custom template, title subtitle, colors, font size, filters urls, methods etc.