+
官方
)}
@@ -189,9 +189,7 @@ export default function ResourceDetailCard({ resource }: Props) {
href={homepageLink}
target="_blank"
rel="noreferrer"
- className={
- homepageLink ? "hover:underline hover:text-primary" : undefined
- }
+ className={homepageLink && "hover:underline hover:text-primary"}
>
{moduleName}
@@ -204,9 +202,7 @@ export default function ResourceDetailCard({ resource }: Props) {
target="_blank"
rel="noreferrer"
className={
- pypiProjectLink
- ? "hover:underline hover:text-primary"
- : undefined
+ pypiProjectLink && "hover:underline hover:text-primary"
}
>
{projectLink}
diff --git a/website/src/components/Resource/ValidStatus/index.tsx b/website/src/components/Resource/ValidStatus/index.tsx
index c5fd8cd2df0c..52149a666386 100644
--- a/website/src/components/Resource/ValidStatus/index.tsx
+++ b/website/src/components/Resource/ValidStatus/index.tsx
@@ -59,13 +59,12 @@ export default function ValidDisplay({
className={clsx({
"rounded-md text-sm flex items-center gap-x-1 px-2 py-1 whitespace-nowrap":
!simple,
- "ml-2": simple,
- "bg-success/10": !simple && isValid,
- "text-success/90": isValid,
- "bg-error/10": !simple && isInvalid,
- "text-error/90": isInvalid,
- "bg-info/10": !simple && isSkip,
- "text-info/90": isSkip,
+ "bg-green-400/10": !simple && isValid,
+ "text-green-600 dark:text-green-400": isValid,
+ "bg-red-400/10": !simple && isInvalid,
+ "text-red-600 dark:text-red-400": isInvalid,
+ "bg-blue-400/10": !simple && isSkip,
+ "text-blue-600 dark:text-blue-400": isSkip,
})}
>
diff --git a/website/tailwind.config.js b/website/tailwind.config.js
index e5b9a6c5dfc0..64ae91c540cc 100644
--- a/website/tailwind.config.js
+++ b/website/tailwind.config.js
@@ -17,6 +17,7 @@ function excludeThemeColor(theme, exclude) {
}
module.exports = {
+ darkMode: ["class", '[data-theme="dark"]'],
daisyui: {
themes: [
{