-
Notifications
You must be signed in to change notification settings - Fork 0
FAQ
No. It is a CSS interaction primitive.
It gives you consistent surface behavior, but it does not ship prebuilt UI components, framework wrappers, or runtime logic.
Yes. The package is framework-agnostic and can be imported into any stack that can consume CSS.
No. The stylesheet does not declare global :root tokens. It resolves values inline through fallback chains instead.
No. The variant classes primarily tune brightness behavior. They are designed to sit on top of your own color tokens.
Yes. Use the package demo app at index.html.
It includes token editing controls and CSS import/export helpers so you can generate a token stylesheet without hand-editing every variable.
Yes. That is one of the intended use cases.
The primitive is meant to work across buttons, cards, icon controls, toggles, and similar interactive surfaces.
No. It only handles styling. State semantics such as toggling aria-pressed, keyboard behavior for non-semantic elements, and application logic remain your responsibility.
It adjusts the primitive for compact icon controls and enforces a minimum 44px hit target.
Because the primitive owns motion on the host node. Additional transforms on the same element can conflict with built-in hover and press behavior.
The repository includes Playwright coverage for Chromium, Firefox, and WebKit.