Pure Angular color picker library.
Pure Angular color picker library.
The demo is available here. It currently showcases the Chrome, Sketch, Compact, Github and Swatches pickers, including ColorPickerControl actions and standalone usage.
22.0.0 release requires Angular 22; the demo includes compatibility information for previous releasesnpm install @iplab/ngx-color-pickerUse the following snippet inside your app module:
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:
Picker components expose CSS custom properties on their host element. This allows the appearance to be customized without targeting internal component markup:
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.This project uses Angular 22 and the Angular CLI.
git clone https://github.com/pIvan/ngx-color-picker.git
cd ngx-color-picker/
npm install
npm run startOpen "http://localhost:4200" in browser
We use SemVer for versioning. For the versions available, see the link to tags on this repository.
git clone https://github.com/pIvan/ngx-color-picker.git
cd ngx-color-picker/
npm install
npm run testWant 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.
ngx-color-picker is freely distributable under the terms of the MIT license.
No open issues yet, or sync has not completed.