Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions apps/docs/content/docs/customization/dark-mode.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -204,24 +204,6 @@ Install `@heroui/use-theme` in your project.
}}
/>

### Add the current theme to the main element

```jsx
// App.tsx or App.jsx
import React from "react";
import {useTheme} from "@heroui/use-theme";

export default function App() {
const {theme} = useTheme();

return (
<main className={`${theme} text-foreground bg-background`}>
<App />
</main>
)
}
```

### Add the theme switcher

Add the theme switcher to your app.
Expand Down