@fde/ui
Component kit
Every Insight-branded component in every state. Brand colors come only from tokens in packages/ui/styles/theme.css.
Brand
Logo, palette tokens and type. Internal-use marks only.
Accelerate transformation
Magenta
Primary accent
Magenta 2
Gradient partner
Purple
Accent
Blue
Cool accent / info
Cyan
Cool accent
Red
Alert / destructive only
Charcoal
Text
Muted
Secondary text
Line
Hairlines
StatCard
KPI tiles, one per tone.
StatusBadge / StatusDot
Domain values map to tones via toneFor().
ResultPanel / SourceBadge
AI output labelled by source: model vs sample.
Artifact
Generated deliverables with copy and download.
DataTable
Typed table; click a row to select it.
| ID | Title | Status | Priority |
|---|---|---|---|
| CS-1042 | Invoice mismatch on PO 7781 | In progress | High |
| CS-1043 | Supplier onboarding docs missing | Awaiting input | Medium |
| CS-1044 | Duplicate shipment flagged | New | Critical |
| CS-1045 | Credit note issued | Resolved | Low |
No cases yet
Records appear here once data is connected.
KeyValueList
Record attributes; empty values render as a dash.
ConfirmAction / FileUpload
Human-in-the-loop confirmation and in-browser file reading.
Loading / Empty / Error states
Use these instead of ad-hoc spinners and messages.
No results
Try a different filter or add a record.
Couldn't load cases
The data service didn't respond. Check the connection and try again.
Markdown
Minimal, injection-free renderer for model replies.
ChatPanel
Empty state with suggestions, and a seeded conversation (AI and sample replies).
Ask about your cases. Replies here come from the kit's sample endpoint.
Which cases need attention today?
Two cases need attention:
- CS-1044 is critical: a duplicate shipment was flagged
- CS-1042 is high priority and in progress
Draft a note to the supplier for CS-1042.
Here is a draft you can send to the supplier about the duplicated freight line.
Primitives
shadcn/ui (Radix) building blocks, themed by tokens.