fix(webui): deepen the primary violet and give links their own tint
The bright violet passed the contrast ratio on paper and failed in the hand: black-on-purple vibrated at button and FAB sizes. The primary surface is now deep enough for white labels, and link text on the canvas uses a dedicated lighter tint, since one violet cannot be both a dark-enough surface and a light-enough text colour. Also drops an empty-state description that restated its title.
This commit is contained in:
11 files changed
+39
-42
No files matched your search
@@ -9,7 +9,7 @@ withDefaults(defineProps<{ size?: number }>(), { size: 22 });
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
aria-hidden="true"
|
||||
class="text-primary shrink-0"
|
||||
class="text-link shrink-0"
|
||||
>
|
||||
<path d="M12 2.5 21 20h-4.1L12 10.6 7.1 20H3l9-17.5Z" fill="currentColor" />
|
||||
<path d="M8.6 16.2h6.8" stroke="var(--background)" stroke-width="1.6" stroke-linecap="round" />
|
||||
|
||||
@@ -11,7 +11,7 @@ defineProps<{
|
||||
<p
|
||||
data-slot="empty-description"
|
||||
:class="cn(
|
||||
'text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary',
|
||||
'text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-link',
|
||||
$attrs.class ?? '',
|
||||
)"
|
||||
>
|
||||
|
||||
@@ -13,7 +13,7 @@ const props = defineProps<{
|
||||
:class="cn(
|
||||
'text-muted-foreground text-left text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-data-horizontal/field:text-balance',
|
||||
'last:mt-0 nth-last-2:-mt-1',
|
||||
'[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary',
|
||||
'[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-link',
|
||||
props.class,
|
||||
)"
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user