theme.json shipped a palette entry with the slug "text", so WordPress
generated `.has-text-color { color: var(--wp--preset--color--text)
!important }`. The block editor puts that same class on any block given a
custom text colour, so the rule overrode every one of them site-wide with
the dark-theme foreground, unreadable in either theme. An !important
declaration beats an inline style, which is why the colour set on the
block never had a chance.
Rename the slug to "foreground". No published content used the class, for
the obvious reason that it never worked, so nothing has to be migrated.
A smoke test now rejects any palette slug that shadows an editor utility
class.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
9 lines
148 B
CSS
9 lines
148 B
CSS
/*
|
|
Theme Name: CHRNX
|
|
Description: A native block theme for chrnx.dev.
|
|
Requires at least: 6.9
|
|
Requires PHP: 8.1
|
|
Version: 0.4.3
|
|
Text Domain: chrnx
|
|
*/
|