Reach for the semantic keys before a descendant selector: root, icon, section, title, description, actions, close. A part with a key keeps its name across versions, and a part reached by class name may not.
strong keeps its fill over your classes. A background class in className does not override emphasis="strong", and a text color class only wins in light mode. To color an alert yourself, leave emphasis at default.
- emphasis="default" adds no classes, so yours always apply. Pick it when the fill has to be yours.
- emphasis="subtle" gives way to your background and text classes too.
- emphasis="strong" always keeps its fill over a bg-* class. A text-* class wins in light mode and loses in dark mode.
- Use theme colors, not literals. The neutral default type at strong inverts between modes with no dark: rule, because its fill and text colors already invert with the theme.