# Tailwind Color Palette Preview not updating correctly

**URL:** <https://forum.pinegrow.com/t/tailwind-color-palette-preview-not-updating-correctly/5391>\
**Category:** Bug Reports\
**Created:** [June 29, 2021, 10:27am UTC](https://forum.pinegrow.com/t/tailwind-color-palette-preview-not-updating-correctly/5391 "2021-06-29T10:27:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BonoBoos](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@BonoBoos](https://forum.pinegrow.com/u/BonoBoos)\
**Post date:** [June 29, 2021, 10:27am UTC](https://forum.pinegrow.com/t/tailwind-color-palette-preview-not-updating-correctly/5391/1 "2021-06-29T10:27:04Z")

</div>

Hi Pinegrow! Really like the Tailwind UI in Pinegrow, especially adding my own colors AND naming convention on the fly!

I noticed a visual bug: when you select a color from the panel, and wish to update it’s color, it will automatically generate the ramp so you can ‘preview’ it.

But when you cancel the operation and return the color to it’s previous panel, the ramp still uses the last color you set before you cancelled. In this example the color PINK.

![Pinegrow_aF43GSTadi](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/7/78da6ee3e1526e1f81276e19b6b6ff254a0c6459.png)

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [June 29, 2021, 6:18pm UTC](https://forum.pinegrow.com/t/tailwind-color-palette-preview-not-updating-correctly/5391/2 "2021-06-29T18:18:22Z")

</div>

Hi @BonoBoos,  
Can you walk me through the steps that you are using to preview the shade generation on the existing color?  
Thanks,  
Bob

---

<div class="post-metadata">

**Author:** ![BonoBoos](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@BonoBoos](https://forum.pinegrow.com/u/BonoBoos)\
**Post date:** [June 29, 2021, 8:12pm UTC](https://forum.pinegrow.com/t/tailwind-color-palette-preview-not-updating-correctly/5391/3 "2021-06-29T20:12:50Z")

</div>

Surely!

Open Pinegrow (latest version)  
Open a project with Tailwind.css  
Open the Design Panel, ativate first  
Select a color from the palette  
Change the color with the color picker  
Instead of save, press cancel to revert to the original color

Result: you should see the generated ramp still using the last color you picked in the picker.

My best bet this is an update issue that doesn’t run when you cancel. The code should first set the color back to the original, then sample the ramp, then cancel picking a new color. That’s my instinct

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [June 29, 2021, 8:23pm UTC](https://forum.pinegrow.com/t/tailwind-color-palette-preview-not-updating-correctly/5391/4 "2021-06-29T20:23:15Z")

</div>

Hi @BonoBoos (I should set-up a hot key for this - typed it a lot today!!! 🙂 )  
Thanks for the report. I took a look and the other color palettes are still correct (Toolbar and Properties panel) so I guess it doesn’t propagate forward. It also reverts to normal if you close out the project and reload.  
Cheers,  
Bob
