Skip to content

Commit 694ad90

Browse files
committed
fix: increase colour contrast + add tabindex=-1 to line buttons
1 parent 0c2550f commit 694ad90

6 files changed

Lines changed: 6 additions & 5 deletions

File tree

app/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ button {
285285
border-left: 2px solid #262626;
286286
padding-left: 1rem;
287287
margin: 1.5rem 0;
288-
color: #666666;
288+
color: #8a8a8a;
289289
font-style: italic;
290290
}
291291

app/components/CodeViewer.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ watch(
6666
:id="`L${lineNum}`"
6767
:key="lineNum"
6868
:href="`#L${lineNum}`"
69+
tabindex="-1"
6970
class="line-number block px-3 py-0 font-mono text-sm leading-6 cursor-pointer transition-colors no-underline"
7071
:class="[
7172
isLineSelected(lineNum)

app/components/OgImage/Default.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="h-full w-full flex flex-col justify-center items-center bg-[#0a0a0a] text-[#fafafa]">
33
<h1 class="text-6xl font-medium tracking-tight" style="font-family: 'Geist Mono'">
4-
<span class="text-[#666666]" style="letter-spacing: -0.1em">./</span> npmx
4+
<span class="text-fg-subtle" style="letter-spacing: -0.1em">./</span> npmx
55
</h1>
66
<h1 class="text-3xl font-medium tracking-tight">a better browser for the npm registry</h1>
77

app/components/OgImage/Package.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ withDefaults(
2222
{{ name }}
2323
</h1>
2424

25-
<div class="flex items-center gap-6 mt-6 text-xl text-[#666666]">
25+
<div class="flex items-center gap-6 mt-6 text-xl text-fg-subtle">
2626
<span>v{{ version }}</span>
2727
<span v-if="downloads">{{ downloads }}/wk</span>
2828
<span v-if="license">{{ license }}</span>

app/components/PackageDownloadStats.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const config = computed(() => ({
5959
title: {
6060
text: lastDatapoint.value,
6161
fontSize: 12,
62-
color: '#666666',
62+
color: '#8A8A8A',
6363
bold: false,
6464
},
6565
verticalIndicator: {

uno.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default defineConfig({
3939
fg: {
4040
DEFAULT: '#fafafa',
4141
muted: '#a1a1a1',
42-
subtle: '#666666',
42+
subtle: '#8A8A8A',
4343
},
4444
border: {
4545
DEFAULT: '#262626',

0 commit comments

Comments
 (0)