diff --git a/packages/docusaurus-theme-common/src/components/ThemedComponent/styles.module.css b/packages/docusaurus-theme-common/src/components/ThemedComponent/styles.module.css index ebf047bd6c4c..e33167ae3d2e 100644 --- a/packages/docusaurus-theme-common/src/components/ThemedComponent/styles.module.css +++ b/packages/docusaurus-theme-common/src/components/ThemedComponent/styles.module.css @@ -16,3 +16,11 @@ [data-theme='dark'] .themedComponent--dark { display: initial; } + +/* +JS disabled??? Show light version by default => better than showing nothing +TODO bad, but we currently always show light mode when there's no data-theme + */ +html:not([data-theme]) .themedComponent--light { + display: initial; +}