diff --git a/apps/web/src/modules/themes/components/theme-card.tsx b/apps/web/src/modules/themes/components/theme-card.tsx index 4815096..b726da2 100644 --- a/apps/web/src/modules/themes/components/theme-card.tsx +++ b/apps/web/src/modules/themes/components/theme-card.tsx @@ -98,74 +98,78 @@ export const ThemeCard = (props: ThemeCardProps) => { if (deleted) return null; return ( -
-
- - playground - - -
- - -
- {view === "website" && } - {view === "placeholder" && } -
- {[ - { label: "Background", value: background }, - { label: "Primary", value: primary }, - { label: "Secondary", value: secondary }, - { label: "Card", value: card }, - ].map((item, index) => { - if (!item.value) return null; + +
+
+ + playground + + +
+ + +
+ {view === "website" && } + {view === "placeholder" && } +
+ {[ + { label: "Background", value: background }, + { label: "Primary", value: primary }, + { label: "Secondary", value: secondary }, + { label: "Card", value: card }, + ].map((item, index) => { + if (!item.value) return null; - const isHex = item.value.startsWith("#"); - const isDark = isHex ? Color(item.value).isDark() : false; + const isHex = item.value.startsWith("#"); + const isDark = isHex ? Color(item.value).isDark() : false; - return ( -
{ - handleCopy(item.value as string); - }} - style={{ background: item.value }} - > + return (
{ + handleCopy(item.value as string); + }} + style={{ background: item.value }} > -
-

{item.label}

-

{isHex ? item.value : "gradient"}

+
+
+

{item.label}

+

{isHex ? item.value : "gradient"}

+
+
-
-
- ); - })} -
- {(name || owner) && ( -
-

{name}

- {owner &&

by {owner}

} + ); + })}
- )} -
+ {(name || owner) && ( +
+

{name}

+ {owner &&

by {owner}

} +
+ )} +
+ ); };