Skip to content

Commit de9d4d0

Browse files
committed
feat: update components and prose configuration
1 parent ea54dab commit de9d4d0

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

components/common/card/Card.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const props = defineProps<{
1111
<div
1212
:class="
1313
cn(
14-
'rounded-lg border bg-card text-card-foreground shadow-sm',
14+
'rounded-lg border bg-background text-foreground shadow-sm',
1515
props.class,
1616
)
1717
"

components/common/command/CommandSeparator.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const delegatedProps = computed(() => {
1717
<template>
1818
<ComboboxSeparator
1919
v-bind="delegatedProps"
20-
:class="cn('-mx-1 h-px bg-$c-border', props.class)"
20+
:class="cn('-mx-1 h-px bg-muted-border', props.class)"
2121
>
2222
<slot />
2323
</ComboboxSeparator>

components/common/navigation-menu/NavigationMenuIndicator.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ const forwardedProps = useForwardProps(delegatedProps)
2121
v-bind="forwardedProps"
2222
:class="cn('top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in', props.class)"
2323
>
24-
<div class="relative top-[60%] rotate-45 rounded-tl-sm bg-$c-border shadow-md square-2" />
24+
<div class="relative top-[60%] rotate-45 rounded-tl-sm bg-muted-border shadow-md square-2" />
2525
</NavigationMenuIndicator>
2626
</template>

components/common/navigation-menu/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ export { default as NavigationMenuTrigger } from './NavigationMenuTrigger.vue'
99

1010
// @unocss-include
1111
export const navigationMenuTriggerStyle = cva(
12-
'group inline-flex h-8 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-$c-accent/50 data-[state=open]:bg-$c-accent/50',
12+
'group inline-flex h-8 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-muted-accent/50 data-[state=open]:bg-muted-accent/50',
1313
)

components/common/scroll-area/ScrollBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ const delegatedProps = computed(() => {
2727
&& 'h-2.5 flex-col border-t border-t-transparent p-px',
2828
props.class)"
2929
>
30-
<ScrollAreaThumb class="relative flex-1 rounded-full bg-$c-border" />
30+
<ScrollAreaThumb class="relative flex-1 rounded-full bg-muted-border" />
3131
</ScrollAreaScrollbar>
3232
</template>

components/common/separator/Separator.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ const delegatedProps = computed(() => {
1717
<template>
1818
<Separator
1919
v-bind="delegatedProps"
20-
:class="cn('shrink-0 bg-$c-border', props.orientation === 'vertical' ? 'w-px h-full' : 'h-px w-full', props.class)"
20+
:class="cn('shrink-0 bg-muted-border', props.orientation === 'vertical' ? 'w-px h-full' : 'h-px w-full', props.class)"
2121
/>
2222
</template>

components/content/Alert.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function alertClick() {
3939
<template>
4040
<CommonAlert
4141
class="transition-all [&:not(:first-child)]:mt-5"
42-
:class="[typeTwClass[type], to && 'cursor-pointer hover:bg-$c-muted/50']"
42+
:class="[typeTwClass[type], to && 'cursor-pointer hover:bg-muted/50']"
4343
@click="alertClick"
4444
>
4545
<SmartIcon v-if="icon && title" :name="icon" :size="16" />

components/content/ProseCode.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const icon = iconMap.get(props.filename?.toLowerCase()) || iconMap.get(props.lan
4343
<span v-if="!filename" class="absolute right-3 top-3 z-10">
4444
<CodeCopy :code="code" />
4545
</span>
46-
<div class="bg-$c-muted/30">
46+
<div class="bg-muted/30">
4747
<CommonScrollArea>
4848
<div
4949
class="overflow-x-auto py-3 text-sm"

components/content/ProseTr.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<tr class="m-0 border-t p-0 even:bg-$c-muted/50">
2+
<tr class="m-0 border-t p-0 even:bg-muted/50">
33
<slot />
44
</tr>
55
</template>

components/layout/PrevNextButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ defineProps<{
1111
:to="prevNext._path"
1212
class="basis-1/3"
1313
>
14-
<div class="mb-4 border rounded-lg p-4 transition-all space-y-2 hover:bg-$c-muted/50">
14+
<div class="mb-4 border rounded-lg p-4 transition-all space-y-2 hover:bg-muted/50">
1515
<div class="flex flex-row gap-3">
1616
<div v-if="side === 'left'" class="min-w-6 flex square-6">
1717
<Icon name="lucide:arrow-left" size="20" class="mx-auto self-center" />

0 commit comments

Comments
 (0)