evidence-dev / evidence

Business intelligence as code: build fast, interactive data visualizations in SQL and markdown
https://evidence.dev
MIT License
4.49k stars 216 forks source link

[Themes] Implement `colorPalettes` and `colorScales` config #2729

Closed zachstence closed 2 weeks ago

zachstence commented 2 weeks ago

This PR implements the colorPalettes and colorScales themes config.

It also replaces chartColours and mapColours with the default color palette.

There are plenty of other places where we should use palettes and scales from config (e.g. DataTable), but I'm going to tackle those in a separate PR.

changeset-bot[bot] commented 2 weeks ago

⚠️ No Changeset found

Latest commit: 9bd8a8a29128af2f495f0ea71fa3f2733169dbd0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

zachstence commented 2 weeks ago

changeset?

Going into a feature branch so no need for a changeset here. Will have appropriate changesets on the final merge into next.