From de15f8e2d3264b9ffb18c3a089612ef604eb87b8 Mon Sep 17 00:00:00 2001 From: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 12 Dec 2024 01:31:29 +0900 Subject: feat(embed): Add support for dark mode (#6912) * feat(embed): Support dark mode (wip) * finishing up the implementation * fix tailwind color selector * tweak design * refactor: unify types * fix * fix english grammar * refactor: unify types * tweak design * remove the customization part --- bskyembed/src/components/embed.tsx | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) (limited to 'bskyembed/src/components/embed.tsx') diff --git a/bskyembed/src/components/embed.tsx b/bskyembed/src/components/embed.tsx index 74eacf16d..20ffcb2b2 100644 --- a/bskyembed/src/components/embed.tsx +++ b/bskyembed/src/components/embed.tsx @@ -78,9 +78,9 @@ export function Embed({ return ( + className="transition-colors hover:bg-neutral-100 dark:hover:bg-slate-700 border dark:border-slate-600 rounded-lg p-2 gap-1.5 w-full flex flex-col">
{record.author.displayName} - + @{record.author.handle}
@@ -209,7 +209,7 @@ function Info({children}: {children: ComponentChildren}) { return ({children}
+{children}
+
{toNiceDomain(content.external.uri)}
{content.external.title}
-+
{content.external.description}
{title}
-{subtitle}
++ {subtitle} +
{description}
} + {description && ( ++ {description} +
+ )} ) } @@ -406,7 +412,7 @@ function StarterPackEmbed({ return ( + className="w-full rounded-lg overflow-hidden border dark:border-slate-600 flex flex-col items-stretch">{content.record.name}
-+
Starter pack by{' '} {content.creator.displayName || `@${content.creator.handle}`}
@@ -425,7 +431,7 @@ function StarterPackEmbed({{content.record.description}
)} {!!content.joinedAllTimeCount && content.joinedAllTimeCount > 50 && ( -+
{content.joinedAllTimeCount} users have joined!
)} -- cgit 1.4.1