Debugging: the devtools overlay

An inspector in the page, built on what the dev server knows of every class. In dev only, unless the app asks for it in a build too (below). Install @cssints/devtools as a dev dependency of the app and turn it on:

export default defineConfig({ plugins: [cssints({ devtools: true })] });

Alt+Shift+C, or the cssints button in the bottom right corner, opens it. Hovering an element previews it, a click picks it; ↑ is the parent, ↓ the first child, ← and → the siblings; Esc stops picking, then closes. For the demo's action button, hovered in a 1300 px window, the panel shows:

button                                                   pick  ↑  ×
CLASSES BY CALL
src/components/Showcase.tsx:72 ↗
._1t8gqy5  padding: 0.5rem                                       _.a
._1r802m6  background-color: color-mix(…, black 15%)  :hover     _.b
._pb21ov   background-color: color-mix(…, black 30%)  @media (width >= 60rem) :hover   _.c
._tw1yer   outline: 2px solid var(--color-accent)  :focus-visible (not now)            _.b
PROPERTIES
background-color  color-mix(in oklab, var(--color-accent), black 30%)   ✓
  ._pb21ov:hover _.c  @media (width >= 60rem) :hover
  background-color: var(--color-accent) ._ijw0jd _.a                    (struck through)
  background-color: color-mix(…, black 15%) ._1r802m6:hover _.b         (struck through)
outline  nothing applies now
  outline: 2px solid var(--color-accent) ._tw1yer:focus-visible _.b  :focus-visible
TOKENS
--color-accent  rgb(29, 78, 216)  color.accent
  the initial value of its @property