A multi-style component library for Invar, written in pure Pion. It reimplements the interactions of the 259 components of the Arc catalogue natively, on Invar's fine-grained signals, headless behaviours, motion and GPU renderer. Nothing is ported from web sources: each component is rebuilt from its published interaction, keyboard, accessibility and motion specification.
The pictures above are the showcase (packages/arc_showcase), drawn at 2x by Invar's native renderer: the seven
categories with a search over every component, a theme console (light / dark, 8 accents, compact / comfortable
density, reduced motion) that drives the whole page, live components of each category and the index of all 259. Run
it with $PIONC run packages/arc_showcase_app.
Status: 259 / 259 components (100 %). Every category is complete: Actions 20 / 20, Inputs 43 / 43 (inputs,
pickers and the rich text editor), Disclosure 17 / 17, Feedback 12 / 12, Data 44 / 44 (data display and charts),
Text 5 / 5, and Special 118 / 118 (SlotText, 30 AI components, 30 AI, growth and diagram components, 15 effects, 32
navigation, glass, gallery and motion surfaces, 3 components in real 3D perspective, 5 GPU shader components and 2
microphone components). Every component is tracked in catalog/components.json (summary
in catalog.json and llms.txt). The workspace is twenty micro-packages with 888
ui::Tester unit tests (keyboard, pointer, state, disabled paths and Invar's craft audit, light and dark), plus two
packages outside it that link the native host: the showcase app arc_showcase_app and the offscreen evidence package
arc_shots.
| Category | Done | Packages |
|---|---|---|
| Actions | 20 / 20 | arc_actions |
| Inputs | 43 / 43 | arc_inputs (21), arc_pickers (21), arc_richtext (1) |
| Disclosure | 17 / 17 | arc_disclosure |
| Feedback | 12 / 12 | arc_feedback |
| Data | 44 / 44 | arc_data (24), arc_charts (20) |
| Text | 5 / 5 | arc_text |
| Special | 118 / 118 | arc_text (SlotText), arc_ai (30), arc_ai_extras (30), arc_fx (15), arc_surfaces (32), arc_showcase_fx (3), arc_shaders (5), arc_audio (2) |
| All | 259 / 259 (100 %) |
Each wave's overview, drawn by arc_shots:
| Light | Dark |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Package | What it holds |
|---|---|
arc_tokens |
Theme mode, 8 accents, density, the semantic palette (light and dark × 8 accents), type / space / radius scale, motion presets (motion::Spec), and the theme_ctx (ui::Context[ArcTokens]) with <ArcProvider> |
arc_parts |
The parts every micro-package shares: number helpers, live_getter, tokens_now, label text and its measure, focus_outline, press_scale, fades and springs, spinner, check_mark, and ArcTask (what async handlers are handed) |
arc_actions |
Button, ActionButton, SplitButton, ButtonGroup, FloatingButtonGroup, ExpandingButtonGroup, CopyButton, ActionSwap, IconMorph, ConfirmMorph, HoldToConfirm, SwipeActions, Reactions, DropdownMenu, ContextMenu, UserMenu, ThemeSwitch (+ Eclipse, Split, Rise, ThemeTransition) |
arc_text |
TextReveal, InViewTitle, TextMorph, TextShimmer, WaveText, SlotText |
arc_feedback |
Alert, Toast, ToastStack (+ ToastStackProvider, ArcToaster), AnnouncementBar, CookieConsent, UndoToast (+ UndoToastRow, UndoToastRowAction), Progress, Skeleton, Stepper, Countdown, UsageMeter, OnboardingChecklist |
arc_pickers |
Checkbox, RadioGroup, Switch, SegmentedControl, Rating, ToggleGroup, Slider, ElasticSlider, RangeHistogramSlider, RulerSlider, WindowRange, LensRange, Calendar, DatePicker, DateRangePicker, TimePicker, ColorPicker, EmojiPicker, SignaturePad, FileDropzone, AvatarUpload (dates are headless_core::CalDate) |
arc_disclosure |
Tabs, Breadcrumb, MegaMenuMorph, TocProgress, ScrollArea, Accordion, ExpandableCard, ResizablePanels, ExpandableText, Dialog, Drawer, BottomSheet, Popover, HoverCard, Tooltip, ShareAccess, ConfirmPopover |
arc_inputs |
Input, Textarea, PasswordField, PasswordStrength, SearchField, ExpandingSearch, InlineEdit, NumberField, MoneyInput, PhoneInput, ScrubInput, TagInput, MentionInput, ShortcutRecorder, Select, Combobox, MultiSelect, MorphSelect, ChipGroup, RadioCards, BillingToggle |
arc_richtext |
RichTextEditor |
arc_data |
Pagination, Avatar, AvatarGroup, Badge, PresenceStack, Card, MetricCard, EmptyState, MetricTicker, AnimatedCounter, DataGrid, SortableDataTable, TreeTable, TreeView, ReorderableList, FilterToolbar, CodeBlock, JsonViewer, Timeline, CommentThread, ChatThread, ImageCompare, Carousel, CardStack |
arc_charts |
LineChart, BarChart, DonutChart, Streamgraph, BrushChart, WaffleChart, SlopeChart, Sparkline, Gauge, ActivityHeatmap, Ridgeline, Treemap, SplitBar, Beeswarm, Sunburst, SankeyFlow, FunnelChart, RadarChart, RealtimeStream, RaceBarChart |
arc_ai |
AgentStatus, ToolCall, AgentPlan, AgentTimeline, ContextWindow, ReasoningBlock, SourceCards, ModelCard, AiWorkflow, CodeSuggestion, GhostText, ImageGeneration, DictationButton, SpeechPlayer, MeetingSummary, ReplyDraft, AgentHandoff, PiiRedaction, ResponseFeedback, LlmCostCalculator, ProviderKeys, GenerationStats, AiTranslate, TldrToggle, ConnectorSetup, SmartFormFill, EnrichColumn, TicketRouter, AskYourData, AgentCursor |
arc_ai_extras |
ProviderStatus, TrainingRun, AiCommand, StarterPrompts, AiMascot, ImageReveal, AiSpark, PixelMascot, GhostMascot, CubeMascot, ToneTuner, UpgradePrompt, ReferralCard, TrialBanner, TeamSwitcher, LiveVisitors, SocialProofToast, InstallSnippet, and the diagrams DataFlow, PaymentFlow, DnsResolution, ModelTraining, MultiRegionFailover, VectorSearch, BranchGraph, AgentLoop, MixtureOfExperts, SpeculativeDecoding, PromptCache, ReasoningTree |
arc_fx |
CelebrateButton, SlideToConfirm, ChargeSession, ArmingSwitch, PadlockToggle, DotMatrixLoader, StickerPeel, TicketTear, OrbitLogos, PrizeWheel, DotGrid, ImageTrail, GravityWell, GestureOnboarding, CursorTrailDraw |
arc_surfaces |
ShareSheet, ActionMorph, MorphNav, Dock, LiquidTabBar, OrbitMenu, GooeyMenu, GlassMenu, GlassSegmented, GlassCard, GlassTabBar, SheetStack (+ Sheet, SheetTrigger), WalletStack, ControlCenter, CardToArticle, LinkUnfurl, ProductGallery, LightboxGallery, PhotoGrid, InfiniteMoodboard, NowPlaying, BookingPill, ActivityRings, TimeDial, DateReel, KeycapKeyboard, CodeMagicMove, TypewriterTerminal, StretchRefresh, FeedbackMorph, MorphLoader, SkeletonMorph (+ MorphBlock) |
arc_showcase_fx |
Components in real 3D perspective (ui::perspective_3d, ui::perspective_strips): HoloCard, CoverFlow (+ cover_item), PageCurl |
arc_shaders |
Components on custom GPU fragment shaders (ui::CustomShader, ui::ShaderTarget): InkFluid, GradientMesh, BlackHole, SpoilerDust (+ Spoiler, SpoilerText), SandText |
arc_audio |
The microphone components on ui::MicStream: VoiceOrb (+ VoiceTranscript, VoiceControls, VoiceMode), VoiceRecorder (+ voice_message, voice_peaks) |
arc |
The facade: every tag behind one import |
arc_showcase |
The showcase page (showcase_page, <ShowcasePage>): navigation and search over the generated catalogue index, the theme console, live previews per category |
arc_showcase_app |
The showcase in a window (outside the workspace: it links the native host) |
arc_shots |
Offscreen evidence pictures drawn by Invar's native renderer (outside the workspace: it links the native host) |
Every component is a *_node builder plus a PascalCase Pion-JSX tag, themed by the nearest <ArcProvider>.
# pion.toml
[dependencies]
arc = { git = "https://github.com/AFK-surf/invar-arc.git", rev = "<sha>", subdir = "packages/arc" }import "arc"
import "ui"
import "view"
pub fn settings(root : view::View, saving : () -> Bool, save : () -> Unit) -> Unit {
<arc::ArcProvider in={root} mode={.Dark} accent={.Violet} ground>
<ui::Col pad={24.0} gap={12.0}>
<arc::Button label="Save changes" loading_by=>{ saving() } on_press=>{ save() } />
<arc::CopyButton value="npx arc add button" label="Copy command" />
<arc::ConfirmMorph label="Delete project" icon="trash" prompt="Delete this project?" mode={.Hold} />
<arc::HoldToConfirm label="Hold to revoke key" confirmed_label="Revoked" />
</ui::Col>
</arc::ArcProvider>
}
<ConfirmMorph> can also be controlled: state_by=>{ state.get() } plus on_state to grant each change. Async handlers are handed an arc_parts::ArcTask to settle: on_action={fn(task) { start(fn(ok) { if ok { task.resolve() } else { task.reject() } }) }}.
Needs a Pion toolchain at the revision in .github/workflows/ci.yml (PION_SHA):
export PIONC=/path/to/pionc PION_QBE=/path/to/qbe PION_RT_LIB=/path/to/libpionrt.a
$PIONC check --package arc_actions && $PIONC test --package arc_actions # one package, seconds
$PIONC fmt --check && $PIONC check && $PIONC test # the whole workspace
python3 scripts/gen_catalog.py --check # catalogue and llms.txt in step
python3 scripts/gen_palette.py --check # generated palette in step
python3 scripts/check_hygiene.py # nothing machine-local committed
$PIONC run packages/arc_showcase_app # the showcase in a window (macOS / Linux)
ARC_SHOTS_OUT=shots $PIONC run packages/arc_shots # every wave's overview, shots/*-{light,dark}.png (macOS / Linux)
ARC_SHOTS_SET=showcase ARC_SHOTS_OUT=shots $PIONC run packages/arc_shots # the showcase pictures, shots/showcase-{light,dark}.png
ARC_SHOTS_SET=w2b-stages ARC_SHOTS_OUT=/tmp/stages $PIONC run packages/arc_shots # each feedback stage alone, at uiarc.dev's preview size
ARC_SHOTS_SET=w1a-audit ARC_SHOTS_OUT=/tmp/audit $PIONC run packages/arc_shots # each wave 1A component alone, for the pixel auditllms.txtlists every tag with its package, category and reference specification;catalog.jsonis the same in JSON. Both, and the showcase's index (packages/arc_showcase/src/catalog_gen.pion), are generated fromcatalog/components.jsonbyscripts/gen_catalog.py: edit that file, never the outputs.- Import
arcfor every tag or one micro-package; wrap the screen in<ArcProvider>; pass getters (x_by=>{ ... }) for live values. Every tag has a*_node(parent, ...)builder twin. AGENTS.mdholds the rules every component follows (specification first, tokens, keys, motion, the gates and the parity method).
MIT. Arc is a separate project; this library shares no code with it.





































