diff --git a/packages/docusaurus-playground/src/pages/index.mdx b/packages/docusaurus-playground/src/pages/index.mdx index 7f3cbdd..3a2cc96 100644 --- a/packages/docusaurus-playground/src/pages/index.mdx +++ b/packages/docusaurus-playground/src/pages/index.mdx @@ -100,25 +100,29 @@ import { items={[ { name: 'XMTP', - logo: '/showcase/xmtp-mark-white.svg', + logo: '/showcase/xmtp-mark-black.svg', + logoDark: '/showcase/xmtp-mark-white.svg', description: "Inter-blockchain account messaging protocol XMTP uses Waku's Go implementation to facilitate communication between nodes in its currently permissioned network.", }, { name: 'TheGraph', - logo: '/showcase/the-graph-mark-white.svg', + logo: '/showcase/the-graph-mark-black.svg', + logoDark: '/showcase/the-graph-mark-white.svg', description: 'Waku powers the Graphcast SDK, enabling the development of gossip-powered applications within The Graph ecosystem.', }, { name: 'Status', - logo: '/showcase/status-mark-white.svg', + logo: '/showcase/status-mark-black.svg', + logoDark: '/showcase/status-mark-white.svg', description: "Waku powers many of the Status super app's features, including its private messaging.", }, { name: 'Railgun', - logo: '/showcase/railgun-mark-white.svg', + logo: '/showcase/railgun-mark-black.svg', + logoDark: '/showcase/railgun-mark-white.svg', description: 'The privacy-focused DeFi protocol Railgun anonymizes Ethereum transactions with Waku. ', }, diff --git a/packages/docusaurus-playground/static/showcase/railgun-mark-black.svg b/packages/docusaurus-playground/static/showcase/railgun-mark-black.svg new file mode 100644 index 0000000..40a9ac6 --- /dev/null +++ b/packages/docusaurus-playground/static/showcase/railgun-mark-black.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/docusaurus-playground/static/showcase/railgun-mark-white.svg b/packages/docusaurus-playground/static/showcase/railgun-mark-white.svg index 2137250..096cd4f 100644 --- a/packages/docusaurus-playground/static/showcase/railgun-mark-white.svg +++ b/packages/docusaurus-playground/static/showcase/railgun-mark-white.svg @@ -1,4 +1,3 @@ - - + diff --git a/packages/docusaurus-playground/static/showcase/status-mark-black.svg b/packages/docusaurus-playground/static/showcase/status-mark-black.svg new file mode 100644 index 0000000..2c90d94 --- /dev/null +++ b/packages/docusaurus-playground/static/showcase/status-mark-black.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/docusaurus-playground/static/showcase/status-mark-white.svg b/packages/docusaurus-playground/static/showcase/status-mark-white.svg index a5c804b..62eade2 100644 --- a/packages/docusaurus-playground/static/showcase/status-mark-white.svg +++ b/packages/docusaurus-playground/static/showcase/status-mark-white.svg @@ -1,3 +1,3 @@ - + diff --git a/packages/docusaurus-playground/static/showcase/the-graph-mark-black.svg b/packages/docusaurus-playground/static/showcase/the-graph-mark-black.svg new file mode 100644 index 0000000..018a500 --- /dev/null +++ b/packages/docusaurus-playground/static/showcase/the-graph-mark-black.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/docusaurus-playground/static/showcase/xmtp-mark-black.svg b/packages/docusaurus-playground/static/showcase/xmtp-mark-black.svg new file mode 100644 index 0000000..0c0ce0c --- /dev/null +++ b/packages/docusaurus-playground/static/showcase/xmtp-mark-black.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/packages/docusaurus-playground/static/showcase/xmtp-mark-white.svg b/packages/docusaurus-playground/static/showcase/xmtp-mark-white.svg index 349bd97..be6f26b 100644 --- a/packages/docusaurus-playground/static/showcase/xmtp-mark-white.svg +++ b/packages/docusaurus-playground/static/showcase/xmtp-mark-white.svg @@ -1,10 +1,10 @@ - - - + + + - - + + diff --git a/packages/logos-docusaurus-theme/src/client/components/mdx/Showcase/Showcase.tsx b/packages/logos-docusaurus-theme/src/client/components/mdx/Showcase/Showcase.tsx index 00ff5a3..66dfa59 100644 --- a/packages/logos-docusaurus-theme/src/client/components/mdx/Showcase/Showcase.tsx +++ b/packages/logos-docusaurus-theme/src/client/components/mdx/Showcase/Showcase.tsx @@ -1,11 +1,13 @@ import { Typography } from '@acid-info/lsd-react' +import { useColorMode } from '@docusaurus/theme-common' import clsx from 'clsx' import React from 'react' import './Showcase.scss' export type ShowcaseItem = { name: React.ReactNode - logo: any + logo: string + logoDark: string description: React.ReactNode } @@ -22,33 +24,39 @@ export const Showcase: React.FC = ({ children, ...props }) => { + const { isDarkTheme } = useColorMode() + return (
- {items.map((item, index) => ( -
-
- {typeof - - {item.name} - - - {item.description} - + {items.map((item, index) => { + const logoSrc = item.logo ?? item.logoDark + + return ( +
+
+ {typeof + + {item.name} + + + {item.description} + +
-
- ))} + ) + })}
) }