Default Order
Use this order when deciding how to get a platinum.css style.
| Priority | Use | When | Example |
|---|---|---|---|
| 1 | Semantic HTML | The element already means the thing you are building. | <button>, <article>, <details> |
| 2 | Native or ARIA state | The UI state must be exposed to assistive technology. | disabled, aria-current, aria-invalid |
| 3 | ARIA role | No native element maps cleanly to the widget pattern. | role="tab", role="listbox", role="progressbar" |
| 4 | Variant class or data attribute | You are choosing a visual variant, not describing state. | class="secondary", data-variant="warning" |
| 5 | Layout helper | You need arrangement, spacing, or a page shell. | layout-sidebar, grid, stack, cluster |
| 6 | Theme token | The style should change everywhere consistently. | --primary, --button-face, --radius-3 |
| 7 | Custom CSS | The project has a new pattern outside the library. | .lesson-card, .billing-summary |