CSS-variable-based theming for callout colors
N
Nutmeg Porpoise
Callout colors are currently applied as inline styles on each callout element. Because inline styles take priority over external CSS, anyone writing custom CSS to restyle callouts must add !important to every property, which increases the risk of CSS conflicts and makes the override brittle if the underlying markup changes.
Expose callout colors through CSS custom properties (CSS variables) set at a stylesheet level, rather than as inline styles on each callout element, so that custom theming can override them with standard CSS specificity rather than requiring !important.
Benefit: Site administrators could restyle callouts using ordinary CSS rules, reducing the chance of styling conflicts and making custom themes easier to maintain across updates.
Log In
I
Institutional Magpie
We want to use Callouts for (information / attention / danger) safety notices. Being able to style the 4 existing presets for the "Callout" element in the custom CSS would make it easier to use the easily accessible presets instead of having to style each callout separately until it conforms to our design specs for safety notices.