Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/flo-bit.github.io. my personal website, w/ astro, svelte, tailwind, typescript, threlte flo-bit.dev
Something went wrong. Try again.
123456789101112131415161718192021222324---import { colorBaseClasses, colorAccentClasses } from "src/colors";import { ACCENT_COLOR, BASE_COLOR } from "../config";import { cn } from "../stylingUtils";import type { HTMLAttributes } from "astro/types";
type Props = HTMLAttributes<"div">;
const { class: className, ...props } = Astro.props;---
<div class={cn( "prose prose-img:rounded-xl dark:prose-invert prose-a:no-underline max-w-full", "prose-inline-code:bg-base-100 dark:prose-inline-code:bg-base-800 prose-inline-code:p-1 prose-inline-code:rounded-md", colorBaseClasses[BASE_COLOR], colorAccentClasses[ACCENT_COLOR], className )} {...props}> <slot /></div>