allternit-ai) uses a set of animated controls from Arc for buttons, form fields, tabs, sheets, toasts, progress and similar parts. Desktop, the ai.allternit.com phone layout and the m.allternit.com PWA build from the same source, so a component swapped in once shows on all three.
Where the code lives
src/main.tsx (web and Desktop) and src/fabric-session/main.tsx (PWA) import arc-theme.css right after src/design/theme.css.
Arc’s free components are MIT licensed. Keep the license header at the top of each vendored file. The Pro tier is not used.
Theme tokens
Arc styles read only--arc-* variables. Arc’s own names (--background, --border, --space-2 and others) collide with ours, because we keep shadcn HSL triples under --background and --border. The vendoring step therefore renames every foundation token to --arc-*. The end of arc-theme.css maps them to our tokens:
- Surfaces and text use the neutral polish set:
--polish-card,--polish-text,--polish-text-2,--polish-text-3and--polish-hairline. New UI stays white plus--neutral-fill, never tan. - Selected switches, checks and slider fills use
--settings-switch-on. - Success, warning and danger use
--status-success,--status-warningand--status-error. - Fonts use
--font-sans. Radii are 10 / 14 / 18 px, and control heights are 30 / 36 / 44 px. - Dark mode follows
[data-theme="dark"], the graphite palette.
React 18 shims
Arc targets React 19, and the app runs React 18.3.src/components/arc/lib/react18.ts provides two shims:
useEffectEvent: a stable callback that always sees the latest props. It replaces the React 19.2 hook of the same name.arcInert(on): returns{ inert: "" }or nothing. React 18 drops a booleaninertprop, so vendored code spreads{...arcInert(x)}in place ofinert={x}.
Preview gallery
preview-uiarc.html shows every place an Arc component is used, as Today next to With Arc, on desktop and on phone, in light and dark. It is a dev page and not a rollup input of the app build.
- Run
npx vite --port 5431. - Open
http://localhost:5431/preview-uiarc.html. Add?area=<id>&side=arc&theme=darkto see one area on its own. - To check every area for console errors, render errors and phone overflow, run
node src/dev/uiarc/check.mjs [id-prefix ...]while the dev server runs. - To build the gallery as one shareable file, run
npx vite build -c src/dev/uiarc/vite.uiarc.config.ts, thennode src/dev/uiarc/inline.mjs. The result isdist-uiarc/arc.html.
Area record in src/dev/uiarc/areas/. It names the real file the change lands in, the surfaces that show it and what changes for the user.
Adding an Arc component
- Fetch the component from
https://uiarc.dev/r/<name>.json, which is shadcn registry format. - Write its files under
src/components/arc/. Rename foundation tokens to--arc-*, and replaceuseEffectEventandinertwith the shims. - Add one area per real placement to the gallery, then run the checker in light and dark.
- Swap the component into the real file and wire it to the state and handlers that already exist there.
Shared parts draw Arc
The shared parts insrc/components/ui/ render Arc, so every screen that uses them gets Arc without its own change:
Arc controls set a minimum height. A caller that sets its own height or size (
h-8, h-[30px], size-7) gets that size: arcHeightOverride() in src/lib/utils.ts drops the minimum.
The production build loads Arc styles after Tailwind, so Arc’s colours, borders and padding win over a screen’s own classes for those properties. Layout classes (width, margin, flex) still apply. Native selects are 36 px tall by default.
Arc’s free set has no switch, checkbox, slider or tooltip, so switch.tsx, checkbox.tsx, slider.tsx and tooltip.tsx stay as they are.
Deleting from a rail menu
Conversations delete withRailHoldDelete (src/shell/rail/RailHoldDelete.tsx), the Arc hold-to-confirm button sized to menu rows. Holding it is the confirmation, so no dialog opens. It is in the ⋯ menus of rail rows (recent chats, Code sessions, items inside a project), the Code threads list, the Cowork and Code session headers, the floating Code session menu, the phone pane menu (PhonePaneAction.hold) and the phone Code sheet. Bot Hub cards use it for Delete bot, the same as the bot’s own menu.
In code-session-actions.tsx, the Delete item has hold and no run, so onDelete deletes right away. Its D shortcut opens the menu on the hold button; a key press never deletes. Other single-item destructive actions follow the same rule: in a menu, hold to confirm; on a row or card, Arc ConfirmMorph, which asks in place and shows Retry if the action fails. That covers the bot task picker, Native agent sessions, a bot’s virtual computer, discarding code changes, model endpoints, scheduled jobs, swarm templates and tasks, nodes, runtimes, policies, checkpoints, assets, plugin uninstall, infrastructure (VPS connections, SSH keys, environments, instances), agents, automation tasks, terminal files and Customize items. No single-item delete uses window.confirm or a dialog.
Deleting a whole project still opens a dialog, because it also unassigns the project’s tasks and that needs to be read first.
The full-screen drop target (GlobalDropzone) uses Arc file-dropzone styling from GlobalDropzone.module.css, so it follows light and dark mode.
Not adopted
- Calendar, Date picker, Date range picker: the routines calendar we already have does more.
- Onboarding checklist in the connect wizard: each Arc checklist step has its own tick box. The wizard’s steps follow the real connection state, so a step someone can tick by hand would show progress that never happened. The wizard keeps its read-only list.
- Context menu: a click on a row or card opens it directly. Actions do not hide behind right-click or hover. Secondary actions go in a visible button, or in swipe actions on the phone.