百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

ngx-color-picker

> 编程语言
开源

纯粹的 Angular 颜色选择器库。

99 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

纯粹的 Angular 颜色选择器库。

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

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