Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

ngx-color-picker

> 编程语言
Open source

Pure Angular color picker library.

99 stars0 likes1 views
WebsiteGitHub

About

Pure Angular color picker library.

ngx-color-picker

Pure Angular color picker library.

Demo

The demo is available here. It currently showcases the Chrome, Sketch, Compact, Github and Swatches pickers, including ColorPickerControl actions and standalone usage.

Description

  • It's an Angular color picker
  • The current 22.0.0 release requires Angular 22; the demo includes compatibility information for previous releases
  • The demo application uses Angular 22 and standalone bootstrap
  • No external dependency
  • Simple to configure
  • Easy to use

Tested with

  • Firefox (latest)
  • Chrome (latest)
  • Chromium (latest)
  • Edge

Use in an Angular application

bash
npm install @iplab/ngx-color-picker

Use the following snippet inside your app module:

typescript
import { ColorPickerModule } from '@iplab/ngx-color-picker';
...
...

@NgModule({
    imports: [
        BrowserModule,
        ColorPickerModule
    ],
    bootstrap: [AppComponent]
})
export class AppModule {}

The demo application itself uses standalone bootstrap with bootstrapApplication.

Use the following snippet inside your template:

xml

Theming

Picker components expose CSS custom properties on their host element. This allows the appearance to be customized without targeting internal component markup:

scss
my-settings chrome-picker {
    --ngx-color-picker-surface: #202124;
    --ngx-color-picker-border: #4b4d52;
    --ngx-color-picker-border-radius: 8px;
    --ngx-color-picker-shadow: 0 8px 24px rgb(0 0 0 / 25%);
    --ngx-color-picker-divider: #4b4d52;
    --ngx-color-picker-input-color: #d7d9dc;
}

Available theme properties include

--ngx-color-picker-width,
--ngx-color-picker-surface,
--ngx-color-picker-border,
--ngx-color-picker-border-radius,
--ngx-color-picker-shadow,
--ngx-color-picker-divider,
--ngx-color-picker-control-border,
--ngx-color-picker-input-label-color,
--ngx-color-picker-input-color,
--ngx-color-picker-input-secondary-color,
--ngx-color-picker-input-border-color
--ngx-color-picker-pencil-color,
and
--ngx-color-picker-pointer-shadow.

Developing

Built With:

  • Angular
  • RxJS

Setting up Dev

This project uses Angular 22 and the Angular CLI.

bash
git clone https://github.com/pIvan/ngx-color-picker.git
cd ngx-color-picker/
npm install
npm run start

Open "http://localhost:4200" in browser

Versioning

We use SemVer for versioning. For the versions available, see the link to tags on this repository.

Tests

bash
git clone https://github.com/pIvan/ngx-color-picker.git
cd ngx-color-picker/
npm install
npm run test

Contributing

Want to help?

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our contributing guide and then check out one of our issues.

Licensing

ngx-color-picker is freely distributable under the terms of the MIT license.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言