You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we want to remove the default colors, we can do so with settings.color.defaultPalette : false in the theme.json
But, if we want to still have access to the black or white colors for example by including these in the theme's color palette, they are not available as of #36811
I don't quite understand the reasoning behind blocking themes from defining colors with the same slug as a default color, if the theme is removing the default palette. Black and white are elementary basic colors that a theme may want to use, whilst at the same time not using the other default core colors.
Now if we want to include a black or white color, we have to give it a different slug, but we shouldn't have to do this as it will lead to confusion.
Step-by-step reproduction instructions
Remove the default core color palette, and add a black color to the theme color palette, for example:
Description
If we want to remove the default colors, we can do so with
settings.color.defaultPalette
:false
in thetheme.json
But, if we want to still have access to the
black
orwhite
colors for example by including these in the theme's color palette, they are not available as of #36811I don't quite understand the reasoning behind blocking themes from defining colors with the same slug as a default color, if the theme is removing the default palette. Black and white are elementary basic colors that a theme may want to use, whilst at the same time not using the other default core colors.
Now if we want to include a black or white color, we have to give it a different slug, but we shouldn't have to do this as it will lead to confusion.
Step-by-step reproduction instructions
Remove the default core color palette, and add a black color to the theme color palette, for example:
Edit a post or global styles and notice the
black
color is not available for selection, even though the theme is defining it.Screenshots, screen recording, code snippet
No response
Environment info
Gutenberg 12.1.0
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: