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
Today
Currently, duotone definitions in theme.json cannot reference CSS variables such as var(--wp--preset--color--primary). Duotones only accept hard-coded color values, which prevents themes from using global presets or adapting to changes introduced by style variations.
This means that a duotone filter must always remain static, even when theme colors are updated elsewhere.
Desired Future
It should be possible for duotone filters to use CSS custom properties—especially preset colors defined in theme.json. This would allow duotones to automatically adapt to each style variation and remain consistent with the theme’s color system.
Why this matters
• Enables dynamic duotone behavior across style variations
• Keeps filters visually aligned with theme palettes
• Reduces hard-coded values and increases flexibility
• Matches how other color-based features already work in Global Styles
Activity
yankiara commentedon Dec 21, 2025
I highly support this, thanks for opening!
Also, sorry if obvious, but support for oklch or any other CSS color function is essential.
hanneslsm commentedon Jan 6, 2026
I'm closing this issue as a duplicate of #33905