元件

Cobalt 設計系統的 hono/jsx 實作。右上角可切換深色模式。

色彩 Token

元件只使用 token,從不寫死色碼。

background
foreground
card
muted
muted-foreground
primary
secondary
accent
destructive
success
warning
info
border
ring

Button

6 種變體 × 4 種尺寸,含 icon、停用與連結。

default
outline
secondary
ghost
destructive
link
icon連結按鈕

Badge · StatusBadge

defaultsecondaryoutlinedestructivereport.pdf
livesuccesswarninginfodangermuted

表單

Input、Textarea、Select 與 Field(說明、錯誤、停用、字數 island)。

欄位說明文字

client island: hono/jsx/dom

Card · StatCard

項目
1,284
即時

KPI 卡片

Card
標題、說明與右上角動作。
新
內容區塊。
頁尾

DataTable · Pagination

名稱狀態
年度營運計畫已核准
客戶訪談紀錄審閱中

Dialog · ConfirmDialog · Toast

原生 <dialog>:Esc、點背景或 ✕ 皆可關閉;表單照常 POST。

範例 Dialog

原生 <dialog>,不需要 client state。

操作成功。

這是一則提示。

Breadcrumb · Separator · EmptyState

Empty state

沒有資料時顯示,可附上動作。

圖示

lucide(ISC),內嵌 SVG;新增圖示請見 src/views/icons.tsx。

layout-dashboard
package
shield-check
log-in
log-out
sun
moon
search
plus
pencil
trash-2
paperclip
chevron-left
chevron-right
panel-left
x
palette
circle-check
circle-alert
info
triangle-alert
upload
download
users
ellipsis
file-text
funnel
cloud
arrow-up-right

確認