diff --git a/src/theme/Playground/components/copy-button.jsx b/src/theme/Playground/components/copy-button.jsx index c59a2d50..730b88c5 100644 --- a/src/theme/Playground/components/copy-button.jsx +++ b/src/theme/Playground/components/copy-button.jsx @@ -1,14 +1,22 @@ import { useState } from "react"; +import { useColorMode } from "@docusaurus/theme-common"; +import "../styles.module.css"; const CopyButton = ({ text }) => { const [isCopied, setIsCopied] = useState(false); + const { colorMode } = useColorMode(); + return ( <>