Skip to content

Commit

Permalink
fix: tailwind beta config feature
Browse files Browse the repository at this point in the history
fix error
  • Loading branch information
aolyang committed Dec 28, 2024
1 parent 428e08c commit 767a49a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion docs/src/app/[lang]/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-env node */

import "nextra-theme-docs/style.css"
import "@/styles/tailwind.css"

import type { Metadata } from "next"
Expand Down
3 changes: 3 additions & 0 deletions docs/src/styles/tailwind.css
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
@import "nextra-theme-docs/style.css";
@import "tailwindcss";

@config "../../tailwind.config.ts"
5 changes: 1 addition & 4 deletions docs/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@ export default {
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}"
],
darkMode: ["variant", [
"@media (prefers-color-scheme: dark) { &:not(.light *) }",
"&:is(.dark *)"
]]
darkMode: ["variant", "dark (&:where(.dark *))"]
} satisfies Config

0 comments on commit 767a49a

Please sign in to comment.