My apologies I’m using the out-the-box swatches and it’s fine. If you’ve used a swatch plug-in then the code above won’t work. So just delete it from functions if you’ve added it.
I’m doing hundreds of edits to a theme so use functions where possible as plugins are a pain when there’s updates so we avoid them at all costs.
Good luck. 🍻
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.