refactor: improve color fetching logic in getColor function
- Update getColor function to handle optional binding parameter for better flexibility.
- Enhance error handling and add multiple fetch targets, including local development and production APIs.
- Simplify color data retrieval process by iterating through potential fetch sources.