fix(ui): add semantic colors to sonner toast icons
success → emerald-500, info → blue-500, warning → amber-500, error → red-500, loading → muted-foreground. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
9af889a9bb
commit
8018290fba
2 changed files with 7 additions and 7 deletions
|
|
@ -35,8 +35,8 @@ export function ChatInput() {
|
|||
className="w-full resize-none bg-transparent px-1 py-1 text-sm text-foreground outline-none placeholder:text-muted-foreground"
|
||||
/>
|
||||
<div className="flex items-center justify-end pt-2">
|
||||
<Button size="icon-sm" onClick={handleSubmit}>
|
||||
<HugeiconsIcon icon={ArrowUpIcon} />
|
||||
<Button size="icon" onClick={handleSubmit}>
|
||||
<HugeiconsIcon strokeWidth={2.5} icon={ArrowUpIcon} />
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -14,19 +14,19 @@ const Toaster = ({ ...props }: ToasterProps) => {
|
|||
className="toaster group"
|
||||
icons={{
|
||||
success: (
|
||||
<HugeiconsIcon icon={CheckmarkCircle02Icon} strokeWidth={2} className="size-4" />
|
||||
<HugeiconsIcon icon={CheckmarkCircle02Icon} strokeWidth={2} className="size-4 text-emerald-500" />
|
||||
),
|
||||
info: (
|
||||
<HugeiconsIcon icon={InformationCircleIcon} strokeWidth={2} className="size-4" />
|
||||
<HugeiconsIcon icon={InformationCircleIcon} strokeWidth={2} className="size-4 text-blue-500" />
|
||||
),
|
||||
warning: (
|
||||
<HugeiconsIcon icon={Alert02Icon} strokeWidth={2} className="size-4" />
|
||||
<HugeiconsIcon icon={Alert02Icon} strokeWidth={2} className="size-4 text-amber-500" />
|
||||
),
|
||||
error: (
|
||||
<HugeiconsIcon icon={MultiplicationSignCircleIcon} strokeWidth={2} className="size-4" />
|
||||
<HugeiconsIcon icon={MultiplicationSignCircleIcon} strokeWidth={2} className="size-4 text-red-500" />
|
||||
),
|
||||
loading: (
|
||||
<HugeiconsIcon icon={Loading03Icon} strokeWidth={2} className="size-4 animate-spin" />
|
||||
<HugeiconsIcon icon={Loading03Icon} strokeWidth={2} className="size-4 text-muted-foreground animate-spin" />
|
||||
),
|
||||
}}
|
||||
style={
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue