Skip to content

Commit f5689dd

Browse files
committed
style: remove accent from links and buttons
1 parent c0967c9 commit f5689dd

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

app/components/Button/Base.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ defineExpose({
3131
<template>
3232
<button
3333
ref="el"
34-
class="group cursor-pointer inline-flex gap-x-1 items-center justify-center font-mono border border-border rounded-md transition-all duration-200 disabled:(opacity-40 cursor-not-allowed border-transparent) aria-pressed:(bg-fg text-bg border-fg hover:enabled:(text-bg/50)) bg-gradient-to-t dark:bg-gradient-to-b"
34+
class="group cursor-pointer inline-flex gap-x-1 items-center justify-center font-mono border border-border rounded-md transition-all duration-200 disabled:(opacity-40 cursor-not-allowed border-transparent) aria-pressed:(bg-fg text-bg border-fg hover:enabled:(text-bg/50))"
3535
:class="{
3636
'text-sm px-4 py-2': size === 'medium',
3737
'text-xs px-2 py-0.5': size === 'small',
38-
'from-fg/10 via-transparent to-transparent text-fg hover:enabled:(bg-accent/20) focus-visible:enabled:(bg-accent/20)':
38+
'bg-transparent text-fg hover:enabled:(bg-fg/30) focus-visible:enabled:(bg-fg/30)':
3939
variant === 'secondary',
40-
'text-black from-accent via-accent to-accent/30 hover:enabled:(bg-accent/50) focus-visible:enabled:(bg-accent/50)':
40+
'text-black bg-fg hover:enabled:(bg-fg/50) focus-visible:enabled:(bg-fg/50)':
4141
variant === 'primary',
4242
}"
4343
:type="props.type"

app/components/Link/Base.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,14 @@ const isButtonMedium = computed(() => props.size === 'medium' && props.variant !
7676
class="group inline-flex gap-x-1 items-center justify-center"
7777
:class="{
7878
'underline-offset-[0.2rem] underline decoration-1 decoration-fg/50': !isLinkAnchor && isLink,
79-
'text-fg hover:(no-underline text-accent) focus-visible:(no-underline text-accent) transition-colors duration-200':
79+
'text-fg hover:(no-underline text-fg/50) focus-visible:(no-underline text-fg/50) transition-colors duration-200':
8080
isLink,
81-
'font-mono border border-border rounded-md transition-all duration-200 bg-gradient-to-t dark:bg-gradient-to-b':
82-
isButton,
81+
'font-mono border border-border rounded-md transition-all duration-200': isButton,
8382
'text-sm px-4 py-2': isButtonMedium,
8483
'text-xs px-2 py-0.5': isButtonSmall,
85-
'from-fg/10 via-transparent to-transparent text-fg hover:(bg-accent/20) focus-visible:(bg-accent/20)':
84+
'bg-transparent text-fg hover:(bg-fg/30) focus-visible:(bg-fg/30)':
8685
variant === 'button-secondary',
87-
'text-black from-accent via-accent to-accent/30 hover:(bg-accent/50) focus-visible:(bg-accent/50)':
88-
variant === 'button-primary',
86+
'text-black bg-fg hover:(bg-fg/50) focus-visible:(bg-fg/50)': variant === 'button-primary',
8987
}"
9088
:to="to"
9189
:href="to"

0 commit comments

Comments
 (0)