outl1ne / nova-color-field

A Laravel Nova package that adds a color picker to Nova's arsenal of fields.
MIT License
25 stars 13 forks source link

Is there any way to customize swatches pallete? #17

Closed holubar closed 2 years ago

holubar commented 2 years ago

I would like to load pallete of tailwind colors into swatches tool but it does not work. Only mode where I can load my pallete is "simple". Is there any workaround to use this field and customize swatch mode?

Tarpsvo commented 2 years ago

You can customize the palette when using ->swatches() like so:

`->palette([
  ['#fff', '#000'],
  ['#e69', '#123'],
])`
holubar commented 2 years ago

works ❤️👍