Skip to content

Commit d727d11

Browse files
committed
feat: improve consistent use of accent color in links
This is focused on the main package component
1 parent 306d537 commit d727d11

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

app/pages/package/[...package].vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ defineOgImageComponent('Package', {
426426
<NuxtLink
427427
v-if="orgName"
428428
:to="{ name: 'org', params: { org: orgName } }"
429-
class="text-fg-muted hover:text-fg transition-colors duration-200"
429+
class="text-fg-muted hover:text-accent transition-colors duration-200"
430430
>
431431
@{{ orgName }}
432432
</NuxtLink>
@@ -441,7 +441,7 @@ defineOgImageComponent('Package', {
441441
<button
442442
type="button"
443443
@click="copyPkgName()"
444-
class="copy-button absolute z-20 left-0 top-full inline-flex items-center gap-1 px-2 py-1 rounded border text-xs font-mono whitespace-nowrap text-fg-muted bg-bg border-border opacity-0 -translate-y-1 pointer-events-none transition-all duration-150 group-hover:opacity-100 group-hover:translate-y-0 group-hover:pointer-events-auto focus-visible:opacity-100 focus-visible:translate-y-0 focus-visible:pointer-events-auto hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/40"
444+
class="copy-button absolute z-20 left-0 top-full inline-flex items-center gap-1 px-2 py-1 rounded border text-xs font-mono whitespace-nowrap text-fg-muted bg-bg border-border opacity-0 -translate-y-1 pointer-events-none transition-all duration-150 group-hover:opacity-100 group-hover:translate-y-0 group-hover:pointer-events-auto focus-visible:opacity-100 focus-visible:translate-y-0 focus-visible:pointer-events-auto hover:text-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/40"
445445
:aria-label="$t('package.copy_name')"
446446
>
447447
<span class="i-carbon:copy w-3.5 h-3.5" aria-hidden="true" />
@@ -472,7 +472,7 @@ defineOgImageComponent('Package', {
472472
:href="`https://www.npmjs.com/package/${pkg.name}/v/${resolvedVersion}#provenance`"
473473
target="_blank"
474474
rel="noopener noreferrer"
475-
class="inline-flex items-center justify-center gap-1.5 text-fg-muted hover:text-fg transition-colors duration-200 min-w-6 min-h-6"
475+
class="inline-flex items-center justify-center gap-1.5 text-fg-muted hover:text-accent transition-colors duration-200 min-w-6 min-h-6"
476476
:title="$t('package.verified_provenance')"
477477
>
478478
<span class="i-solar:shield-check-outline w-3.5 h-3.5 shrink-0" aria-hidden="true" />
@@ -510,7 +510,7 @@ defineOgImageComponent('Package', {
510510
<NuxtLink
511511
v-if="docsLink"
512512
:to="docsLink"
513-
class="px-2 py-1.5 font-mono text-xs rounded transition-colors duration-150 border border-transparent text-fg-subtle hover:text-fg hover:bg-bg hover:shadow hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 inline-flex items-center gap-1.5"
513+
class="px-2 py-1.5 font-mono text-xs rounded transition-colors duration-150 border border-transparent text-fg-subtle hover:text-accent hover:bg-bg hover:shadow hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 inline-flex items-center gap-1.5"
514514
aria-keyshortcuts="d"
515515
>
516516
<span class="i-carbon:document w-3 h-3" aria-hidden="true" />
@@ -524,7 +524,7 @@ defineOgImageComponent('Package', {
524524
</NuxtLink>
525525
<NuxtLink
526526
:to="`/package-code/${pkg.name}/v/${resolvedVersion}`"
527-
class="px-2 py-1.5 font-mono text-xs rounded transition-colors duration-150 border border-transparent text-fg-subtle hover:text-fg hover:bg-bg hover:shadow hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 inline-flex items-center gap-1.5"
527+
class="px-2 py-1.5 font-mono text-xs rounded transition-colors duration-150 border border-transparent text-fg-subtle hover:text-accent hover:bg-bg hover:shadow hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 inline-flex items-center gap-1.5"
528528
aria-keyshortcuts="."
529529
>
530530
<span class="i-carbon:code w-3 h-3" aria-hidden="true" />
@@ -538,7 +538,7 @@ defineOgImageComponent('Package', {
538538
</NuxtLink>
539539
<NuxtLink
540540
:to="{ path: '/compare', query: { packages: pkg.name } }"
541-
class="px-2 py-1.5 font-mono text-xs rounded transition-colors duration-150 border border-transparent text-fg-subtle hover:text-fg hover:bg-bg hover:shadow hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 inline-flex items-center gap-1.5"
541+
class="px-2 py-1.5 font-mono text-xs rounded transition-colors duration-150 border border-transparent text-fg-subtle hover:text-accent hover:bg-bg hover:shadow hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 inline-flex items-center gap-1.5"
542542
aria-keyshortcuts="c"
543543
>
544544
<span class="i-carbon:compare w-3 h-3" aria-hidden="true" />
@@ -761,7 +761,7 @@ defineOgImageComponent('Package', {
761761
:href="`https://npmgraph.js.org/?q=${pkg.name}`"
762762
target="_blank"
763763
rel="noopener noreferrer"
764-
class="text-fg-subtle hover:text-fg transition-colors duration-200 inline-flex items-center justify-center min-w-6 min-h-6 -m-1 p-1"
764+
class="text-fg-subtle hover:text-accent transition-colors duration-200 inline-flex items-center justify-center min-w-6 min-h-6 -m-1 p-1"
765765
:title="$t('package.stats.view_dependency_graph')"
766766
>
767767
<span class="i-carbon:network-3 w-3.5 h-3.5" aria-hidden="true" />
@@ -773,7 +773,7 @@ defineOgImageComponent('Package', {
773773
:href="`https://node-modules.dev/grid/depth#install=${pkg.name}${resolvedVersion ? `@${resolvedVersion}` : ''}`"
774774
target="_blank"
775775
rel="noopener noreferrer"
776-
class="text-fg-subtle hover:text-fg transition-colors duration-200 inline-flex items-center justify-center min-w-6 min-h-6 -m-1 p-1"
776+
class="text-fg-subtle hover:text-accent transition-colors duration-200 inline-flex items-center justify-center min-w-6 min-h-6 -m-1 p-1"
777777
:title="$t('package.stats.inspect_dependency_tree')"
778778
>
779779
<span class="i-solar:eye-scan-outline w-3.5 h-3.5" aria-hidden="true" />

0 commit comments

Comments
 (0)