Selector lists
Selector lists: :is() and :where().
:is(.info, .ok, .warn, .error) writes one rule for four kinds of badge. :where() matches the same way but weighs nothing, so the defaults it sets lose to any other rule: .custom overrides :where(.badge) although it comes first in the stylesheet, where it would otherwise lose the tie.
Try it: hover the badges and Tab between them.
- Source file:
example/selector_lists.cpp - Standalone terminal: ⛶ Open Fullscreen
- Guide: Relevant Documentation
- ← Back to Examples Index

