minor ui updates to shiki

This commit is contained in:
Huakun Shen 2025-03-11 13:04:50 -04:00
parent b4afcaac6c
commit c2a75082f9
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View File

@ -2,10 +2,12 @@
import { onMount } from "svelte" import { onMount } from "svelte"
import { Motion, useMotionTemplate, useMotionValue } from "svelte-motion" import { Motion, useMotionTemplate, useMotionValue } from "svelte-motion"
import { cn } from "../../utils" import { cn } from "../../utils"
import BorderBeam from "./BorderBeam.svelte"
export let gradientSize: number = 200 export let gradientSize: number = 200
export let gradientColor: string = "#262626" export let gradientColor: string = "#262626"
export let gradientOpacity: number = 0.8 export let gradientOpacity: number = 0.8
export let borderBeam: boolean = false
let className: string = "" let className: string = ""
export { className as class } export { className as class }
@ -42,6 +44,9 @@
className className
)} )}
> >
{#if borderBeam}
<BorderBeam size={150} duration={12} />
{/if}
<div class="relative z-10"> <div class="relative z-10">
<!-- Default --> <!-- Default -->
<slot> <slot>

View File

@ -36,7 +36,7 @@
{#await highlighter2 then highlighter} {#await highlighter2 then highlighter}
<ShikiMagicMove <ShikiMagicMove
class={cn("", className)} class={cn("p-3", className)}
{lang} {lang}
theme={theme ?? "vitesse-dark"} theme={theme ?? "vitesse-dark"}
{highlighter} {highlighter}