Skip to content

Commit 2019184

Browse files
feat(ui): make version colors consistent
1 parent 4ad0679 commit 2019184

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/components/VersionSelector.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ watch(
486486
<span dir="ltr" class="me-1.5">{{ currentVersion }}</span>
487487
<span
488488
v-if="currentVersion === latestVersion"
489-
class="text-xs px-1.5 py-0.5 rounded badge-green font-sans font-medium me-1.5"
489+
class="text-xs px-1.5 py-0.5 rounded badge-accent font-sans font-medium me-1.5"
490490
>
491491
latest
492492
</span>
@@ -577,7 +577,7 @@ watch(
577577
v-for="tag in group.primaryVersion.tags"
578578
:key="tag"
579579
class="text-xs px-1.5 py-0.5 rounded font-sans font-medium"
580-
:class="tag === 'latest' ? 'badge-green' : 'badge-subtle'"
580+
:class="tag === 'latest' ? 'badge-accent' : 'badge-subtle'"
581581
>
582582
{{ tag }}
583583
</span>

uno.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ export default defineConfig({
156156
['badge-purple', 'bg-badge-purple/10 text-badge-purple'],
157157
['badge-pink', 'bg-badge-pink/10 text-badge-pink'],
158158
['badge-subtle', 'bg-bg-subtle text-fg-subtle'],
159+
['badge-accent', 'bg-accent/10 text-accent'],
159160
],
160161
rules: [
161162
// Custom scale for active states

0 commit comments

Comments
 (0)