diff --git a/apps/docs/src/css/custom.css b/apps/docs/src/css/custom.css index 27b5ef4e..26e5b02e 100644 --- a/apps/docs/src/css/custom.css +++ b/apps/docs/src/css/custom.css @@ -211,6 +211,15 @@ html[data-theme='dark'] .docsearch-btn:hover { background-color: rgba(69, 23, 27, 0.4); } +/* Black/white icon theme colors */ +.mono-icon { + fill: #000000; /* Black for light mode */ +} + +[data-theme='dark'] .mono-icon { + fill: #ffffff; /* White for dark mode */ +} + @layer utilities { .clip { clip-path: inset(0); diff --git a/apps/docs/src/theme/Icon/Clickhouse/index.tsx b/apps/docs/src/theme/Icon/Clickhouse/index.tsx index 43f6396b..e4405ea2 100644 --- a/apps/docs/src/theme/Icon/Clickhouse/index.tsx +++ b/apps/docs/src/theme/Icon/Clickhouse/index.tsx @@ -4,17 +4,15 @@ import clsx from 'clsx'; import React from 'react'; const IconClickhouse = (props: IconProps) => { - const { colorMode } = useColorMode(); - const isDark = colorMode === 'dark'; return ( diff --git a/apps/docs/src/theme/Icon/Kafka/index.tsx b/apps/docs/src/theme/Icon/Kafka/index.tsx index 2522aea1..8cc20611 100644 --- a/apps/docs/src/theme/Icon/Kafka/index.tsx +++ b/apps/docs/src/theme/Icon/Kafka/index.tsx @@ -1,23 +1,20 @@ import { IconProps } from '@medusajs/icons/dist/types'; -import { useColorMode } from '@docusaurus/theme-common'; import clsx from 'clsx'; import React from 'react'; const IconKafka = (props: IconProps) => { - const { colorMode } = useColorMode(); - const isDark = colorMode === 'dark'; return ( - + className={clsx('mono-icon', props.className)}> + ); }; -export default IconKafka; +export default IconKafka; \ No newline at end of file