From 16a18cb3b4c67fc41cbda2f93acbb5481ef91c2b Mon Sep 17 00:00:00 2001 From: Georgi Matev Date: Mon, 21 Nov 2022 10:57:53 -0800 Subject: [PATCH] Tell Tailwind to use the Docusorus dark-mode attribute (#1573) ## Description Tailwind needs to know what is the attribute specifying DarkMode. Default is `class="dark"` which is not what Docusaurus uses. ## Type of change - [ ] :sunflower: Feature - [x] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Test - [ ] :computer: CI/Deployment - [ ] :hamster: Trivial/Minor ## Issue(s) ## Test Plan - [x] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- docs/tailwind.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/tailwind.config.js b/docs/tailwind.config.js index c114fa7bf..fa1cff383 100644 --- a/docs/tailwind.config.js +++ b/docs/tailwind.config.js @@ -1,6 +1,7 @@ /** @type {import('tailwindcss').Config} */ module.exports = { content: ["./src/**/*.{js,jsx,ts,tsx}"], + darkMode: ['class', '[data-theme="dark"]'], theme: { screens: { xs: "540px",