roots / palette-webpack-plugin

Generate a JSON file containing your color palette from existing Sass maps and/or Tailwind.
MIT License
46 stars 7 forks source link

Feature Request: `theme.json` palette support #23

Closed strarsis closed 2 years ago

strarsis commented 2 years ago

Terms

Summary

A theme theme.json is the new, best-practices standard for defining theme-specific settings (primarily used for the Gutenberg editor), including the palette.

Motivation

Why are we doing this?

The theme.json can (and should be) used for declaring the theme palette.

What use cases does it support?

All new themes (mainly tailored to Gutenberg) that declare the theme palette in theme.json.

What is the expected outcome?

Less config duplication. The usage of a standardized place for the theme palette.

Potential conflicts / foreseeable issues

When the option for adding/merging in more palettes besides from the theme.json is kept, there should be no conflicts or issues.

Additional Context

No response

retlehs commented 2 years ago

https://github.com/roots/sage/pull/2999 https://roots.io/automatically-generating-theme-json-from-tailwind-config/