Skip to content

Commit 11ad21d

Browse files
committed
docs(install): map the dark variant to the .dark class in the token snippet
1 parent e1dee7f commit 11ad21d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎content/docs/getting-started/install.mdx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ pick up your app's theme, radius, and dark mode automatically.
7070
This is the shadcn neutral theme; change any value to match your brand.
7171

7272
```css title="app/globals.css"
73+
/* Make `dark:` follow the `.dark` class, as the tokens below do. */
74+
@custom-variant dark (&:is(.dark *));
75+
7376
:root {
7477
--radius: 0.625rem;
7578
--background: oklch(1 0 0);

0 commit comments

Comments
 (0)