Skip to content

Commit 2ef3a4e

Browse files
authored
Merge pull request #8304 from forresst/patch-1
2 parents 7777a3c + 958a6cc commit 2ef3a4e

File tree

1 file changed

+8
-9
lines changed
  • packages/docs/src/routes/docs/cookbook/theme-management

1 file changed

+8
-9
lines changed

packages/docs/src/routes/docs/cookbook/theme-management/index.mdx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ contributors:
55
- gioboa
66
- aendel
77
- chindris-mihai-alexandru
8-
updated_at: '2026-01-09T00:00:00Z'
8+
- forresst
9+
updated_at: '2026-02-05T00:00:00Z'
910
created_at: '2023-10-10T16:59:26Z'
1011
---
1112

@@ -44,15 +45,13 @@ bun run qwik add tailwind
4445
</span>
4546
</PackageManagerTabs>
4647

47-
Enable dark mode in your `tailwind.config.js`:
48+
Enable dark mode in your `global.css`:
4849

49-
```js
50-
module.exports = {
51-
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
52-
darkMode: "class",
53-
theme: {},
54-
plugins: [],
55-
};
50+
```css
51+
@import "tailwindcss";
52+
53+
/* Add the line below to enable dark mode */
54+
@custom-variant dark (&:where(.dark, .dark *));
5655
```
5756

5857
## Basic Implementation

0 commit comments

Comments
 (0)