Building Sero dashboard widgets
SkillDev toolsBuild, redesign or standardise Sero dashboard widgets and compact plugin views using the shared @sero-ai/ui dashboard components. Use when the user asks to create, restyle, clean up or make consistent a dashboard widget or a data-dense plugin view. Trigger on phrases like "dashboard widget", "widget for the dashboard", "restyle this widget", "make the widget consistent", "compact plugin view", or any work under a plugin's `ui/widgets/`.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Building Sero dashboard widgets skill
What this skill tells your AI
The instructions your AI receives, as published by sero-labs/sero in packages/templates/skills/sero-dashboard-ui/SKILL.md and read by ahel’s review.
Sero widgets are normal React components loaded via Module Federation. This
skill is about their presentation: composing the shared @sero-ai/ui
dashboard components instead of hand-rolling layout, spacing and colours.
A static widget is declared under sero.app.contributes.components with
extensionPoint: "ui.dashboard.widget". This is separate from
useWidgetRegistration(), which registers a runtime widget only for the
current renderer lifecycle. Use the canonical static contribution syntax for
new plugin manifests.
The host owns widget chrome — the title bar, open/remove actions, drag handle and grid placement. The widget owns its data and what it shows at each size.
Workflow
- Inspect the data and supported sizes. Read the widget's state shape and
its
minSize/defaultSize/maxSizein the plugin manifest. Decide what must stay legible at 1×1 and what extra detail 2×2 / 3×2 can add. - Read the catalogue before writing bespoke presentation. See
references/component-catalog.md, or read
the machine-readable list at
@sero-ai/ui/dashboard-catalog.json(plain data, read it directly). Then read the exported TypeScript types of the components you pick — the props are canonical in the source, not copied here. - Compose shared components where they fit. Wrap in
WidgetContent; useStack/Inline/Gridfor layout,Text/Headingfor type,Metric/Status/ItemList/ActivityList/ProgressRingfor data, andDataBoundary/EmptyState/ skeletons for runtime states. See references/component-examples.md. - Keep domain state and behaviour in the plugin. The shared components are
presentation only. Do not push plugin state, actions or domain types into
@sero-ai/ui. - Handle every applicable state. Populated, loading, empty and error. Use
DataBoundaryto switch, withEmptyState, a skeleton pattern, and anAlertas fallbacks. - Review at each size. Check 1×1, 2×2 and 3×2 — see references/widget-patterns.md for the responsive approach (container queries, choosing data per size).
- Use semantic theme tokens, never hard-coded colours. Tones map to the
--status-*design tokens; map your domain status onto aTone(neutral/success/warning/error/info). - Only contribute a pattern back to
@sero-ai/uiwhen it is reusable — useful in more than one widget or plugin. One-off domain presentation stays in the plugin. - Demonstrate any new shared component in a reference widget under
packages/ui/src/components/reference/(exported from@sero-ai/ui/referenceand previewed inapps/styleguide), and add its entry topackages/ui/src/components/dashboard/catalog.jsonplus the readable component-catalog.md. The catalogue test fails if a barrel component is missing from the JSON, so the JSON stays honest.
Glass styling
Widgets sit on the frosted glass dashboard. WidgetContent applies the glass
token scope automatically, so the shared components render as translucent
surfaces (raised cards, flat rows) that read as part of the tile — you write
nothing extra. Route any custom surface through the --surface-raised /
--surface-flat / --surface-line / --surface-rim tokens so it adapts too;
don't hard-code --bg-surface or add your own backdrop-filter (the host tile
provides the single blur).
For a full plugin view (not a dashboard tile) that should stay solid, opt
out: <WidgetContent glass={false}>. Form controls and portalled menus stay
solid inside glass automatically.
Avoid
- Duplicating host chrome. No custom title bar, remove button, drag handle or collapse control — those are the host's.
- Wrapping every layout in a custom component. Reach for
Stack/Inline/Gridfirst; add a component only for a genuinely repeated pattern. - Moving domain-specific components or types into
@sero-ai/ui. - Relying on host CSS. External plugins must import
@sero-ai/ui/styles/plugin.cssand add a local@sourceso their remote ships the utility classes it uses. Do not depend on classes only the desktop shell emits.
Imports
Everything comes from the package root:
import {
WidgetContent, Stack, Inline, Section,
Text, Metric, Status, ItemList, ItemListItem,
ActivityList, ActivityListItem, ProgressRing,
DataBoundary, EmptyState, IconButton,
} from '@sero-ai/ui';
The discovery catalogue (metadata, not components) is plain JSON — read it directly rather than importing it:
@sero-ai/ui/dashboard-catalog.json
Worked, glass-styled example widgets — importable to preview, or copy-pasteable as a starting point — are on their own subpath:
import { StarterExample, SchedulerExample } from '@sero-ai/ui/reference';
Reference implementations
@sero-ai/ui/reference(packages/ui/src/components/reference/) — a minimal Starter plus Scheduler / Resource / Activity widgets that exercise every component, glass-styled and previewed inapps/styleguide.plugins/sero-cron-plugin/ui/widgets/CronWidget.tsxandplugins/sero-web-plugin/ui/widgets/WebWidget.tsx— real widgets composed from the shared set.- The Notes example widget in the
sero-pluginskill — the minimal template.
Signals
- GitHub stars
- 24
- Forks
- 1
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
sero-dashboard-ui- Source
- github.com/sero-labs/sero