diff --git a/packages/console/app/assets/css/tailwind.css b/packages/console/app/assets/css/tailwind.css index 78f23a81..6abd5a3f 100644 --- a/packages/console/app/assets/css/tailwind.css +++ b/packages/console/app/assets/css/tailwind.css @@ -33,6 +33,7 @@ --color-border: var(--border); --color-input: var(--input); --color-ring: var(--ring); + --color-signal: var(--signal); --color-chart-1: var(--chart-1); --color-chart-2: var(--chart-2); --color-chart-3: var(--chart-3); @@ -96,7 +97,9 @@ --border: oklch(0.922 0 0); --input: oklch(0.922 0 0); --ring: oklch(0.708 0 0); - --chart-1: oklch(0.646 0.222 41.116); + /* What needs attention or is switched on: unread, checked, the active step. */ + --signal: oklch(0.585 0.233 277); + --chart-1: oklch(0.585 0.233 277); --chart-2: oklch(0.6 0.118 184.704); --chart-3: oklch(0.398 0.07 227.392); --chart-4: oklch(0.828 0.189 84.429); @@ -133,6 +136,7 @@ --border: oklch(0.25 0 0); --input: oklch(0.2 0 0); --ring: oklch(0.439 0 0); + --signal: oklch(0.673 0.182 276.935); --chart-1: oklch(0.6 0.22 275); --chart-2: oklch(0.75 0.15 160); --chart-3: oklch(0.8 0.18 70); @@ -163,9 +167,9 @@ } } -/* The shared studio section-label: a small, tracked, uppercase muted heading. +/* The shared studio section-label: a small muted heading in sentence case. One definition so the Detect / Audit / Review tabs label their sections identically. */ @utility section-label { - @apply text-[11px] font-semibold uppercase tracking-wider text-muted-foreground; + @apply text-xs font-medium text-muted-foreground; } diff --git a/packages/console/app/components/avatar/AvatarUploadCard.vue b/packages/console/app/components/avatar/AvatarUploadCard.vue index 171d551a..883d7a04 100644 --- a/packages/console/app/components/avatar/AvatarUploadCard.vue +++ b/packages/console/app/components/avatar/AvatarUploadCard.vue @@ -2,7 +2,6 @@ import { Upload, Loader2, Trash2 } from "@lucide/vue"; import { Label } from "#console/components/ui/label"; import { Button } from "#console/components/ui/button"; -import { Card, CardContent, CardFooter } from "#console/components/ui/card"; import EntityAvatar from "./EntityAvatar.vue"; defineProps<{ @@ -28,55 +27,46 @@ const emit = defineEmits<{ diff --git a/packages/console/app/components/avatar/EntityAvatar.vue b/packages/console/app/components/avatar/EntityAvatar.vue index e96712b2..bf510f5f 100644 --- a/packages/console/app/components/avatar/EntityAvatar.vue +++ b/packages/console/app/components/avatar/EntityAvatar.vue @@ -5,10 +5,16 @@ import { AvatarImage, } from "#console/components/ui/avatar"; import { getInitials, gradientForName } from "#console/utils/naming"; +import { cn } from "#console/utils/shadcn"; + +// Attributes from the caller (a class, a title) land on the avatar itself, not +// the link or box around it. +defineOptions({ inheritAttrs: false }); +const attrs = useAttrs(); interface Props { href?: string; - size?: "sm" | "md" | "lg"; + size?: "xs" | "sm" | "md" | "lg"; name?: string; src?: string; alt?: string; @@ -20,12 +26,14 @@ const props = withDefaults(defineProps(), { const sizeClasses = computed(() => { switch (props.size) { + case "xs": + return "size-5 text-[9px]"; case "sm": - return "h-6 w-6 text-xs"; + return "size-6 text-xs"; case "lg": - return "h-12 w-12 text-lg"; + return "size-12 text-lg"; default: - return "h-8 w-8 text-sm"; + return "size-8 text-sm"; } }); @@ -43,10 +51,13 @@ const gradientStyle = computed(() => {