Automatically assign colour style to objects AFTER the colour style has been defined

Is there a way to automatically assign colour styles to elements that share the same hex value as the defined colour style?

I create a box and fill it with #000000
I then separately (not on the box) define a colour style: White = #000000
The box is then automatically filled with colour style White rather than #000000

Hi there-- This plug in might have what you need:
Here is the youtube video for how to use it changing a local Palette:

Here is the plugin page in Figma Community:

Good luck

Thanks but that only appears to make alternative colour palettes which has nothing to do with what I’m asking!