diff options
Diffstat (limited to 'tailwindcss/02-vite/src/style.css')
| -rw-r--r-- | tailwindcss/02-vite/src/style.css | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tailwindcss/02-vite/src/style.css b/tailwindcss/02-vite/src/style.css index 0b094f7..87d049b 100644 --- a/tailwindcss/02-vite/src/style.css +++ b/tailwindcss/02-vite/src/style.css @@ -1,5 +1,8 @@ @import "tailwindcss"; +/* Forcs Tailwind to look for a .dark class up the HTML tree instead of checking the user's operating system preferences. */ +@custom-variant dark (&:where(.dark, .dark *)); + /* Base layer customization with Tailwind CSS classes - applies to elements like p, a, img */ @layer base { a { |
