diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-07-05 08:39:34 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-07-05 08:39:34 +0530 |
| commit | 3a6f7be667f228f62e426c58ce207a14b50b2a6c (patch) | |
| tree | ab6b995d97929432c5e786c16f290e3204365340 /tailwindcss/02-vite/src/style.css | |
| parent | 8ab27073ece9163510e63763ca4cf83a9d9c252b (diff) | |
Tailwind CSS theme toggle implemented
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 { |
