We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a81faf commit 71afd18Copy full SHA for 71afd18
apps/website/docs/guide/01-getting-started/01-introduction.mdx
@@ -3,13 +3,16 @@ title: Introduction
3
description: A brief intro to CommandKit
4
---
5
6
+import Logo from './Logo';
7
+
8
<div
9
align="center"
10
style={{
11
margin: '2rem 0',
12
}}
13
>
- <img src="/img/ckit_logo.svg" width="60%" />
14
+ <Logo/>
15
16
<br />
17
18
apps/website/docs/guide/01-getting-started/Logo.jsx
@@ -0,0 +1,9 @@
1
+import React from 'react';
2
+import { useColorMode } from '@docusaurus/theme-common';
+export default function Logo() {
+ const { colorMode } = useColorMode();
+ const logo =
+ colorMode === 'dark' ? '/img/ckit_logo.svg' : '/img/ckit_logo_d.svg';
+ return <img src={logo} width="60%" alt="CommandKit Logo" />;
+}
apps/website/static/img/ckit_logo_d.svg
0 commit comments