UI primitives
src/components/ui.tsxButtons, form controls, messages, cards, native details, progress, and modal dialogs.
Real source files, reusable hooks, and a shared contract for people and agents.
src/components/ui.tsxButtons, form controls, messages, cards, native details, progress, and modal dialogs.
src/hooks/useLocalStorage.tsValidated local state, graceful storage errors, and explicit success feedback.
src/lib/tokens.tsAlias resolution, DTCG export, CSS custom properties, and WCAG contrast calculations.
import { Button, TextField } from "./components/ui";
export function WorkspaceForm() {
return (
<form onSubmit={handleSubmit}>
<TextField label="Workspace name" name="name" required />
<Button type="submit">Create workspace</Button>
</form>
);
}The component source lives in this repository and uses shared CSS in src/styles.css. A separately versioned package and installable registry will follow the UX Prototype import. There is no published npm package yet.
Implement the example submission handler, include the shared styles, and confirm the label, focus, error, and responsive behavior in your application context.