Documentation: Clarify best practices surrounding color palette names #14989
Labels
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Status] In Progress
Tracking issues with work in progress
[Type] Developer Documentation
Documentation for developers
Related:
Current documentation: https://github.com/WordPress/gutenberg/blob/master/docs/designers-developers/developers/themes/theme-support.md
The
editor-color-palette
theme supports enable a theme developer to specify a custom color palette for their themes. Each color should include aname
,slug
, andcolor
values.The current documentation neither describes each value, nor importantly does it set clear guidelines around the purpose a
name
should fulfill in providing human-friendly (and accessible) labels describing the color.Per the related ticket, it may be good to include guidance around dynamic values (such as those sourced from a site option). For example, while not all dynamic values could be described programmatically, it may be advisable to provide meaningful names for at least the default values when applicable.
The text was updated successfully, but these errors were encountered: