Skip to content

Commit d84143f

Browse files
committed
fix: fix primary color
1 parent abb6bad commit d84143f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/components/OgImage/ShareCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ const sparklineAreaPoints = computed(() => {
254254
color: t.textSubtle,
255255
lineHeight: '1.6',
256256
}"
257-
>TypeScript</span
257+
>Types</span
258258
>
259259
<span
260260
class="flex items-center"

app/components/Package/ShareModal.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script setup lang="ts">
2-
import { ACCENT_COLOR_TOKENS } from '#shared/utils/constants'
32
43
const props = defineProps<{
54
packageName: string
@@ -16,8 +15,7 @@ const { selectedAccentColor } = useAccentColor()
1615
const colorParam = computed(() => {
1716
const id = selectedAccentColor.value as keyof typeof ACCENT_COLOR_TOKENS
1817
if (!id || !(id in ACCENT_COLOR_TOKENS)) return ''
19-
const hex = ACCENT_COLOR_TOKENS[id][theme.value].hex
20-
return `&color=${encodeURIComponent(hex)}`
18+
return `&color=${encodeURIComponent(id)}`
2119
})
2220
2321
const cardUrl = computed(

0 commit comments

Comments
 (0)